Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: kebaGanac on February 18, 2017, 07:55:48 pm

Title: SDL2 support
Post by: kebaGanac on February 18, 2017, 07:55:48 pm
Hello Code::Blocks team,
I'm an SDL2 developer and I recently switched to your IDE. I've seen that you have a feature that let's you make an SDL project. Unfortunately, this only works for SDL, but not SDL2. I downloaded the "SDL2-devel-2.0.5-mingw.tar.gz (MinGW 32/64-bit)" file from the official website, extracted it and all, typed the folder location in your wizard, but I get a script error saying "...can't allocate SDL's library file SDLmain in it...". That's because the file is called SDL2main.lib.a. When I copy the problematic files and simply change their names to *SDL* from *SDL2*, but it couldn't compile. Am I missing something? If so please tell me, if not can you please update it, because it's much easier than linking the whole thing etc.
Title: Re: SDL2 support
Post by: oBFusCATed on February 18, 2017, 09:11:38 pm
The wizard is a squirrel script. You can edit it and provide a patch. I guess it is safe to switch to the sdl2 as the only supported version. If you can add support for both versions this will be even cooler.
Title: Re: SDL2 support
Post by: BlueHazzard on February 18, 2017, 11:04:30 pm
Quote
but it couldn't compile

http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_(general)#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F