Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C++ 使用qt编译qt dab时出错(Ubuntu 14.04)_C++_Linux_Qt - Fatal编程技术网

C++ 使用qt编译qt dab时出错(Ubuntu 14.04)

C++ 使用qt编译qt dab时出错(Ubuntu 14.04),c++,linux,qt,C++,Linux,Qt,我正在尝试使用命令行编译qt dab: qmake qt-dab.pro make 但我收到了以下错误消息: /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”使用Qt版本5.2.1在/usr/lib/x86_64-linux-gnu中为我提供了qmake版本3.0 此外,

我正在尝试使用命令行编译qt dab:

qmake qt-dab.pro
make
但我收到了以下错误消息:

/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”使用Qt版本5.2.1在/usr/lib/x86_64-linux-gnu中为我提供了
qmake版本3.0


此外,我还安装了qwt-6.1.3库。有解决方案吗?

链接器找不到库:
qwt-qt5

如果您已安装qwt库,则需要查找它的位置。
听起来您可能已经安装了库的版本6,
但是正在尝试链接到版本5(在您的计算机上可能不存在)


当您在系统上找到正确的库时,您可以使用
-L
标志告诉链接器要搜索哪些目录。

您的意思是我应该在命令行中添加-L和Qt版本5的路径吗?是的<代码>-L路径/to/lib