Author Topic: Wizard broken: cannot create new SDL project [solved]  (Read 3821 times)

Offline jeffnz

  • Single posting newcomer
  • *
  • Posts: 2
Wizard broken: cannot create new SDL project [solved]
« 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!
« Last Edit: August 19, 2016, 06:37:05 am by jeffnz »
code.jeff-mitchell.co.nz - fellow noobs unite!

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Wizard broken: cannot create new SDL project [solved]
« Reply #1 on: August 19, 2016, 07:25:49 am »
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!]

Offline jeffnz

  • Single posting newcomer
  • *
  • Posts: 2
Re: Wizard broken: cannot create new SDL project [solved]
« Reply #2 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

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?
« Last Edit: August 19, 2016, 09:51:34 am by jeffnz »
code.jeff-mitchell.co.nz - fellow noobs unite!

Online stahta01

  • Lives here!
  • ****
  • Posts: 7588
    • My Best Post
Re: Wizard broken: cannot create new SDL project [solved]
« Reply #3 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.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org