Reputation: 5321
I am currently trying to get QWT 6.1.0 running under MAC OS X 10.7.5. I followed the instructions over here --> http://qwt.sourceforge.net/qwtinstall.html I didn't changed something inside the configuration files.
So everything worked fine, but now I want to use the qwt-libary inside my own Project. I added the following line to my .pro
INCLUDEPATH += /Users/userX/Downloads/qwt-6.1.0/src
So my Project is now able to find all the header Files. But I also have to link against the libary. But I dont know how to do so. I tried using something like this:
LIBS += -L /usr/local/qwt-6.1.0/lib -lqwt
But than I get an error called "libary not found for -lqwt".
What I am doing wrong? How can I link against the library or how could I import the qwt framework into my project?
Upvotes: 3
Views: 7811
Reputation: 23
Download the .tar.bz2 from here
Extract it where you want, for Example inside your Download-Folder
If you have this error:
dyld: Library not loaded: qwt.framework/Versions/6/qwt
Referenced from: /Users/Desktop/build-check5-Desktop_Qt_5_12_5_clang_64bit2-Debug/check5.app/Contents/MacOS/check5
Reason: image not found
For MacOs Mojave you must copy qwt.framework to the Library/Frameworks folder.
Upvotes: 2
Reputation: 5321
I found a solution. Here is a step by step guide on how to install QWT 6.1.0 under Mac OS X and get it running inside the QT-Creator :
Thats it. QWT now should work.
UNDER MAVERICKS:
If you are using Mavericks you have to manually copy the qwt.framework to Libary/Frameworks folder for not getting the "dyld: Library not loaded: libqwt.6.dylib" error .. i dont know why but it works.
Upvotes: 13