[Solved] dyld Library not loaded on Mac OSX Maverick 10.9.4
-
I am new to Qt and C++. I wrote my first Qt code today :
@#include <QApplication>
#include <QPushButton>int main(int argc, char *argv[])
{
QApplication app(argc, argv);QPushButton bouton("Salut les Zéros, la forme ?"); bouton.show(); return app.exec();
}@
When I build this code, everything is ok. But when I try to run it I get the following error message :
dyld: Library not loaded: /work/build/PADDING/lib/QtWidgets.framework/Versions/5/QtWidgets
Referenced from: /Users/samueldrouin/Fichiers/Programmation/C++/Tutorial/first_gui/build-first_gui-Desktop_Qt_5_3_clang_64bit-Debug/first_gui.app/Contents/MacOS/first_gui
Reason: image not found
The program has unexpectedly finished.Link to the /lib folder look like they are correct. I tried to reinstall Qt. Xcode is installed. I also tried the terminal command : otool -L on Qtwidget exec but I do not really understand how to use the command.
-
Are you using Qt creator or running qmake and make commands from terminal ?
-
Looks like my answer disappeared…
@ Vikas Pachdha, it has nothing to do with Qt Creator nor qmake. It's the installation that failed at some point. Generally due to missing command line tools
-
-
When you say reinstalled Qt did you removed it first ?
-
Yes I removed all component before reinstalling.
-
Xcode 6 ?
-
Xcode 6.0.1 everything is up to date
-
Currently Xcode 6 brought several changes that are breaking things here and there. You can find some already answered on the forum and some on the interest mailing list.
-
I réinstalled Xcode 5.1.1 and Qt and I receive the same error.
-
Can you call install_name_tool from the command line ?
-
I forgot to reinstall the Command Line Tools 5.1.1 along Xcode 5.1.1 and kept the Command Line Tools 6.0.1 . Everything work now. Thank you.
Edit : Thread marked [Solved]