mac下adernosdk QCompress无法使用

环境:mac

参考:http://blog.csdn.net/ani_di/article/details/7078743

要使用QCompress进行纹理压缩,下载adernosdk后无法使用,出现lib无法加载的错误。

查询网上,解决方法如下:

在终端输入如下的命令:

install_name_tool -change ./libfreeimage.dylib /app/adernosdk-osx/Bin/QCompress.app/Contents/MacOS/libfreeimage.dylib /app/adernosdk-osx/Bin/QCompress.app/Contents/MacOS/Tool



install_name_tool -change ./libTextureConverter.dylib /app/adernosdk-osx/Bin/QCompress.app/Contents/MacOS/libTextureConverter.dylib /app/adernosdk-osx/Bin/QCompress.app/Contents/MacOS/Tool


install_name_tool -change /opt/local/lib/libfreeimage.3.dylib /app/adernosdk-osx/Development/External/FreeImage/3.16/osx/x86/libfreeimage.3.15.3.dylib /app/adernosdk-osx/Bin/QCompress.app/Contents/MacOS/Tool


install_name_tool -change ./QCompress.app/Contents/MacOS/lib/QtGui.framework/QtGui /app/adernosdk-osx/Bin/QCompress.app/Contents/MacOS/lib/QtGui.framework/QtGui /app/adernosdk-osx/Bin/QCompress.app/Contents/MacOS/Tool


install_name_tool -change ./QCompress.app/Contents/MacOS/lib/QtCore.framework/QtCore /app/adernosdk-osx/Bin/QCompress.app/Contents/MacOS/lib/QtCore.framework/QtCore /app/adernosdk-osx/Bin/QCompress.app/Contents/MacOS/Tool


install_name_tool -change ./QCompress.app/Contents/MacOS/lib/QtCore.framework/Versions/4/QtCore /app/adernosdk-osx/Bin/QCompress.app/Contents/MacOS/lib/QtCore.framework/Versions/4/QtCore /app/adernosdk-osx/Bin/QCompress.app/Contents/MacOS/lib/QtGui.framework/QtGui

你可能感兴趣的:(mac下adernosdk QCompress无法使用)