I had a look at the linked web pages and I'll try to give some hints. From my understanding your problems don't have do with Code::Blocks.
Btw. are you using Windows or Linux?
I even managed to get premake to compile the code into a codeblocks compatible format. But when I go into the code and run the framework.cpp. It fails to run with "You must select a "host" application to run a library". I have no idea how to solve this.
I think you did the second step before the first because there is no framework.cpp file in the Unofficial OpenGL SDK @ http://glsdk.sourceforge.net/docs/html/index.html (http://glsdk.sourceforge.net/docs/html/index.html) that you need to install (and build) first. It seems that framework.cpp belongs to the tutorial source tree.
* Ran premake on a tutorial to make it codeblocks freindly.
* Ran premake on the OpenGl stuff to do... something?
Well premake will build a Code::Blocks workspace file and some project files for you in the SDK folder that later can be used to build the SDK.
On my machine called in the SDK source directory it looks like this:
pirx67@hal2006:~/Src/OpenGL/glsdk_0_5_2$ premake4 codeblocks
Building configurations...
Running action 'codeblocks'...
Generating glsdk.workspace...
Generating glload/glload.cbp...
Generating glimg/glimg.cbp...
Generating glfw/glfw.cbp...
Generating freeglut/freeglut.cbp...
Generating glutil/glutil.cbp...
Generating glmesh/glmesh.cbp...
Done.
It generates a workspace file and some project files for Code::Blocks.
You should then open the generated workspace file and be able to build the SDK using Code::Blocks via Menu "Build->Build workspace".
(Not tested here ...) There will be build dependencies to the OpenGL headers.
After all you should be able to call "premake4 codeblocks" in every tutorial directory. Using the generated workspace/project files you should
be able to build them.
For further assistance you should ask the people that published the referenced book @http://www.arcsynthesis.org/gltut/ (http://www.arcsynthesis.org/gltut/) and / or the guys of the OpenGL SDK because your problems don't have so much to with Code::Blocks (remember the forum's rules).
Hope that helps,
pirx67
Thanks for the help, I tried, but still not working. When I go into the tutorials subdirectory code and run it, the error given is now a build error of:
c:/program files (x86)/codeblocks/mingw/bin/../lib/gcc/mingw32/4.7.1/../../../../mingw32/bin/ld.exe: cannot find -lglloadD
c:/program files (x86)/codeblocks/mingw/bin/../lib/gcc/mingw32/4.7.1/../../../../mingw32/bin/ld.exe: cannot find -lglimgD
c:/program files (x86)/codeblocks/mingw/bin/../lib/gcc/mingw32/4.7.1/../../../../mingw32/bin/ld.exe: cannot find -lglutilD
c:/program files (x86)/codeblocks/mingw/bin/../lib/gcc/mingw32/4.7.1/../../../../mingw32/bin/ld.exe: cannot find -lglmeshD
c:/program files (x86)/codeblocks/mingw/bin/../lib/gcc/mingw32/4.7.1/../../../../mingw32/bin/ld.exe: cannot find -lfreeglutD
I guess then its impossible to learn graphics programming in c++ without paying 1000s to take an educational course (goodbye bedroom coders), as no one knows how to do it! This looked like the one good place that every said was good to learn this stuff, but they have only the vaguest setup instructions, and worst of all, theres no way to contact the people that made it. And here, the general c++ forums too, everyone says its someone else's fault and no one can help.
Goddammit... :(