Need help with Qt 5.4 and xcode 6.2 on OS X 0.10.2 Yosemite
-
Hi, I posted this to the General and Desktop forum but did not get any interest so I moved it to here. Can anyone here help me?
I am using Qt 5.4 on OSX 10.10.2. When I build the release version I get the following error...
/Applications/Xcode6.app/Contents/Developer/Toolchains/XCodeDefault.xctoolchain/usr/bin/clang++ No such file or directory.
Xcode is in /Applications/Xcode.app but the debug build works fine with that, How can I fix this and have both the debug and the release build work correctly?
I am using Qt Creator 3.3.0 to build my apps.
Any help would be very much appreciated.
Thank you. -
Make sure that 'xcode-select -p' return the right Xcode, or fix it with 'xcode-select -s'.
I build the debug and release like this:
export PATH=/usr/bin:/bin:/usr/sbin:/sbin
./configure -debug-and-release -prefix /usr/local/Qt-5.4.1 -nomake examples -sdk macosx10.9
make
sudo make installworked like a charm on multiple machines.
-
Thank you very much for your reply,
xcode-select -p returns /Applications/Xcode.app/Contents/Developer which is correct.
I am using qmake from Qt Creator to build my app the qmake call from QT Creator for the release version is...
qmake /<my app pro file path> -r -spec macx-clang CONFIG+=x86_64This is the same as for the debug build (without CONFIG+=debug).
The debug build does not throw the error mentioned in the first post. Any ideas as to what is going wrong here?
Many thanks.
-
Sorry, I was under the impression that you were trying to build Qt itself.
So the error is while building your code. All I can say is I never seen this and have no such error with Qt Creator 3.3.2.