编译工程时出现cmake找不到Qt4的问题,如下:
CMake Warning at /usr/share/cmake-3.5/Modules/FindQt4.cmake:626 (message):
/usr/bin/qmake-qt4 reported QT_INSTALL_LIBS as "/usr/lib/x86_64-linux-gnu"
but QtCore could not be found there.
Qt is NOT installed correctly for the target build environment.
CMake Error at /usr/share/cmake-3.5/Modules/FindQt4.cmake:634 (message):
Could NOT find QtCore.
解决办法
sudo apt install cmake gcc g++ qt{4,5}-qmake libqt4-dev
本文详细描述了在编译工程中遇到CMake无法找到Qt4组件的问题,并提供了具体的解决方案,包括安装必要的Qt4和CMake相关软件包。
2524

被折叠的 条评论
为什么被折叠?



