注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

学习笔记

正确的方法如同学习书法,开始的时候要临摹,临摹好了然后创造自己的风格。

 
 
 

日志

 
 

[Qt笔记]qwt的安装  

2011-09-01 18:22:26|  分类: QT |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |

目录

        Qwt是一个基于LGPL版权协议的开源项目, 其目标是提供一组2D的窗体库显示技术领域的数据, 数据源以浮点数组或范围的方式提供, 输出方式可以是Curves(曲线),Slider(滚动条), Dials(圆盘), compasses(仪表盘)等等。 该工具库基于Qt开发, 所以也继承了Qt的跨平台特性, 据原作者文档所说, 该项目在Qt-win/Qt-x11/Qt-embedded(qvfb环境)上都测试过, 运行正常。 项目的主页在:http://qwt.sourceforge.net/
        从svn服务器上下载最新代码:svn co https://qwt.svn.sourceforge.net/svnroot/qwt/trunk/qwt
        进入qwt目录, 运行你电脑上qt4对应的qmake, 再运行make编译。
$ cd qwt
$ export PATH=/usr/local/Trolltech/Qt-4.4.1/bin/:$PATH
$ qmake
$ make
        编译要花个几分钟的时间。 成功后在lib下会生成 libqwt.so*文件
        If you didn't enable autobuilding of the examples in qwtconfig.pri you have to build the examples this way:
A) Unix/Linux
--------
$ qmake
$ make
$ sudo make install

        If you have installed a shared library it's path has to be known to the run-time linker of your operating system. On Linux systems read "man ldconfig" ( or google for it ). Another option is to use the LD_LIBRARY_PATH (on some systems LIBPATH is used instead, on MacOSX it is called DYLD_LIBRARY_PATH) environment variable.
        If you only want to check the Qwt examples without installing something, you can set the LD_LIBRARY_PATH to the lib directory  of your local build.
        If you didn't enable autobuilding of the examples in qwtconfig.pri you have to build the examples this way:
$ cd examples
$ qmake
$ make

B) Win32/MinGW
--------
        Check that your Qt version has been built with MinGW - not with MSVC !
        Start a Shell, where Qt4 is initialized. ( F.e. with "Programs->Qt by Trolltech ...->Qt 4.x.x Command Prompt" ). Check if you can execute "make" or something like "mingw32-make.exe".
$ qmake qwt.pro
$ mingw32-make.exe
$ mingw32-make.exe install
        If you didn't enable autobuilding of the examples in qwtconfig.pri you have to build the examples this way:
$ cd examples
$ qmake examples.pro
$ mingw32-make.exe

Windows doesn't like mixing of debug and release binaries. Most
of the problems with using the Qwt designer plugin are because
of trying to load a Qwt debug library into a designer release
executable.

Don't forget to tell qmake where to find qwt.prf:
qmake -set QMAKEFEATURES ...

注:若出现没有qwt.dll,将其从qwt-6.0.1\lib中拷出,放到目录C:\WINDOWS\system32下。

Reference:
http://qwt.sourceforge.net/qwtinstall.html
http://www.cuteqt.com/blog/?p=493

  评论这张
 
阅读(2274)| 评论(0)
推荐 转载

历史上的今天

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2017