User forums > Using Code::Blocks

Code::Blocks don't finds my SDL2 libs

<< < (2/2)

moevenbaer:
Thankyou Tim,
my problem is/was to learn about what this 32/64 really is.
It is (using 32 and 64 in names and x86_64 and i686 and ...) very confusing.
My first goal was to get a code::blocks installation to use c++ console.
My second goal becomes a little bit more problematic. Learning what libs does what was again very confusing.
So I learned, that SDL2 and GLFW make in parts the same (windoing, keyboard, mouse), but SDL2 has additionally an API for 2d graphics.
And looking forward to 3D I learnd that there are different Frameworks (directx, vulcan, opengl, ...)
But I didn't understand how the libs work together (SDL2/GLFWand OpenGL). Now I hope to have an idea about that.
Surfing the Internet there where so many different ways, and I got no one to work. More Confusing was, that there are GlUT, GLEW, GLAD, ... and I don't know today why I do need them and which. The background of GL-function-pointer (GLAD) and so on I didn't understand.

So for now I wanted to figure out a repeatable way to get a C++ IDE with 2D and 3D capabillities. I decided to use SDL2 with Code::Blocks. And now I decide, that I don't want to look back to 32-bit. I have no reason to do so. And the compiler suite doesn't matter. So I use the MinGW only because the block::code installation brings it within.

And for now a hour ago i figured out, that the cbp file stays containing the $(#sdl2) maxcro/variable, allthough i overwritten it with the MinGW folder while sdl2 project creating. Exchage it with full folder path is working. And copying the fitting (i686 or x86_64) SDL2.dll into the bin folders of the project let the main template cpp file run too.
Thank you
Ekkehard

moevenbaer:
For my current solution to get a running SDL2 installation with codeblocks I created a short description as pdf, that works fine to let the sdl2 template work.
One better step would be to know, how to set the $(#sdl2) before creating the sdl2 project (or while, if possible?). But I don't know yet.

So I hope this is helpfull to one other.

Ekkehard
 

stahta01:
I consider the PDF directions to be something that I would never recommend to follow.
Copying files into a good compiler installation is a way to change it into a bad compiler installation.

Edit: See link https://wiki.codeblocks.org/index.php/Global_compiler_variables

Tim S.

sodev:
The value $(#sdl2) is a reference to a CodeBlocks Global Variable, it is intended to specify the installation location of the SDL2 library so that you don't have to mess up your compiler installation by copying the files into compiler system directories. You can define this variable with the Global Variable Editor.

Navigation

[0] Message Index

[*] Previous page

Go to full version