2013-04-02 154 views
5

我搜索了四周,無法找到答案。我試圖在Mac OS X Lion上編譯Qt Creator(Qt 5.0.1)中的一些示例,並且它一直給我提供錯誤。這是完整的錯誤:編譯在OS X上的Qt Creator:「dyld:Library not loaded」

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 

任何人都知道任何修復?

謝謝

回答

0

看起來它無法找到QtWidgets庫。添加到您的.pro文件

qt += widgets

基於the transition from Qt 4 to 5其中QtWidgets是一個獨立的模塊

+1

我有同樣的問題,在我的.pro文件我已經有這條線。 – Pietro

+0

@Pietro,如果你仍然有問題,請檢查你的Qt路徑。 – TheDarkKnight

相關問題