stevenlovegrove / Pangolin

Pangolin is a lightweight portable rapid development library for managing OpenGL display / interaction and abstracting video input.
MIT License
2.33k stars 844 forks source link

[Install Pangolin] excute command : cmake . . (Error like this) #630

Closed Jerry-muyangren closed 3 years ago

Jerry-muyangren commented 3 years ago

wl@wl-pc:/media/wl/work/Pangolin/build$ cmake .. -- The C compiler identification is GNU 5.4.0 -- The CXX compiler identification is GNU 5.4.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 Build type not set (defaults to release) -DCMAKE_BUILD_TYPE=Debug for debug 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) src/CMakeLists.txt:158 (find_package)

-- Configuring incomplete, errors occurred! See also "/media/wl/work/Pangolin/build/CMakeFiles/CMakeOutput.log".

Jerry-muyangren commented 3 years ago

Pangolin used c2a6ef524401945b493f14f8b5b8aa76cc7d71a9

OpenGL version string: 4.5.0 NVIDIA 384.130

Ubuntu16.04

a1eaiactaest commented 3 years ago

Have you tried?: sudo apt install libgl1-mesa-dev libglew-dev

nassim12 commented 3 years ago

installing OpenGL solves this issue as suggested by a1eaiactaest .

shivakumar-tekumatla commented 4 months ago

I am seeing the following error even after installing all the suggested modules like libgl1-mesa-dev libglew-dev

/Pangolin/build$ cmake ..
-- The C compiler identification is GNU 9.4.0
-- The CXX compiler identification is GNU 9.4.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
-- Setting build type to 'Release' as none was specified.
-- libpng Found and Enabled
-- libjpeg Found and Enabled
-- libtiff Found and Enabled
-- libopenexr Found and Enabled
-- liblz4 Found and Enabled
-- libzstd Found and Enabled
-- Found Eigen: '/usr/include/eigen3'
CMake Error at /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message):
  Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_glx_LIBRARY)
Call Stack (most recent call first):
  /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:393 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake-3.16/Modules/FindOpenGL.cmake:397 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  components/pango_opengl/CMakeLists.txt:45 (find_package)
  CMakeLists.txt:111 (include)

-- Configuring incomplete, errors occurred!

Tried searching for an answer on internet but could not get it working. I am using Ubuntu 20