Hello,
Can someone please point me in the right direction before I completely lose my mind here - I have a cmake project that requires OpenGL, and I have this in my Cmake project file:
Despite installing every conceivable package I can think of (and probably packages I didn't even need to install, I get this):
Packages present already on the system:
Is /usr/local/share/cmake/Modules/FindOpenGL.cmake broken or am I missing something here? Should I just try and use pkg-config in CMake instead to find the opengl libraries and headers.
Can someone please point me in the right direction before I completely lose my mind here - I have a cmake project that requires OpenGL, and I have this in my Cmake project file:
Code:
find_package(OpenGL REQUIRED)
Despite installing every conceivable package I can think of (and probably packages I didn't even need to install, I get this):
Code:
CMake Error at /usr/local/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_glx_LIBRARY
OPENGL_INCLUDE_DIR)
Call Stack (most recent call first):
/usr/local/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE)
/usr/local/share/cmake/Modules/FindOpenGL.cmake:545 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:3 (find_package)
Packages present already on the system:
Code:
xorg
freeglut
libGLU
libglvnd
libosmesa
mesa-devel
mesa-dri
mesa-libs
nvidia-driver
Is /usr/local/share/cmake/Modules/FindOpenGL.cmake broken or am I missing something here? Should I just try and use pkg-config in CMake instead to find the opengl libraries and headers.