【发布时间】:2020-03-06 08:00:12
【问题描述】:
我有一个新安装的 Ubuntu 18.04.3 系统 (NVIDIA),只安装了 Qt SDK 5.12.5、build-essential、git 和 CMake。我正在尝试通过在 Qt Creator 中打开主 CMakeLists.txt 来构建 Qt 项目:
Check for working CXX compiler: /usr/bin/g++
Check for working CXX compiler: /usr/bin/g++ -- works
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done
Detecting CXX compile features
Detecting CXX compile features - done
CMake Error at /home/juzzlin/Qt/5.12.5/gcc_64/lib/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake:9 (message):
Failed to find "GL/gl.h" in "/usr/include/libdrm".
Call Stack (most recent call first):
/home/juzzlin/Qt/5.12.5/gcc_64/lib/cmake/Qt5Gui/Qt5GuiConfig.cmake:174 (include)
/home/juzzlin/Qt/5.12.5/gcc_64/lib/cmake/Qt5Widgets/Qt5WidgetsConfig.cmake:89 (find_package)
CMakeLists.txt:89 (find_package)
我还应该安装什么?
注意:我根本没有从存储库安装 Qt。只能通过官方在线安装程序。
【问题讨论】:
标签: qt opengl cmake nvidia ubuntu-18.04