Estou usando o Arch linux e tentando aprender o GLFW com C ++. Eu preciso incluir cabeçalhos OpenGL no meu programa. Eu tenho o seguinte arquivo cmake no QtCreator: -
cmake_minimum_required(VERSION 2.8)
find_package(glfw3 3.2 REQUIRED)
find_package(OpenGL REQUIRED)
project(gt)
add_executable(${PROJECT_NAME} "main.cpp")
target_include_directories(myapp ${OPENGL_INCLUDE_DIR})
target_link_libraries(gt ${OPENGL_gl_LIBRARY})
target_link_libraries(gt ${OPENGL_glu_LIBRARY})
Mas o QtCreator não consegue configurar o arquivo e eu recebo o seguinte erro: -
/usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:137: error: Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_glx_LIBRARY OPENGL_INCLUDE_DIR) /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE) /usr/share/cmake-3.10/Modules/FindOpenGL.cmake:369 (FIND_PACKAGE_HANDLE_STANDARD_ARGS) CMakeLists.txt:4 (find_package)
:-1: error: Configuration failed.
Eu também instalei o base-devel
group ao instalar o arch linux
Tags opengl c++ arch-linux header-file