linux – CMake找不到QtCore

前端之家收集整理的这篇文章主要介绍了linux – CMake找不到QtCore前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我的项目使用cmake试图寻找安装的QT4:
root@netqa1:~# which qmake
/usr/bin/qmake

root@netqa1:~# ls -l /usr/lib/i386-linux-gnu/libQtCore.so*
lrwxrwxrwx 1 root root      18 Feb  6  2013 /usr/lib/i386-linux-gnu/libQtCore.so -> libQtCore.so.4.8.1
lrwxrwxrwx 1 root root      18 Feb  6  2013 /usr/lib/i386-linux-gnu/libQtCore.so.4 -> libQtCore.so.4.8.1
lrwxrwxrwx 1 root root      18 Feb  6  2013 /usr/lib/i386-linux-gnu/libQtCore.so.4.8 -> libQtCore.so.4.8.1
-rw-r--r-- 1 root root 2998336 Feb  6  2013 /usr/lib/i386-linux-gnu/libQtCore.so.4.8.1

我仍然继续从cmake得到这个错误

Warning: QT_QMAKE_EXECUTABLE reported QT_INSTALL_LIBS as /usr/lib/i386-linux-gnu
Warning: But QtCore couldn't be found.  Qt must NOT be installed correctly,or it wasn't found for cross compiling.

任何指针都会非常有用

解决方法

您可能没有安装QT4 dev数据包.在Ubuntu上,这就像libqt4-dev.

后缀“dev”代表开发包.

原文链接:https://www.f2er.com/linux/394585.html

猜你在找的Linux相关文章