编译工程时出现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