*/}}

#4 Workaround for "glew.h fatal error: GL/glu.h no such file or directory"

Open
1 week geleden werd geopend door elblue · 0 opmerkingen

Hi, I am not sure if this is an issue that can be fixed with your code or if it is a problem with the GLEW code: When making LaGUI it fails due to some code in /usr/local/include/GL/glew.h

> make
[  3%] Building C object CMakeFiles/lagui.dir/la_animation.c.o
In file included from ~/LaGUI/la_util.h:59,
                 from ~/LaGUI/la_5.h:30,
                 from ~/LaGUI/la_animation.c:19:
/usr/local/include/GL/glew.h:1215:14: fatal error: GL/glu.h: No such file or directory
 1215 | #    include <GL/glu.h>
      |              ^~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/lagui.dir/build.make:76: CMakeFiles/lagui.dir/la_animation.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/lagui.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

I found the solution at https://github.com/nigels-com/glew/issues/192. I needed to comment out lines 1214 and 1215 in glew.h and it worked fine after.

Hi, I am not sure if this is an issue that can be fixed with your code or if it is a problem with the GLEW code: When making LaGUI it fails due to some code in /usr/local/include/GL/glew.h ``` > make [ 3%] Building C object CMakeFiles/lagui.dir/la_animation.c.o In file included from ~/LaGUI/la_util.h:59, from ~/LaGUI/la_5.h:30, from ~/LaGUI/la_animation.c:19: /usr/local/include/GL/glew.h:1215:14: fatal error: GL/glu.h: No such file or directory 1215 | # include <GL/glu.h> | ^~~~~~~~~~ compilation terminated. make[2]: *** [CMakeFiles/lagui.dir/build.make:76: CMakeFiles/lagui.dir/la_animation.c.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/lagui.dir/all] Error 2 make: *** [Makefile:136: all] Error 2 ``` I found the solution at https://github.com/nigels-com/glew/issues/192. I needed to comment out lines 1214 and 1215 in glew.h and it worked fine after.
Sign in to join this conversation.
Geen label
Geen mijlpaal
Geen verantwoordelijke
1 deelnemers
Laden...
Annuleren
Opslaan
Er is nog geen inhoud.