[英]Error while compiling qt-dab with Qt (Ubuntu 14.04)
I am trying to compile qt-dab by using the command line: 我正在尝试通过使用命令行来编译qt-dab:
qmake qt-dab.pro
make
But I get these error messages: 但是我收到这些错误消息:
/usr/bin/ld : ne peut trouver -lqwt-qt5
collect2: error: ld returned 1 exit status
make: *** [linux-bin/qt-dab-0.998] Erreur 1
"qmake -v" gives me QMake version 3.0
using Qt version 5.2.1 in /usr/lib/x86_64-linux-gnu. “ qmake -v”使用/ usr / lib / x86_64-linux-gnu中的Qt版本5.2.1为我提供了QMake version 3.0
。
Moreover, I installed the qwt-6.1.3 library. 此外,我安装了qwt-6.1.3库。 Is there a solution for this? 有解决方案吗?
The linker can not find the library: qwt-qt5
. 链接器找不到库: qwt-qt5
。
If you've installed the qwt library, you will want to find where it is located. 如果已安装qwt库,则将需要查找它的位置。
It sounds like you may have installed version 6 of the library, 听起来您可能已经安装了该库的版本6,
but are trying to link with version 5 (which may be non-existent on your machine). 但正在尝试与版本5(您的计算机上可能不存在)链接。
When you find the correct library on your system, you can tell the linker which to directories to search for it using the -L
flag. 当您在系统上找到正确的库时,可以使用-L
标志告诉链接器在哪个目录中搜索它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.