使用 FindQt.cmake 查找 QT 库:
FIND_PACKAGE(Qt4 COMPONENTS QtCore QtGui QtOpenGL )
但是,我总是收到此警告:
The ASM compiler identification is GNU
CMake Warning at ../cmake-2.8/Modules/FindQt4.cmake:601 (MESSAGE):
/Qt4.8.0/bin/qmake reported
QT_INSTALL_LIBS as "/Qt4.8.0/lib"
but QtCore could not be found there. Qt is NOT installed correctly for the
target build environment.
我确定有 QtCore 库:/Qt4.8.0/lib
ls -all libQtCore*
-rw-r--r-- 1 root root 950 Nov 30 13:08 libQtCore.la
-rw-r--r-- 1 root root 942 Nov 30 13:07 libQtCore.prl
lrwxrwxrwx 1 root root 18 Nov 30 13:07 libQtCore.so -> libQtCore.so.4.8.0
lrwxrwxrwx 1 root root 18 Nov 30 13:08 libQtCore.so.4 -> libQtCore.so.4.8.0
lrwxrwxrwx 1 root root 18 Nov 30 13:08 libQtCore.so.4.8 -> libQtCore.so.4.8.0
-rwxr-xr-x 1 root root 2697932 Nov 30 13:08 libQtCore.so.4.8.0
如何检查为什么在该目录中找不到 QtCore 的警告?