I'm running Mountain Lion and I've installed QT Library 4.8
From this page...
Qt libraries 4.8.4 for Mac (185 MB)
I've also installed Qt Creator 2.6.1 for Mac (Intel 32/64bit) (51 MB) from the same page.
When I attempt to run, I get this error:
18:14:01: Could not start process "make" -w Error while
building/deploying project WebBrowser (target: Desktop) When executing
step 'Make'
I will include my build setup in three screenshots
Any ideas?
It seems like you didn't install the UNIX command line tools package of XCode. Install that and it should work. See here on how to install the UNIX tools in XCode:
https://stackoverflow.com/a/9329325/856199
There are also stand-alone versions of the UNIX command line development tools if you don't want to install XCode. You can find them here:
https://developer.apple.com/downloads/index.action
Look for "Command Line Tools (OS X Mountain Lion) for XCode". Get the latest version.
Related
I don't have Xcode installed on my Mac OS 13.6 but I would like to run c++ on vs code. Is there a way to do that without the need for Xcode to be installed? Also, can I run an older version of Xcode and run c++ without problems?
Note: Would be great if someone posted a link for a tutorial.
You may download and install LLVM 13.0.1 for Darwin or a small part of Xcode, Xcode command line tools: xcode-select --install.
Both will result in installing clang++.
I've installed QT on my virtual machine running Ubuntu and started a new project but when I try to compile and run it I get this error:
"Configuration is faulty. Check the Issues view for details.
Error while building/deploying project PoshetPOP3 (kit: Desktop Qt 5.5.1 GCC 64bit)
When executing step "Make" "
Issues view says :"QT Creator needs a compiler set up to build.Configure a compiler in the kit options"
*"PoshetPOP3" my project name.
I also have QT installed on my host machine(windows 10) and it works perfectly.
Why do I get it and how can I fix this error?
An answer would be much apreciated,thank you!
Somehow I managed to work it out by doing this:
sudo apt-get install g++
sudo apt-get install qt4-dev-tools
And then restart the QT.Sorry for the poor research.
I have downloaded qt-windows-opensource-5.0.1-mingw47_32-x86-offline.exe and installed on my system, after that i launched QT Creator and tried to run a QML based example (shipped example is "QtQuick Examples - MouseArea" which tried, and below problem comes with any example i try to run) which was supplied with along with the whole package.
When i try to run the project i get below log...
13:00:20: Running steps for project mousearea...
13:00:20: Configuration unchanged, skipping qmake step.
13:00:20: Starting: "mingw32-make.exe"
qtcreator_ctrlc_stub: Command line failed: mingw32-make.exe
13:00:20: The process "mingw32-make.exe" crashed.
Error while building/deploying project mousearea (kit: Desktop Qt 5.0.1 MinGW 32bit)
When executing step 'Make'
Do you have mingw47_32 installed? The Qt you download needs the very same compiler the Qt libraries where compiled with, and that is the one that appears in the name of the download.
So my guess is that you're compiling with some other mingw which is not version 4.7 / 32 bits. Download that version, point Qt to it in Tools >> Options >> Kits. Rebuild then.
The problem was resolved later on, I installed qt-windows-opensource-5.0.1-mingw47_32-x86-offline.exe on 64bit system and that's why mingw32-make.exe crashed, downloading appropriate QT for 64bit system solve the problem.
I am using Lion, Mac OX X 10.7.5 and Eclipse Juno to try and learn to program using C++. I created a new project using the hello world template. When I tried running the hello world program I got 3 errors:
Program "make" not found in PATH
Program "gcc" not found in PATH
Program "g++" not found in PATH
I have Xcode downloaded also. I selected the toolchain MACOSX GCC.
Once you downloaded Xcode, you also need to download the command line tools package from within Xcode which will install the necessary make program and clang compiler.
To download it go to Xcode >> Preferences >> 'Downloads Tab' and install Command line tools.
After upgrading to Lion, and upgrading Xcode, make can't seem to locate headers and libs. I looked in /usr/include. The only thing in there was 'parallels-server'. So, I renamed /usr/include to /usr/include.old, and made a symlink to:
/Developer/SDKs/MacOSX10.6.sdk/usr/include/
This is pretty evil. But, make can now find headers. Still can't locate libs (e.g., lcrt1.10.6.o).
What is the correct way to solve both the include and lib problems?
Thanks!
After downloading Xcode 4 from the App Store, try running "/Applications/Install Xcode.app".
From me, just downloading the Xcode Command line tools did the trick. (For that, of course, I had first to install Xcode itself, which I installed trough App Store.
Start Xcode
Open Xcode→Preferences...
Select the Downloads tab
Install the Command line tools
That installs a few packages, see /var/db/receipts. The package that contains /usr/include is com.apple.pkg.DevSDKLeo.
I don't think xcode-select is needed, but I had run that command before I downloaded the Command line tools, so I don't know for sure.
To get Xcode to populate the /usr/include directory, run the following command:
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer/
You may need to install the Xcode Command Line Tools within Xcode for this to work. Open the Preferences menu, then under Downloads install Command Line Tools.
The above answer by njamesp also addresses the following error:
configure: error: C compiler cannot create executables
I received this error when trying to compile code on my 10.7 system after setting it up from a 10.5 time machine, so I assume the wrong version of xcode was installed on my system.