I came across an error trying to install OpenCASCADE (oce) using
cmake, where I was following the build command:
mkdir build cd build cmake -DOCE_INSTALL_PREFIX=/path/to/where/you/want/oce .. make install
I downloaded OpenCASCADE with:
git clone git://github.com/tpaviot/oce.git from https://www.dealii.org/8.3.0/external-libs/opencascade.html
The command line build error is:
-- Build 64bit CMake Error at /usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:148 (message): Could NOT find OpenGL (missing: OPENGL_gl_LIBRARY OPENGL_INCLUDE_DIR) Call Stack (most recent call first): /usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MESSAGE) /usr/share/cmake-3.5/Modules/FindOpenGL.cmake:172 (FIND_PACKAGE_HANDLE_STANDARD_ARGS) CMakeLists.txt:440 (find_package)
I checked to see if I had a version of OpenGL, with,
glxinfo | grep "OpenGL version"
OpenGL version string: 3.0 Mesa 12.0.6
So it seems I have
OpenGL but the build cannot find it.
Can anyone understand how to resolve this?