- This topic has 4 replies, 3 voices, and was last updated 3 years, 6 months ago by .
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- You must be logged in to reply to this topic.
Home › Forum › SOFA › Building SOFA › [SOLVED] Lots of glew errors while building Sofa
Tagged: GCC, glew, Linux_ubuntu, SOFA_2012
I am building sofa from source and I’m getting lots of glew related errors
Install prefix: /home/Olumide/Downloads/src/sofa-src/sofa/src/Release/install
CMake Error at /home/Olumide/Downloads/src/glew/build/cmake/glew-config.cmake:16 (include):
include could not find load file:
/home/Olumide/Downloads/src/glew/build/cmake/glew-targets.cmake
Call Stack (most recent call first):
/opt/cmake-3.19.1-Linux-x86_64/share/cmake-3.19/Modules/FindGLEW.cmake:62 (find_package)
SofaKernel/SofaFramework/SofaMacrosConfigure.cmake:328 (find_package)
SofaKernel/modules/SofaHelper/CMakeLists.txt:21 (sofa_find_package)
CMake Error at /home/Olumide/Downloads/src/glew/build/cmake/CopyImportedTargetProperties.cmake:64 (get_property):
get_property could not find TARGET GLEW::glew. Perhaps it has not yet been
created.
Call Stack (most recent call first):
/home/Olumide/Downloads/src/glew/build/cmake/glew-config.cmake:56 (copy_imported_target_properties)
/opt/cmake-3.19.1-Linux-x86_64/share/cmake-3.19/Modules/FindGLEW.cmake:62 (find_package)
SofaKernel/SofaFramework/SofaMacrosConfigure.cmake:328 (find_package)
SofaKernel/modules/SofaHelper/CMakeLists.txt:21 (sofa_find_package)
I downloaded glew from https://github.com/nigels-com/glew.
What is the procedure for building glew for sofa?
Hi,
You don’t have to download and build GLEW by yourself.
As explained in build SOFA on Linux documentation, you simply need to run sudo apt install libglew-dev
and CMake will then find GLEW in your system.
Hope that helps,
Guillaume.
Thanks @Guillaume. What threw me was that there is no explicit glew directory, debug or release static libraries or debug shared library — at least not that I could find.
(https://packages.ubuntu.com/bionic/amd64/libglew-dev/filelist)
Marking as answered.
Hi all,
I am getting the same errors. I cannot use the apt install because I do not have admin privileges.
Can we reopen this thread?
Kind regards,
Cedric
WARNING
The forum has been moved to GitHub Discussions.
Old topics and replies are kept here as an archive.