ページ

2013年11月23日土曜日

Qwtのインストール・メモ

Qt のグラフライブラリ インストールに苦労したのでメモ

使用したもの
windows 8 64bit
Qt 5.1.1 for Windows 32-bit (MinGW 4.8, OpenGL, 666 MB)
qwt-6.1.0.zip

1.Qt をインストールしてシステム環境変数を登録
C:\Qt\Qt5.1.1\5.1.1\mingw48_32\bin
C:\Qt\Qt5.1.1\Tools\mingw48_32\bin

2.qwt-6.1.0.zipを解凍する
コマンドプロンプトを開く。
qwt-6.1.0.zipを解凍したフォルダ(C:\temp\qwt-6.1.0)で次のコマンドを打つ。
qmake qwt.pro
mingw32-make
mingw32-make install

成功すると
C:\Qwt-6.1.0 が出来上がる。

3.システム環境変数を登録
C:\Qwt-6.1.0\lib

ユーザー環境変数を登録する。
変数:QT_PLUGIN_PATH  値:C:\Qwt-6.1.0\plugins;
変数:QMAKEFEATURES  値:C:\Qwt-6.1.0\features;


環境変数を反映させるために再起動させる。
これで完了。

参考にしたサイト:HowTo: Installation of Qt 5.0.1 and Qwt 6.1.0 rc3 (Win7 64bit)


以下苦労した点 
mingw32-make の時エラーが出た。

collect2.exe: error: ld returned 1 exit status
Makefile.Release:320: recipe for target '../lib/qwt.dll' fa
mingw32-make[2]: *** [../lib/qwt.dll] Error 1
mingw32-make[2]: Leaving directory 'D:/qwt-6.1.0/src'
Makefile:38: recipe for target 'release-all' failed
mingw32-make[1]: *** [release-all] Error 2
mingw32-make[1]: Leaving directory 'D:/qwt-6.1.0/src'
makefile:41: recipe for target 'sub-src-make_first-ordered'
mingw32-make: *** [sub-src-make_first-ordered] Error 2

たぶん以前に利用していたMinGW を使っていたからだと思う

備考:
>qmake -set QMAKEFEATURES C:\Qwt-6.0.1\features と解説している所もあった。

> qmake -unset QMAKEFEATURES
> set QMAKEFEATURES=C:\Qwt-6.1.0\features
> qmake  
>



>mingw32-make install の時に
mingw32-make: *** No rule to make target 'inatall'.  Stop. のエラーが出た時は再起動

qwt widget は使えない。プラグインが読み込めていないみたいです。

QCustomPlot というライブラリもあるようです。

0 件のコメント:

コメントを投稿