Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1241243
  • 博文数量: 389
  • 博客积分: 2874
  • 博客等级: 少校
  • 技术积分: 3577
  • 用 户 组: 普通用户
  • 注册时间: 2009-10-24 10:34
文章分类

全部博文(389)

文章存档

2020年(2)

2018年(39)

2017年(27)

2016年(3)

2015年(55)

2014年(92)

2013年(54)

2012年(53)

2011年(64)

分类: C/C++

2011-09-22 13:19:07

Qt绘图、Qt绘制曲线第三方插件 

GraphPak  

KD Chart   

Qwt           


linux 下Qt 3安装qwt插件
版本qwt-4.2.0.tar.bz2
解压之后按其中的INSTALL文件安装
#Builds for Qt 3.x need qmake, that is official part of Qt 3.x.
qmake qwt.pro
make
The designer plugin is available for Qt > 3.x only. You can build and
install it with(这个东西编出来在qwt-4.2.0/designer/plugins/designer里生成libqwtplugin.so):

cd designer
qmake qwtplugin.pro
make
make install(这个命令把libqwtplugin.so这个插件库安装在QTDIR/plugins/designer/里,等designer运行的时候就会自动加载qwt了)

If you like to build the examples:
cd examples
qmake examples.pro
make

If you like to run the examples, don't forget to install the qwt libraries
or set the LD_LIBRARY_PATH to the lib directory of your local build.

qwt doesn't distribute binary unix packages. qwt.spec is a template
spec file for building rpm packages. Read the comments at the beginning
of qwt.pro how to use it.

一般说来,只要LD_LIBRARY_PATH路径设得对,就没问题

在FC4下 Qt 3.3在 /usr/lib/qt-3.3/ 目录中
为了方便,可以在$QTDIR/bin中建立一个bash文件,起动designer

#!/bin/bash
export QTDIR=/usr/lib/qt-3.3
export LD_LIBRARY_PATH=$(QTDIR)/lib:$(QTDIR)/plugins/designer:/Software/temp/qwt-4.2.0/lib

./designer &

source 它就可以了

上面的文章摘自:http://my.opera.com/kanzaki_v/blog/show.dml/282064
阅读(3083) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~