Hello there I am trying to learn to make graphical programs in C++, I'm novice, but capable of simple console programs, but I want to move beyond that and start using OpenGL and graphics. My editor of choice is codeblocks and I have made absolutely zero progress in this mission for about two months now.
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", although I hadn't actually opened any of the cpp files which may be where the problem accurred
It gives only the very vaguest hints as to what to do with the downloads, and quite frankly, it doesnt tell you what to do with (whatever file it makes) when you premake the opengl library files. It assumes you've done the same operation for years and just "know" what to do. What is the purpose of a tutorial that just assumes you know what to do?
What I did:
* Download Tutorial files, premake and the Unofficial OpenGL SDK, and unzip them
* Ran premake on a tutorial to make it codeblocks freindly.
* Ran premake on the OpenGl stuff to do... something?
* I cant exactly remember now but I copied most of the folders from the opengl directory into the tutorial code's directory as I assumed it would need it in there to be able to find and use it.
* Opened codeblocks and ran said tutorial.... I get the following build errors:
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 has any experience this, can you advise what to do next?
Alternatively, if someone can come up with a step by step (unassuming guide) to every single step, from installing everything to making this pressing F9 and making this code work, i would also be happy with that.
Additionally, if anyone can advise a better programming language than C++ which is good for (hopefully, eventually) modern day fancy graphics, which isnt a completely deliberate nightmare to even run example code. Please do tell me.
In the old days (the BASIC days) you could just put a file in a directory, type "include ####" and it just worked.
Nowadays: You have to convert sourcecode into an IDE-freindly format (because they're all read c++ in different ways), you have to compile OpenGL source code into a an ide freindly version that it can use. You also apparently have to have about 5 different versions of OpenGL (glew, gltut, freegl, glib and god knows what else) You then, presumably have to tell the IDE where this version is.... and who knows what crazy unintuitive stuff beyond that...