paroj / gltut

Learning Modern 3D Graphics Programming
https://paroj.github.io/gltut/
MIT License
1.57k stars 377 forks source link

Arc Synthesis tutorials help #87

Closed paroj closed 2 years ago

paroj commented 10 years ago

Originally reported by: Chris Crinkle (Bitbucket: crazycrinkle, GitHub: Unknown)


Hello there, I think this is the place to ask for help with the http://www.arcsynthesis.org/gltut/ tutorials?

It seems to be and I have a problem, I know basic C++ but need to learn to do stuff with c++ and graphics (so OpenGL). So found the tutorial series. I used CODEBLOCKS as my IDE as VB is too complicated looking.

I learn a lot through reverse engineering, so immediately tried to run the tutorials, but they give me build errors as per below:

#!txt

-------------- Build: Debug in Tut 01 Main (compiler: GNU GCC Compiler)---------------

mingw32-g++.exe -L..\glsdk\glload\lib -L..\glsdk\glimg\lib -L..\glsdk\glutil\lib -L..\glsdk\glmesh\lib -L..\glsdk\freeglut\lib -L..\framework\lib -o "Tut 01 MainD.exe" obj\Debug\tut1.o   -lframeworkD -lglloadD -lglimgD -lglutilD -lglmeshD -lfreeglutD -lglu32 -lopengl32 -lgdi32 -lwinmm -luser32
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

If anyone knows how to help I would really apreciate it because the install instructions for the tutorials is not aimed at beginners, and should really be elaborated on and extended.


paroj commented 9 years ago

Original comment by Skalmantas Šimėnas (Bitbucket: StuckScar, GitHub: Unknown):


So, on the unlikely occasion you are still having the problem after half a year: You have to premake the folder glsdk too and using the produced workspace, build it whole (the workspace that is, using Build->Build workspace), afterwards build the whole all-tutorial workspace. You might need to build it on both Debug and Release (found somewhere in the top part), I don't remember. This is a very short explanation as I'm not expecting you to still be active.