Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issues while running ./build_gaps.sh #12

Open
YunYunY opened this issue Jan 12, 2021 · 3 comments
Open

Fix issues while running ./build_gaps.sh #12

YunYunY opened this issue Jan 12, 2021 · 3 comments

Comments

@YunYunY
Copy link

YunYunY commented Jan 12, 2021

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!

@janbechtold
Copy link

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​

@rachel-1
Copy link

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).

@bottleyeah
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants