Home › Forum › SOFA › Building SOFA › [SOLVED] Lots of glew errors while building Sofa
Tagged: GCC, glew, Linux_ubuntu, SOFA_2012
- This topic has 4 replies, 3 voices, and was last updated 4 years, 7 months ago by
Cedric.
-
AuthorPosts
-
9 April 2021 at 12:41 #19102
Olumide
BlockedI 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?
9 April 2021 at 16:22 #19118Guillaume
KeymasterHi,
You don’t have to download and build GLEW by yourself.
As explained in build SOFA on Linux documentation, you simply need to runsudo apt install libglew-devand CMake will then find GLEW in your system.Hope that helps,
Guillaume.10 April 2021 at 02:15 #19126Olumide
BlockedThanks @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)11 April 2021 at 03:00 #19128Olumide
BlockedMarking as answered.
28 April 2021 at 11:49 #19333Cedric
BlockedHi 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
-
AuthorPosts
- You must be logged in to reply to this topic.
