Compilation in Qt Creator on OS X: "dyld: library not loaded"

I searched and cannot find the answer to this question. I am trying to compile some examples in Qt Creator (Qt 5.0.1) on Mac OS X Lion and it keeps giving me errors. Here's the complete error:

dyld: Library not loaded: /Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-RELEASE5LGPL-OSX106/______________________________PADDING______________________________/lib/QtWidgets.framework/Versions/5/QtWidgets
Referenced from: /Users/<bleh>/Qt5.0.1/5.0.1/clang_64/examples/widgets/widgets/codeeditor-build-Desktop_Qt_5_0_1_clang_64bit-Debug/codeeditor.app/Contents/MacOS/codeeditor
Reason: image not found

Does anyone know any fixes?

thank

+5
source share
1 answer

It looks like he cannot find the QtWidgets library. Add this to your .pro file

qt + = widgets

Based on the transition from Qt 4 to 5 , where QtWidgets is a separate module

0
source

All Articles