$ sudo prt-get depinst bumblebee prt-get: installing /usr/ports/romster/virtualgl =======> Building '/usr/ports/romster/virtualgl/virtualgl#2.3.2-1.pkg.tar.gz'. bsdtar -p -o -C /usr/ports/romster/virtualgl/work/src -xf /usr/ports/romster/virtualgl/VirtualGL-2.3.2.tar.gz + build + cd VirtualGL-2.3.2 + unset CC CXX + install -d build + cd build + cmake ../ -DCMAKE_INSTALL_PREFIX=/opt/VirtualGL -DMANDIR=/usr/man -DTJPEG_INCLUDE_DIR=/usr/include/libjpeg-turbo/ -DTJPEG_LIBRARY=/usr/lib/libjpeg-turbo/libturbojpeg.so -DVGL_LIBDIR=/usr/lib -DVGL_BINDIR=/usr/bin -- The C compiler identification is GNU 7.3.0 -- The CXX compiler identification is GNU 7.3.0 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- CMAKE_BUILD_TYPE = Release -- VERSION = 2.3.2, BUILD = 20181112 -- CMAKE_INSTALL_PREFIX = /opt/VirtualGL -- VGL_BINDIR = /usr/bin -- VGL_DOCDIR = /opt/VirtualGL/doc -- 64-bit build (x86_64) -- Linking with static libstdc++: /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../lib/libstdc++.a -- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so -- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so - found -- Looking for gethostbyname -- Looking for gethostbyname - found -- Looking for connect -- Looking for connect - found -- Looking for remove -- Looking for remove - found -- Looking for shmat -- Looking for shmat - found -- Looking for IceConnectionNumber in ICE -- Looking for IceConnectionNumber in ICE - found -- Found X11: /usr/lib64/libX11.so CMake Warning (dev) at /usr/share/cmake/Modules/FindOpenGL.cmake:270 (message): Policy CMP0072 is not set: FindOpenGL prefers GLVND by default when available. Run "cmake --help-policy CMP0072" for policy details. Use the cmake_policy command to set the policy and suppress this warning. FindOpenGL found both a legacy GL library: OPENGL_gl_LIBRARY: /usr/lib64/libGL.so and GLVND libraries for OpenGL and GLX: OPENGL_opengl_LIBRARY: /usr/lib64/libOpenGL.so OPENGL_glx_LIBRARY: /usr/lib64/libGLX.so OpenGL_GL_PREFERENCE has not been set to "GLVND" or "LEGACY", so for compatibility with CMake 3.10 and below the legacy GL library will be used. Call Stack (most recent call first): CMakeLists.txt:204 (include) This warning is for project developers. Use -Wno-dev to suppress it. -- Found OpenGL: /usr/lib64/libOpenGL.so -- Enabling X Video support -- TJPEG_INCLUDE_DIR = /usr/include -- Performing Test TURBOJPEG_WORKS -- Performing Test TURBOJPEG_WORKS - Failed CMake Error at cmakescripts/FindTurboJPEG.cmake:52 (message): Could not link with TurboJPEG library /usr/lib/libjpeg-turbo/libturbojpeg.so. If it is installed in a different place, then set TJPEG_LIBRARY accordingly. Call Stack (most recent call first): CMakeLists.txt:242 (include) -- Configuring incomplete, errors occurred! See also "/usr/ports/romster/virtualgl/work/src/VirtualGL-2.3.2/build/CMakeFiles/CMakeOutput.log". See also "/usr/ports/romster/virtualgl/work/src/VirtualGL-2.3.2/build/CMakeFiles/CMakeError.log". =======> ERROR: Building '/usr/ports/romster/virtualgl/virtualgl#2.3.2-1.pkg.tar.gz' failed. prt-get: error while install -- Packages where install failed virtualgl