I’m trying to build the unofficial opengl sdk (glsdk.sourceforge.net), and I’m running into this issue. I’m not sure if I’m missing some dependency but I’ve no idea what config.h is. I just unzipped the glsdk to the directory and ran these commands:
‘sh’ is not recognized as an internal or external command,
operable program or batch file.
Running action ‘gmake’…
“==== Building glload (debug) ====”
“==== Building glimg (debug) ====”
“==== Building glfw (debug) ====”
lib/stream.c:31:0: warning: “_CRT_SECURE_NO_WARNINGS” redefined [enabled by defa
<command-line>:0:0: note: this is the location of the previous definition
“==== Building freeglut (debug) ====”
In file included from src/freeglut_callbacks.c:29:0:
src/freeglut_internal.h:32:24: fatal error: config.h: No such file or directory
mingw32-make: *** [obj/Debug/freeglut_callbacks.o] Error 1
mingw32-make: *** [freeglut] Error 2
PLEASE DISREGARD – I didn’t notice your tutorials come with glsdk and I’m to simply build them in place, not get glsdk myself. I’ll keep the rest of the post here in case it’s ever useful to some googler somewhere. (I’m still not sure why it couldn’t load glloadD.lib when I had manually put my own copy of glsdk in the classpath and built it though)
I’m actually trying to build your tutorial projects. I’ve switched to vs2010 as suggested and get this error (after running ‘premake4 vs2010’ and then attempting to build in vs2010):
Unable to start program
The specified file is an unrecognized or unsupported binary format.
Not sure what to make of this. Any advice?
Edit: I thought perhaps there were some left over files from when I ran ‘premake4 gmake’ & ‘mingw32-make’, so I used a fresh directory and got this error:
I have glsdk in my class path so I’m not entirely sure why vs2010 can’t find glloadD.lib – do I have to add each sub-directory to the classpath? I’m not entirely sure which gui option lets me add glsdk as a dependency.
I’m using your tutorials as resource tools for teaching my lecture in Interactive Computer Graphics. Had to start the entire course from a blank slate around second half of last year and you’ve been of great help!
P.S.: It might help if the sentence “Using the generated build files, compile for both debug and release.” in your tutorial emphasize a bit on building the glsdk solution. I believe this is what is confusing the newbies who are assuming the Tutorial projects are the only VS projects to be run.