Hi Guys, first post. Hopefully someone can help me out.
I'm working on a Tetris clone, and am using OpenGL to do some 3D stuff. I've implemented most of the basics and have successfully done a bunch of testing on Windows (host build, codeblocks/mingw/etc.). Problem is that when I try to build the target executable, I get the following errors:
C:\Program Files (x86)\CAANOO\GPH_SDK\DGE\include\SDL\SDL_opengl.h|44|error: GL/gl.h: No such file or directory
C:\Program Files (x86)\CAANOO\GPH_SDK\DGE\include\SDL\SDL_opengl.h|45|error: GL/glu.h: No such file or directory
Followed by a bunch of other errors presumably due to the missing headers.
So, I'm just including SDL_opengl.h, and expecting it to include the right OpenGL headers ( GLES/gl.h ). Am I wrong to assume that the SDL_opengl header should include the right OpenGL headers automatically, or am I doing something wrong? I can't see any GLES/gl.h includes in the file, so I doubt I'm just missing a #define I need.
I used the new GP2X project wizard I installed with codeblocks, so I don't think I messed up the include directories or anything, but I guess that's a possibility.
Any help would be much appreciated.
Thanks,
~ Dan
(Sorry if this has been answered elsewhere already. I tried a few searches, but couldn't find anything related)
I'm working on a Tetris clone, and am using OpenGL to do some 3D stuff. I've implemented most of the basics and have successfully done a bunch of testing on Windows (host build, codeblocks/mingw/etc.). Problem is that when I try to build the target executable, I get the following errors:
C:\Program Files (x86)\CAANOO\GPH_SDK\DGE\include\SDL\SDL_opengl.h|44|error: GL/gl.h: No such file or directory
C:\Program Files (x86)\CAANOO\GPH_SDK\DGE\include\SDL\SDL_opengl.h|45|error: GL/glu.h: No such file or directory
Followed by a bunch of other errors presumably due to the missing headers.
So, I'm just including SDL_opengl.h, and expecting it to include the right OpenGL headers ( GLES/gl.h ). Am I wrong to assume that the SDL_opengl header should include the right OpenGL headers automatically, or am I doing something wrong? I can't see any GLES/gl.h includes in the file, so I doubt I'm just missing a #define I need.
I used the new GP2X project wizard I installed with codeblocks, so I don't think I messed up the include directories or anything, but I guess that's a possibility.
Any help would be much appreciated.
Thanks,
~ Dan
(Sorry if this has been answered elsewhere already. I tried a few searches, but couldn't find anything related)