我有一个应用程序,我正在使用 Qt 4.7.4 在 osx 雪豹下构建和运行良好,但是那个 macbook 死了。我现在正在设置运行山狮(10.8.2)和Qt 4.8.3的新macbook。我可以构建我的应用程序,但是当我尝试从 Qt Creator 2.6.0 中运行它时,我得到了这个运行时错误:
dyld: Library not loaded: ../lib/libicudata.46.1.dylib
Referenced from: /Users/david/dev/svn/map_creator/karte-build-Desktop-Debug/debug/MapCreator.app/Contents/MacOS/MapCreator
Reason: image not found
The program has unexpectedly finished.
我从 Finder 运行它时遇到类似的错误。
otool 给了我:
Davids-MacBook-Pro:map_creator david$ otool -L karte-build-Desktop-Debug/debug/MapCreator.app/Contents/MacOS/MapCreator
karte-build-Desktop-Debug/debug/MapCreator.app/Contents/MacOS/MapCreator:
../lib/libicudata.46.1.dylib (compatibility version 46.0.0, current version 46.1.0)
libicui18n.46.dylib (compatibility version 46.0.0, current version 46.1.0)
libicuuc.46.dylib (compatibility version 46.0.0, current version 46.1.0)
/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation (compatibility version 300.0.0, current version 945.11.0)
/System/Library/Frameworks/Security.framework/Versions/A/Security (compatibility version 1.0.0, current version 55179.1.0)
/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit (compatibility version 45.0.0, current version 1187.34.0)
/Users/david/dev/qt483/lib/QtSvg_fmosoft.framework/Versions/4/QtSvg_fmosoft (compatibility version 4.8.0, current version 4.8.3)
/Users/david/dev/qt483/lib/QtGui_fmosoft.framework/Versions/4/QtGui_fmosoft (compatibility version 4.8.0, current version 4.8.3)
/Users/david/dev/qt483/lib/QtCore_fmosoft.framework/Versions/4/QtCore_fmosoft (compatibility version 4.8.0, current version 4.8.3)
/Users/david/dev/qt483/lib/QtXmlPatterns_fmosoft.framework/Versions/4/QtXmlPatterns_fmosoft (compatibility version 4.8.0, current version 4.8.3)
/Users/david/dev/qt483/lib/QtNetwork_fmosoft.framework/Versions/4/QtNetwork_fmosoft (compatibility version 4.8.0, current version 4.8.3)
/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 56.0.0)
/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1669.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 169.3.0)
/usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version 228.0.0)
/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 744.12.0)
从雪豹到山狮,或者从 Qt 4.7.4 到 4.8.3,是否有什么变化导致了这个问题?或者我错过了在我的新 Macbook 上设置所有内容的步骤?我还在学习——真的只是 Qt 和 Mac 上的新手,试图在主要开发人员离开后维护这个项目。
谢谢,大卫