实验背景:使用CMake编译图形相关repo
实验环境:Ubuntu 18.04+Docker container
输入编译指令:
cmake . -B build
出现GLEW报错信息如下:
"
CMake Error at /opt/conda/share/cmake-3.21/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find GLEW (missing: GLEW_INCLUDE_DIRS GLEW_LIBRARIES)
Call Stack (most recent call first):
/opt/conda/share/cmake-3.21/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
/opt/conda/share/cmake-3.21/Modules/FindGLEW.cmake:215 (find_package_handle_standard_args)
CMakeLists.txt:134 (find_package)
– Configuring incomplete, errors occurred!
"
找了几个方法后,最直接的就是安装glew包,附上原文链接。
安装指令如下:
sudo apt install libglew-dev
问题就解决啦~ 欢迎大家评论区讨论!