Compile error: SDL.h

Talk about anything concerning the source code.
Post Reply
ajcrm125
Posts: 14
Joined: Mon Feb 13, 2012 10:37 pm
Contact:

Compile error: SDL.h

Post 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...
-Adam
===================
http://www.onecircuit.com
===================
ajcrm125
Posts: 14
Joined: Mon Feb 13, 2012 10:37 pm
Contact:

Re: Compile error: SDL.h

Post 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.
-Adam
===================
http://www.onecircuit.com
===================
ajcrm125
Posts: 14
Joined: Mon Feb 13, 2012 10:37 pm
Contact:

Re: Compile error: SDL.h

Post by ajcrm125 »

Not only is libusb-dev needed, but libusb-1.0-0-dev is needed as well.
-Adam
===================
http://www.onecircuit.com
===================
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: Compile error: SDL.h

Post by Matlo »

Thanks for the feedback.

I fixed the wiki.
GIMX creator
Post Reply