News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Wizard broken: cannot create new SDL project [solved]

Started by jeffnz, August 19, 2016, 06:01:09 AM

Previous topic - Next topic

jeffnz

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!

oBFusCATed

Patches welcome, bonus points if they handle both sdl1 and sdl2 :)
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

jeffnz

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

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?

stahta01

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.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]