Error with Qt project running on a MAC
-
Hi all,
I have a c++ project working perfectly on windows that uses bass library.
The IDE that i am using is QTI am trying to run the same project in MAC, also using QT, and I am having a problem running the project.
The project builds OK but I get the following error when running the project.
Last login: Wed Dec 24 20:03:29 on ttys000
pc-144-144:~ Ali$ cd /Users/Ali; /Users/Ali/Qt/Qt\ Creator.app/Contents/MacOS/../Resources/qtcreator_process_stub run /var/folders/wq/s_wqb7w94jx83dy0gx3cqt_h0000gn/T/QtCreator.EL3393/stub-socket Press\ <RETURN>\ to\ close\ this\ window... /Users/Ali/Desktop/build-MyTest-Desktop_Qt_5_4_0_clang_64bit-Debug /var/folders/wq/s_wqb7w94jx83dy0gx3cqt_h0000gn/T/QtCreator.rh3393 3393 /Users/Ali/Desktop/build-MyTest-Desktop_Qt_5_4_0_clang_64bit-Debug/MyTest
dyld: Library not loaded: /work/build/PADDING/lib/QtCore.framework/Versions/5/QtCore
Referenced from: /Users/Ali/Desktop/build-MyTest-Desktop_Qt_5_4_0_clang_64bit-Debug/MyTest
Reason: image not found
Press <RETURN> to close this window...I am new to Mac development.
Am I missing something? Any help would be fantastic!
Thanks
-
Hi and welcome to devnet,
Looks like you have a case of badly installed Qt. Did you by any chance installed Xcode after Qt ?
In any case, you should first remove and re-install Qt.
On a side note it's Qt, QT stands for Apple QuickTime which you might be using since you're working with OS X.
-
Hi there,
Thank you so much for your message.
Yes, I actually did install Xcode after QT, but, removed QT from Users directory and used CleanMyMac to uninstall it. Then re-installed it. During Installation for the second time (after installing Xcode) I got some errors on Android packages, I just ignored them and continued the installation. Any further help from you, SGaist, is appreciated.
Thanks
Ali -
Hi there,
Thank you so much for your message.
Yes, I actually did install Xcode after QT, but, removed QT from Users directory and used CleanMyMac to uninstall it. Then re-installed it. During Installation for the second time (after installing Xcode) I got some errors on Android packages, I just ignored them and continued the installation. Any further help from you, SGaist, is appreciated.
Thanks
Ali[quote author="SGaist" date="1419455512"]Hi and welcome to devnet,
Looks like you have a case of badly installed Qt. Did you by any chance installed Xcode after Qt ?
In any case, you should first remove and re-install Qt.
On a side note it's Qt, QT stands for Apple QuickTime which you might be using since you're working with OS X.
[/quote] -
What exact error message did you got ?
-
Hi SGaist, and Thanks a lot for your support.
Here are the exact errors:Error during installation process (qt.54.clang_64):
Command xcrun failed.
Arguments: install_name_tool -id /Users/Ali/Qt/5.4/clang_64/lib/QtQml.framework/Versions/5/QtQml_debug /Users/Ali/Qt/5.4/clang_64/lib/QtQml.framework/Versions/5/QtQml_debug
Output:Error during installation process (qt.54.qtwebengine.clang_64):
Command xcrun failed.
Arguments: install_name_tool -id /Users/Ali/Qt/5.4/clang_64/lib/QtQml.framework/Versions/5/QtQml_debug /Users/Ali/Qt/5.4/clang_64/lib/QtQml.framework/Versions/5/QtQml_debug
Output:Error during installation process (qt.extras.qtwebview.qt54.clang_64):
Command xcrun failed.
Arguments: install_name_tool -id /Users/Ali/Qt/5.4/clang_64/lib/QtWebView.framework/Versions/5/QtWebView_debug /Users/Ali/Qt/5.4/clang_64/lib/QtWebView.framework/Versions/5/QtWebView_debug
Output:
[quote author="SGaist" date="1419463750"]What exact error message did you got ?[/quote] -
And, just one more thing to note, I did not get any of those errors on my first installation of Qt when I did not have Xcode installed yet. And, now, when I use Xcode itself, it suddenly crashes unexpectedly.
Thanks
Ali[quote author="SGaist" date="1419463750"]What exact error message did you got ?[/quote]
-
Hi you can check you have Xcode 6.1.1 installed. Also that you have Command Line Tools installed, "download here":https://developer.apple.com/downloads/index.action?name=Xcode#
In Terminal, type xcrun --version to see you have version 23 installed.