I am unable to install qwt designer plugin on my Mac. I have downloaded v 6.1.3, and successfully did qmake, make and sudo make install.
The problem is that under /usr/local/qwt-6.1.3/lib I have only the file qwt.framework, and not something like libqwt.5.dylib, as the installation guide says. For this reason I con't follow the guide....
Firstly Qwt 6 now uses a framework. That means there is no
qwt.dylib
file any more. If you want to link to it, you simply add this to your.pro
file:Or wherever your qwt install folder is.
In principle you can simply set an environment variable e.g.
But this didn't work for me for whatever reason.
Tore some hair out, but here's how I got it working via homebrew.
1)
brew install qt5 qwt
2)
brew cask install qt-creator
3) Copy the plugin dylib to your Qt Creator plugin folder:
4) Copy the framework (recursively) into the App's Frameworks folder:
5) Attempt to run Qt Creator and find it crashes when you try to open the form designer. Boo.
6) Run
otool -L
on the plugin dylib:At this point you can compare to a plugin that actually works, qtquick:
Ok, so we need to link to the local versions of Qt. You need to be careful about finding every reference to a Qt framework. In this case there are two places:
1) In the plugin dylib
2) In the framework library
Here's what I ran:
Note that in qwt, there's a reference to
QtOpenGL
. However this framework wasn't included in my version of Qt Creator so I left it pointing to/usr/local/opt/ ...
. Didn't seem to make a difference.Finally the result of my
otool
is:and:
Then when you open up Qt Creator you should see this: