Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: jeffnz on August 19, 2016, 06:01:09 am

Title: Wizard broken: cannot create new SDL project [solved]
Post by: jeffnz on August 19, 2016, 06:01:09 am
Error: The path you entered seems valid, but this wizard can't locate the following SDL's library file, SDLmain in it (also tried prepending lib and appending .a and .lib

This wizard is a joke. Can somebody please show me their SDL wizard script? I just want to get SDL working again. I shouldn't have to learn anything. I want a New SDL Project script, one that works with codeblocks 16.01

I'll copy and paste the script onto my PC and get back to work, thanks. All other threads on this topic are outdated.

Update: all working now! Refer to this thread and find post 5 by me http://www.gamedev.net/topic/680900-i-need-help-again-with-codeblocks-and-sdl-setup/

... the problem with the script is that it searches for SDLmain.dll when I really want to find SDL2main.dll etc etc... the same is true with the .a and .lib files, and pretty much everything. The wizard just doesn't work with SDL2 even though SDL2 is the established standard!
Title: Re: Wizard broken: cannot create new SDL project [solved]
Post by: oBFusCATed on August 19, 2016, 07:25:49 am
Patches welcome, bonus points if they handle both sdl1 and sdl2 :)
Title: Re: Wizard broken: cannot create new SDL project [solved]
Post by: jeffnz on August 19, 2016, 09:48:42 am
Forget about SDL1, you can't even download the TTF or mixer lib for SDL 1.2 (I forget which one... but one of the SDL 1.2 pages actually makes you download the SDL2 version of that lib).

http://www.jeff-mitchell.co.nz/code/sdl_wizard.script (http://www.jeff-mitchell.co.nz/code/sdl_wizard.script)

There's the link to the script that works for SDL2. That should be default in Code::Blocks.

Edit: why not have Make A SDL1.2 Project, and also Make A SDL2 Project?
Title: Re: Wizard broken: cannot create new SDL project [solved]
Post by: stahta01 on August 19, 2016, 03:09:17 pm
The SDL wizard is very hard to test; because different Windows library builders build the library header includes different.

I might try testing my last attempt at a fix; but, I likely will not.

Tim S.