User forums > General (but related to Code::Blocks)

Codeblocks project wizard doesn't recognize SDL path.

(1/2) > >>

registerthis:
64 bit XP, if it matters.

SDL installed and working under MSYS/mingw.

Starting a new SDL project, asks for location of SDL, starts with "$(#sdl)."

Point to base path of SDL, under which there's lib and bin, which has SDL.h, etc., yet codeblocks says it can't find SDL.h.



registerthis:
So.. broken, there a work around?

MortenMacFly:

--- Quote from: registerthis on September 13, 2009, 08:09:24 pm ---So.. broken, there a work around?

--- End quote ---
It seems SDL has (yet again) changed their path policy. Change the wizard to your needs. to do that, right click on the wizard and select "Edit this script". The scoll down until you find "// verify include dependencies" and "// verify library dependencies". You might want to comment both sections after these comments.
I am sick of adjusting path settings over and over again.

hornpipe2:
Actually the fix is very simple.  Edit the script, and line 50, change from:

--- Code: ---        if (!VerifyFile(dir_nomacro_inc, _T("SDL.h"), _T("SDL's include")))
--- End code ---
to

--- Code: ---        if (!VerifyFile(dir_nomacro_inc, _T("SDL/SDL.h"), _T("SDL's include")))
--- End code ---

EDIT:  I will add that this is still broken in 10.5 over 2 years later.  Someone should get in and fix this.

oBFusCATed:
Hm, As far as I remember the includes in the source code should be '#include "SDL.h" ' and not '#include <SDL/SDL.h>'
Are you sure the change you're proposing is correct?

Navigation

[0] Message Index

[#] Next page

Go to full version