Hi,
I managed to get QWT 6.0.0 working on QT SDK v1.1.2 (based on QT v4.7.3) for Mac OS 10.6 so I though I'd write a quick guide on how to do it. I hope it helps others who are struggling:
- Install the QT SDK:
- Install Qt_SDK_Mac64_offline_v1_1_2_en.dmg using default settings
- Edit the PATH variable:
- Open Terminal
- sudo /Applications/TextEdit.app/Contents/MacOS/TextEdit /etc/paths
- Add this path to end of file on a new line:
- ~/QtSDK/Desktop/Qt/473/gcc/bin
- Save
- Install QWT:
- Extract qwt-6.0.0 to a folder without spaces in its path
- Open qwtconfig.pri in a TextEdit
- Delete the # in front of the following line:
- # QWT_CONFIG += QwtExamples
- Open Terminal
- cd to the QWT folder
- qmake -spec macx-g++
- make
- make install
- Make QWT widgets appear in Designer:
- Open /usr/local/qwt-6.0.0/plugins/designer
- Copy libqwt_designer_plugin.dylib
- Open ~/QtSDK/Desktop/Qt/473/gcc/plugins/designer
- Make QWT widgets appear in Creator:
- Open /usr/local/qwt-6.0.0/plugins/designer
- Copy libqwt_designer_plugin.dylib
- Open ~/QtSDK
- Right click Qt Creator.app
- Select “Show package contentsâ€
- Go to Contents/Plugins/Designer
- Paste libqwt_designer_plugin.dylib there
- Open /usr/local/qwt-6.0.0/lib
- Copy all (should be two folders: qwt.framework and qwtmathml.framework)
- Open ~/QtSDK
- Right click Qt Creator.app
- Select “Show package contentsâ€
- Go to Contents/Frameworks
- Paste
- Fix QWT's QT designer library references:
- Run the following in Terminal to check the library references:
You'll get something like the following:Qt Code:
otool -L ~/QtSDK/Qt\ Creator.app/Contents/Plugins/designer/libqwt_designer_plugin.dylibTo copy to clipboard, switch view to plain text mode
Qt Code:
/Users/Philip/QtSDK/Qt Creator.app/Contents/Plugins/designer/libqwt_designer_plugin.dylib: libqwt_designer_plugin.dylib (compatibility version 0.0.0, current version 0.0.0) qwt.framework/Versions/6/qwt (compatibility version 6.0.0, current version 6.0.0) /Users/Philip/QtSDK/Desktop/Qt/473/gcc/lib/QtScript.framework/Versions/Current/QtScript (compatibility version 4.7.0, current version 4.7.3) /Users/Philip/QtSDK/Desktop/Qt/473/gcc/lib/QtXml.framework/Versions/Current/QtXml (compatibility version 4.7.0, current version 4.7.3) /Users/Philip/QtSDK/Desktop/Qt/473/gcc/lib/QtGui.framework/Versions/Current/QtGui (compatibility version 4.7.0, current version 4.7.3) /Users/Philip/QtSDK/Desktop/Qt/473/gcc/lib/QtCore.framework/Versions/Current/QtCore (compatibility version 4.7.0, current version 4.7.3) /Users/Philip/QtSDK/Desktop/Qt/473/gcc/lib/QtDesigner.framework/Versions/Current/QtDesigner (compatibility version 4.7.0, current version 4.7.3) /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.9.0) /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 832.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.2.10)To copy to clipboard, switch view to plain text mode- Run these commands to fix the library references (change all references to "/Users/Philip/" to the correct path for your system):
Qt Code:
cd ~/QtSDK/Qt\ Creator.app/Contents/Plugins/designer; sudo install_name_tool -change /Users/Philip/QtSDK/Desktop/Qt/473/gcc/lib/QtCore.framework/Versions/Current/QtCore @executable_path/../Frameworks/QtCore.framework/Versions/4/QtCore libqwt_designer_plugin.dylib; sudo install_name_tool -change /Users/Philip/QtSDK/Desktop/Qt/473/gcc/lib/QtGui.framework/Versions/Current/QtGui @executable_path/../Frameworks/QtGui.framework/Versions/4/QtGui libqwt_designer_plugin.dylib; sudo install_name_tool -change /Users/Philip/QtSDK/Desktop/Qt/473/gcc/lib/QtXml.framework/Versions/Current/QtXml @executable_path/../Frameworks/QtXml.framework/Versions/4/QtXml libqwt_designer_plugin.dylib; sudo install_name_tool -change /Users/Philip/QtSDK/Desktop/Qt/473/gcc/lib/QtScript.framework/Versions/Current/QtScript @executable_path/../Frameworks/QtScript.framework/Versions/4/QtScript libqwt_designer_plugin.dylib; sudo install_name_tool -change /Users/Philip/QtSDK/Desktop/Qt/473/gcc/lib/QtDesigner.framework/Versions/Current/QtDesigner @executable_path/../Frameworks/QtDesigner.framework/Versions/4/QtDesigner libqwt_designer_plugin.dylib; sudo install_name_tool -change qwt.framework/Versions/6/qwt @executable_path/../Frameworks/qwt.framework/Versions/6/qwt libqwt_designer_plugin.dylib;To copy to clipboard, switch view to plain text mode- Run the following in Terminal to check that the library references are now correct:
You should get the following:Qt Code:
otool -L ~/QtSDK/Qt\ Creator.app/Contents/Plugins/designer/libqwt_designer_plugin.dylibTo copy to clipboard, switch view to plain text mode
Qt Code:
/Users/Philip/QtSDK/Qt Creator.app/Contents/Plugins/designer/libqwt_designer_plugin.dylib: libqwt_designer_plugin.dylib (compatibility version 0.0.0, current version 0.0.0) @executable_path/../Frameworks/qwt.framework/Versions/6/qwt (compatibility version 6.0.0, current version 6.0.0) @executable_path/../Frameworks/QtScript.framework/Versions/4/QtScript (compatibility version 4.7.0, current version 4.7.3) @executable_path/../Frameworks/QtXml.framework/Versions/4/QtXml (compatibility version 4.7.0, current version 4.7.3) @executable_path/../Frameworks/QtGui.framework/Versions/4/QtGui (compatibility version 4.7.0, current version 4.7.3) @executable_path/../Frameworks/QtCore.framework/Versions/4/QtCore (compatibility version 4.7.0, current version 4.7.3) @executable_path/../Frameworks/QtDesigner.framework/Versions/4/QtDesigner (compatibility version 4.7.0, current version 4.7.3) /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.9.0) /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 832.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.2.10)To copy to clipboard, switch view to plain text mode- Fix QWT's library references:
- Run the following in Terminal to check the library references:
You'll get something like the following:Qt Code:
otool -L ~/QtSDK/Qt\ Creator.app/Contents/Frameworks/qwt.framework/Versions/6/qwtTo copy to clipboard, switch view to plain text mode
Qt Code:
/Users/Philip/QtSDK/Qt Creator.app/Contents/Frameworks/qwt.framework/Versions/6/qwt: qwt.framework/Versions/6/qwt (compatibility version 6.0.0, current version 6.0.0) /Users/Philip/QtSDK/Desktop/Qt/473/gcc/lib/QtSvg.framework/Versions/Current/QtSvg (compatibility version 4.7.0, current version 4.7.3) /Users/Philip/QtSDK/Desktop/Qt/473/gcc/lib/QtGui.framework/Versions/Current/QtGui (compatibility version 4.7.0, current version 4.7.3) /Users/Philip/QtSDK/Desktop/Qt/473/gcc/lib/QtCore.framework/Versions/Current/QtCore (compatibility version 4.7.0, current version 4.7.3) /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.9.0) /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 832.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.2.10)To copy to clipboard, switch view to plain text mode- Run these commands to fix the library references (change all references to "/Users/Philip/" to the correct path for your system):
Qt Code:
cd ~/QtSDK/Qt\ Creator.app/Contents/Frameworks; sudo install_name_tool -change /Users/Philip/QtSDK/Desktop/Qt/473/gcc/lib/QtCore.framework/Versions/Current/QtCore @executable_path/../Frameworks/QtCore.framework/Versions/4/QtCore qwt.framework/Versions/6/qwt; sudo install_name_tool -change /Users/Philip/QtSDK/Desktop/Qt/473/gcc/lib/QtGui.framework/Versions/Current/QtGui @executable_path/../Frameworks/QtGui.framework/Versions/4/QtGui qwt.framework/Versions/6/qwt; sudo install_name_tool -change /Users/Philip/QtSDK/Desktop/Qt/473/gcc/lib/QtSvg.framework/Versions/Current/QtSvg @executable_path/../Frameworks/QtSvg.framework/Versions/4/QtSvg qwt.framework/Versions/6/qwt;To copy to clipboard, switch view to plain text mode- Run the following in Terminal to check that the library references are now correct:
You should get the following:Qt Code:
otool -L ~/QtSDK/Qt\ Creator.app/Contents/Frameworks/qwt.framework/Versions/6/qwtTo copy to clipboard, switch view to plain text mode
Qt Code:
/Users/Philip/QtSDK/Qt Creator.app/Contents/Frameworks/qwt.framework/Versions/6/qwt: qwt.framework/Versions/6/qwt (compatibility version 6.0.0, current version 6.0.0) @executable_path/../Frameworks/QtSvg.framework/Versions/4/QtSvg (compatibility version 4.7.0, current version 4.7.3) @executable_path/../Frameworks/QtGui.framework/Versions/4/QtGui (compatibility version 4.7.0, current version 4.7.3) @executable_path/../Frameworks/QtCore.framework/Versions/4/QtCore (compatibility version 4.7.0, current version 4.7.3) /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.9.0) /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 832.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.2.10)To copy to clipboard, switch view to plain text mode- Fix QWTMATHML's library references:
(see next post)
Bookmarks