通过MacPorts安装FreeImage。一切看起来是好的,但是当我建造我的应用程序,并试图启动其他计算机上的其中没有MacPorts的,没有安装的FreeImage它说FreeImage library not found
dyld: Library not loaded: /opt/local/lib/libfreeimage.3.dylib
Referenced from: /Users/development/Library/Developer/Xcode/DerivedData/freeimage-dxsornyaxqlkyubqwsrlkgszvxhy/Build/Products/Debug/freeimage.app/Contents/MacOS/freeimage
Reason: image not found
难道不应该连同我的项目复制库文件?我将它们添加到项目的构建阶段“复制文件”列表中。它们正被复制到我的应用程序包中。但是当我尝试链接它们时,我得到同样的错误。我不知道为什么,但应用程序仍然在/ opt/local/lib中查找库。我如何解决这个问题,以便我可以在我的项目中使用FreeImage并在任何计算机上运行FreeImage?
操作系统正在'/ opt/local/lib'中寻找动态库,但是你的包中有它们,因此找不到它们。 – 2012-07-27 08:28:51