Page 1 of 1

Compile error: SDL.h

Posted: Wed Feb 15, 2012 4:30 pm
by ajcrm125
I followed the steps verbatim from the wiki but I get the following errors during the final compile:

Code: Select all

In file included from src/event_catcher.cpp:1:0:
include/event_catcher.h:3:21: fatal error: SDL/SDL.h: No such file or directory
compilation terminated.
In file included from include/ConfigurationFile.h:6:0,
                 from include/XmlReader.h:4,
                 from include/XmlWritter.h:4,
                 from src/XmlWritter.cpp:1:
include/event_catcher.h:3:21: fatal error: SDL/SDL.h: No such file or directoryIn file included from include/ConfigurationFile.h:6:0,
                 from include/XmlReader.h:4,
                 from src/XmlReader.cpp:1:
include/event_catcher.h:3:21: fatal error: SDL/SDL.h: No such file or directory 
.
.
.
src/event_catcher.cpp:2:21: fatal error: SDL/SDL.h: No such file or directory
I can see SDL.h in GIMX/libsdl/include/SDL
Is the the right location?

Thanks...

Re: Compile error: SDL.h

Posted: Wed Feb 15, 2012 5:38 pm
by ajcrm125
Looks like the makefile is expecting the libsdl dir to be outside the GIMX dir.

In the core Makefile for example I see INC as being defined to look ../../libsdl.

So you may want to change the instructions to account for that... or the makefile(s). Whichever is easier.

I see some libusb errors now.. I'll start on those.

Re: Compile error: SDL.h

Posted: Wed Feb 15, 2012 5:54 pm
by ajcrm125
Not only is libusb-dev needed, but libusb-1.0-0-dev is needed as well.

Re: Compile error: SDL.h

Posted: Wed Feb 15, 2012 6:38 pm
by Matlo
Thanks for the feedback.

I fixed the wiki.