我目前正在尝试使QWT 6.1.0在MAC OS X 10.7.5下运行. 我按照此处的说明进行操作-> qwt.sourceforge/qwtinstall.html 我没有在配置文件中进行任何更改.
I am currently trying to get QWT 6.1.0 running under MAC OS X 10.7.5. I followed the instructions over here --> qwt.sourceforge/qwtinstall.html I didn't changed something inside the configuration files.
所以一切正常,但是现在我想在自己的Project中使用qwt-libary. 我在.pro
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但是比起我,我收到了一个名为找不到-lqwt的库"的错误.
But than I get an error called "libary not found for -lqwt".
我做错了什么? 如何链接到库或如何将qwt框架导入项目?
What I am doing wrong? How can I link against the library or how could I import the qwt framework into my project?
推荐答案我找到了解决方案. 这是有关如何在Mac OS X下安装QWT 6.1.0并使它在QT-Creator中运行的逐步指南:
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 :
就这样. QWT现在应该可以工作了.
Thats it. QWT now should work.
地下小牛:
如果您使用的是Mavericks,则必须手动将qwt.framework复制到Libary/Frameworks文件夹,以免出现"dyld:未加载库:libqwt.6.dylib"错误.
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.
更多推荐
在Mac OS X下安装和使用QWT
发布评论