#change qt libs install name to executable path

#change qt libs install name to executable path

install_name_tool -change $ABSPATH/externals/ext-qt-mac-10.5/lib/libQtCore.4.dylib @executable_path/../Frameworks/libQtCore.4.8.2.dylib $ABSPATH/demo/bin/DDMacClient.app/Contents/Frameworks/libQtGui.4.8.2.dylib
install_name_tool -change $ABSPATH/externals/ext-qt-mac-10.5/lib/libQtCore.4.dylib @executable_path/../Frameworks/libQtCore.4.8.2.dylib $ABSPATH/demo/bin/DDMacClient.app/Contents/Frameworks/libQtMultimedia.4.8.2.dylib
install_name_tool -change $ABSPATH/externals/ext-qt-mac-10.5/lib/libQtGui.4.dylib @executable_path/../Frameworks/libQtGui.4.8.2.dylib $ABSPATH/demo/bin/DDMacClient.app/Contents/Frameworks/libQtMultimedia.4.8.2.dylib
install_name_tool -change $ABSPATH/externals/ext-qt-mac-10.5/lib/libQtCore.4.dylib @executable_path/../Frameworks/libQtCore.4.8.2.dylib $ABSPATH/demo/bin/DDMacClient.app/Contents/Frameworks/libQtNetwork.4.8.2.dylib
install_name_tool -change $ABSPATH/externals/ext-qt-mac-10.5/lib/libQtCore.4.dylib @executable_path/../Frameworks/libQtCore.4.8.2.dylib $ABSPATH/demo/bin/DDMacClient.app/Contents/Frameworks/libQtXml.4.8.2.dylib

#change libs used by DDMacClient install name to executable path

install_name_tool -change $ABSPATH/externals/ext-qt-mac-10.5/lib/libQtMultimedia.4.8.2.dylib @executable_path/../Frameworks/libQtMultimedia.4.8.2.dylib $ABSPATH/demo/bin/DDMacClient.app/Contents/MacOS/DDMacClient
install_name_tool -change $ABSPATH/externals/ext-qt-mac-10.5/lib/libQtXml.4.8.2.dylib @executable_path/../Frameworks/libQtXml.4.8.2.dylib $ABSPATH/demo/bin/DDMacClient.app/Contents/MacOS/DDMacClient
install_name_tool -change $ABSPATH/externals/ext-qt-mac-10.5/lib/libQtGui.4.8.2.dylib @executable_path/../Frameworks/libQtGui.4.8.2.dylib $ABSPATH/demo/bin/DDMacClient.app/Contents/MacOS/DDMacClient
install_name_tool -change $ABSPATH/externals/ext-qt-mac-10.5/lib/libQtNetwork.4.8.2.dylib @executable_path/../Frameworks/libQtNetwork.4.8.2.dylib $ABSPATH/demo/bin/DDMacClient.app/Contents/MacOS/DDMacClient
install_name_tool -change $ABSPATH/externals/ext-qt-mac-10.5/lib/libQtCore.4.8.2.dylib @executable_path/../Frameworks/libQtCore.4.8.2.dylib $ABSPATH/demo/bin/DDMacClient.app/Contents/MacOS/DDMacClient


#codesign,package .app to .pkg
#codesign -s "3rd Party Mac Developer Application: Array Networks" DDMacClient.app
#productbuild --component $ABSPATH/demo/bin/DDMacClient.app /Applications --sign "3rd Party Mac Developer Installer: Array Networks" DDMacOSClient.pkg
#pkgbuild --component DDMacClient.app --install-location /Applications --sign "3rd Party Mac Developer Installer: Array Networks" MacOSDesktopDirect.pkg

你可能感兴趣的:(#change qt libs install name to executable path)