【发布时间】:2015-07-16 19:54:52
【问题描述】:
我不知道运行使用 Qwt 库的示例程序需要做什么。
我像往常一样从here 下载文件qwt-6.1.2.tar.bz2,它转到下载目录,然后我将文件解压缩到此目录。我现在在下载目录中有qwt-6.1.2 目录。
我机器中的Qt目录位于/opt/Qt5.4.1/
我如何从这里继续?
我尝试运行 qmake:
natile@natile-Precision-T1650:/opt/Qt5.4.1/5.4/gcc_64/bin$ sudo ./qmake /home/natile/Downloads/qwt-6.1.2/qwt.pro
在我运行 make 之后:
natile@natile-Precision-T1650:/opt/Qt5.4.1/5.4/gcc_64/bin$ sudo make
但我得到一个错误:
cd src/ && ( test -e Makefile || /opt/Qt5.4.1/5.4/gcc_64/bin/qmake /home/natile/Downloads/qwt-6.1.2/src/src.pro -o Makefile ) && make -f Makefile
make[1]: Entering directory `/opt/Qt5.4.1/5.4/gcc_64/bin/src'
compiling /home/natile/qtcreator-projects/qwt/qwt-5.2/src/qwt_abstract_scale_draw.cpp
In file included from /home/natile/qtcreator-projects/qwt/qwt-5.2/src/qwt_abstract_scale_draw.cpp:19:0:
/home/natile/qtcreator-projects/qwt/qwt-5.2/src/qwt_scale_map.h:92:5: error: ‘QT_STATIC_CONST’ does not name a type
/home/natile/qtcreator-projects/qwt/qwt-5.2/src/qwt_scale_map.h:93:5: error: ‘QT_STATIC_CONST’ does not name a type
make[1]: *** [obj/qwt_abstract_scale_draw.o] Error 1
make[1]: Leaving directory `/opt/Qt5.4.1/5.4/gcc_64/bin/src'
make: *** [sub-src-make_first-ordered] Error 2
我知道我必须运行 qmake。
我在安装 URL 中一无所获:http://qwt.sourceforge.net/qwtinstall.html
请帮忙。
【问题讨论】: