PDA

View Full Version : Can not include this library <GL/glu.h>



zed220
21st March 2018, 14:55
Hi All,

I'm trying to create APK file with Android version of Qt but unfortunately I can not make build, it keeps giving me this error ;


error: GL/glu.h: No such file or directory
#include <GL/glu.h>

I have the latest version of SDK 26.0.1

Anyone with a bright idea please.

d_stranz
21st March 2018, 15:28
Looks like you need to find a build of GLUT for Android and install the library and header files so Qt can find them. Google will probably be your friend.

zed220
26th March 2018, 16:44
Can someone please tell me where I can download this library from ? I have tried these packages glew-2.1.0-win32, glut-3.7.6-bin, glut37 but no joy. :crying:

ChrisW67
27th March 2018, 10:43
A Win32 package was hardly going to be a good option for an Android development.
Did you look at the first Google hit: http://freeglut.sourceforge.net/docs/android.php

zed220
27th March 2018, 13:20
Thanks for your reply I have tried freeglut3-android-modules.tar there's one lib in there called libfreetype.a didn't work.

d_stranz
27th March 2018, 21:53
libfreetype.a didn't work.

And "didn't work" means what, exactly?

zed220
29th March 2018, 15:55
Sorry I didn't make myself clear, by including this library it hasn't made any difference I'm getting the same error as before. error: GL/glu.h: No such file or directory

d_stranz
29th March 2018, 17:32
Then your problem is that you have not set up your include paths correctly so the compiler can find the headers. Notice that the #include directive uses the -parent- directory (GL) of the glu.h header file, not the directory that contains the file itself, so set your include path to point to that. It could also be that your freeglut distribution didn't put the glu.h file in your OpenGL distribution's GL directory, but has it in its own GL directory. Search through your file system and find it, and add that directory to your include path.

If your include path isn't set up correctly, then it is also likely that your library path isn't set correctly either. Make sure that the linker can find your GLUT library at run time.