Can not include this library <GL/glu.h>
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 ;
Code:
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.
Re: Can not include this library <GL/glu.h>
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.
Re: Can not include this library <GL/glu.h>
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:
Re: Can not include this library <GL/glu.h>
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
Re: Can not include this library <GL/glu.h>
Thanks for your reply I have tried freeglut3-android-modules.tar there's one lib in there called libfreetype.a didn't work.
Re: Can not include this library <GL/glu.h>
Quote:
libfreetype.a didn't work.
And "didn't work" means what, exactly?
Re: Can not include this library <GL/glu.h>
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
Re: Can not include this library <GL/glu.h>
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.