ldif icon indicating copy to clipboard operation
ldif copied to clipboard

Fix issues while running ./build_gaps.sh

Open YunYunY opened this issue 4 years ago • 3 comments

Platform: Ubuntu 18.04.3 LTS

./build_gaps.sh
fatal error: GL/osmesa.h: No such file or directory

Fix for this error

apt-get install libosmesa6-dev

Second error while running

./build_gaps.sh
In file included from scn2cam.cpp:13:0:
/usr/include/GL/osmesa.h:124:1: error: ‘GLAPI’ does not name a type; did you mean ‘GLEWAPI’?
 GLAPI OSMesaContext GLAPIENTRY

Fix for this error Near the end of glew.h is the line: #undef GLAPI Delete it

Ready to go!

YunYunY avatar Jan 12 '21 05:01 YunYunY

Thanks @YunYunY for documenting this. Additionally to the GLAPI error I had this error: /usr/bin/ld: cannot find -lGLEW more verbose output via: ld -lGLEW --verbose fixed by installing libglew: sudo apt-get install libglew-dev​

janbechtold avatar Jan 20 '21 17:01 janbechtold

Error:

/usr/include/GL/osmesa.h:137:1: error: ‘GLAPI’ does not name a type
 GLAPI OSMesaContext GLAPIENTRY

fixed by removing #undef GLAPI in /usr/include/GL/glew.h as suggested by @YunYunY :)

Thanks for the tips! For completeness, I'm also on Ubuntu 18, running whatever strange combination of system packages I downloaded for the DeepSDF repository (which is presumably why I didn't encounter the other errors).

rachel-1 avatar Feb 24 '21 18:02 rachel-1

./build_gaps.sh fatal error: GL/glew.h: No such file or directory

bottleyeah avatar Jul 12 '21 03:07 bottleyeah