Can't compile SDL 1.3 SVN

Hey,

I tried compiling the latest SDL, checked out today.

It compiled without Video support.

I would like to know which package I need to add OpenGL support.

Also, with “libx11-dev” 2:1.1.99.2-1ubuntu2, I have gotten the following errors:

libtool: compile: gcc -g -O2 -I./include -D_GNU_SOURCE=1 -mmmx -m3dnow -msse -fvisibility=hidden -D_REENTRANT -DHAVE_LINUX_VERSION_H -c ./src/video/x11/SDL_x11dyn.c -fPIC -DPIC -o build/.libs/SDL_x11dyn.o
In file included from ./src/video/x11/SDL_x11dyn.c:26:
./src/video/x11/SDL_x11dyn.h:38:33: error: X11/extensions/XShm.h: No such file or directory
In file included from ./src/video/x11/SDL_x11dyn.c:101:
./src/video/x11/SDL_x11sym.h:174: error: expected declaration specifiers or ?..? before ?XShmSegmentInfo?
./src/video/x11/SDL_x11sym.h:174: error: expected declaration specifiers or ?..? before ?XShmSegmentInfo?
./src/video/x11/SDL_x11sym.h: In function ?XShmAttach?:
./src/video/x11/SDL_x11sym.h:174: error: ?b? undeclared (first use in this function)
./src/video/x11/SDL_x11sym.h:174: error: (Each undeclared identifier is reported only once
./src/video/x11/SDL_x11sym.h:174: error: for each function it appears in.)
./src/video/x11/SDL_x11sym.h:174: error: too many arguments to function ?pXShmAttach?
./src/video/x11/SDL_x11sym.h: At top level:
./src/video/x11/SDL_x11sym.h:175: error: expected declaration specifiers or ?..? before ?XShmSegmentInfo?
./src/video/x11/SDL_x11sym.h:175: error: expected declaration specifiers or ?..? before ?XShmSegmentInfo?
./src/video/x11/SDL_x11sym.h: In function ?XShmDetach?:
./src/video/x11/SDL_x11sym.h:175: error: ?b? undeclared (first use in this function)
./src/video/x11/SDL_x11sym.h:175: error: too many arguments to function ?pXShmDetach?
./src/video/x11/SDL_x11sym.h: At top level:
./src/video/x11/SDL_x11sym.h:177: error: expected declaration specifiers or ?..? before ?XShmSegmentInfo?
./src/video/x11/SDL_x11sym.h:177: error: expected declaration specifiers or ?..? before ?XShmSegmentInfo?
./src/video/x11/SDL_x11sym.h: In function ?XShmCreateImage?:
./src/video/x11/SDL_x11sym.h:177: error: ?f? undeclared (first use in this function)
./src/video/x11/SDL_x11sym.h:177: error: too many arguments to function ?pXShmCreateImage?
make: *** [build/SDL_x11dyn.lo] Error 1

Ok, I should have read half a page more :stuck_out_tongue:

The “xorg-dev” package fixes the errors.

Now, how can I get OpenGL (GLX) support?> ----- Original Message -----

From: Patryk Bratkowski <@Patryk_Bratkowski>
To: SDL List
Sent: Monday, May 25, 2009 1:26:57 PM
Subject: [SDL] Can’t compile SDL 1.3 SVN

Hey,

I tried compiling the latest SDL, checked out today.

It compiled without Video support.

I would like to know which package I need to add OpenGL support.

Also, with “libx11-dev” 2:1.1.99.2-1ubuntu2, I have gotten the following errors:

libtool: compile: gcc -g -O2 -I./include -D_GNU_SOURCE=1 -mmmx -m3dnow -msse
-fvisibility=hidden -D_REENTRANT -DHAVE_LINUX_VERSION_H -c
./src/video/x11/SDL_x11dyn.c -fPIC -DPIC -o build/.libs/SDL_x11dyn.o
In file included from ./src/video/x11/SDL_x11dyn.c:26:
./src/video/x11/SDL_x11dyn.h:38:33: error: X11/extensions/XShm.h: No such file
or directory
In file included from ./src/video/x11/SDL_x11dyn.c:101:
./src/video/x11/SDL_x11sym.h:174: error: expected declaration specifiers or
?..? before ?XShmSegmentInfo?
./src/video/x11/SDL_x11sym.h:174: error: expected declaration specifiers or
?..? before ?XShmSegmentInfo?
./src/video/x11/SDL_x11sym.h: In function ?XShmAttach?:
./src/video/x11/SDL_x11sym.h:174: error: ?b? undeclared (first use in this
function)
./src/video/x11/SDL_x11sym.h:174: error: (Each undeclared identifier is reported
only once
./src/video/x11/SDL_x11sym.h:174: error: for each function it appears in.)
./src/video/x11/SDL_x11sym.h:174: error: too many arguments to function
?pXShmAttach?
./src/video/x11/SDL_x11sym.h: At top level:
./src/video/x11/SDL_x11sym.h:175: error: expected declaration specifiers or
?..? before ?XShmSegmentInfo?
./src/video/x11/SDL_x11sym.h:175: error: expected declaration specifiers or
?..? before ?XShmSegmentInfo?
./src/video/x11/SDL_x11sym.h: In function ?XShmDetach?:
./src/video/x11/SDL_x11sym.h:175: error: ?b? undeclared (first use in this
function)
./src/video/x11/SDL_x11sym.h:175: error: too many arguments to function
?pXShmDetach?
./src/video/x11/SDL_x11sym.h: At top level:
./src/video/x11/SDL_x11sym.h:177: error: expected declaration specifiers or
?..? before ?XShmSegmentInfo?
./src/video/x11/SDL_x11sym.h:177: error: expected declaration specifiers or
?..? before ?XShmSegmentInfo?
./src/video/x11/SDL_x11sym.h: In function ?XShmCreateImage?:
./src/video/x11/SDL_x11sym.h:177: error: ?f? undeclared (first use in this
function)
./src/video/x11/SDL_x11sym.h:177: error: too many arguments to function
?pXShmCreateImage?
make: *** [build/SDL_x11dyn.lo] Error 1


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Got that too.

For reference, missing packages were “libgl1-mesa-dev” and “libglu1-mesa-dev”.
(Plus the common package, which is automatically installed).

Pat> ----- Original Message -----

From: Patryk Bratkowski <@Patryk_Bratkowski>
To: A list for developers using the SDL library. (includes SDL-announce)
Sent: Monday, May 25, 2009 1:39:44 PM
Subject: Re: [SDL] Can’t compile SDL 1.3 SVN

Ok, I should have read half a page more :stuck_out_tongue:

The “xorg-dev” package fixes the errors.

Now, how can I get OpenGL (GLX) support?

----- Original Message ----

From: Patryk Bratkowski
To: SDL List
Sent: Monday, May 25, 2009 1:26:57 PM
Subject: [SDL] Can’t compile SDL 1.3 SVN

Hey,

I tried compiling the latest SDL, checked out today.

It compiled without Video support.

I would like to know which package I need to add OpenGL support.

Also, with “libx11-dev” 2:1.1.99.2-1ubuntu2, I have gotten the following
errors:

libtool: compile: gcc -g -O2 -I./include -D_GNU_SOURCE=1 -mmmx -m3dnow -msse
-fvisibility=hidden -D_REENTRANT -DHAVE_LINUX_VERSION_H -c
./src/video/x11/SDL_x11dyn.c -fPIC -DPIC -o build/.libs/SDL_x11dyn.o
In file included from ./src/video/x11/SDL_x11dyn.c:26:
./src/video/x11/SDL_x11dyn.h:38:33: error: X11/extensions/XShm.h: No such file

or directory
In file included from ./src/video/x11/SDL_x11dyn.c:101:
./src/video/x11/SDL_x11sym.h:174: error: expected declaration specifiers or
?..? before ?XShmSegmentInfo?
./src/video/x11/SDL_x11sym.h:174: error: expected declaration specifiers or
?..? before ?XShmSegmentInfo?
./src/video/x11/SDL_x11sym.h: In function ?XShmAttach?:
./src/video/x11/SDL_x11sym.h:174: error: ?b? undeclared (first use in this
function)
./src/video/x11/SDL_x11sym.h:174: error: (Each undeclared identifier is
reported
only once
./src/video/x11/SDL_x11sym.h:174: error: for each function it appears in.)
./src/video/x11/SDL_x11sym.h:174: error: too many arguments to function
?pXShmAttach?
./src/video/x11/SDL_x11sym.h: At top level:
./src/video/x11/SDL_x11sym.h:175: error: expected declaration specifiers or
?..? before ?XShmSegmentInfo?
./src/video/x11/SDL_x11sym.h:175: error: expected declaration specifiers or
?..? before ?XShmSegmentInfo?
./src/video/x11/SDL_x11sym.h: In function ?XShmDetach?:
./src/video/x11/SDL_x11sym.h:175: error: ?b? undeclared (first use in this
function)
./src/video/x11/SDL_x11sym.h:175: error: too many arguments to function
?pXShmDetach?
./src/video/x11/SDL_x11sym.h: At top level:
./src/video/x11/SDL_x11sym.h:177: error: expected declaration specifiers or
?..? before ?XShmSegmentInfo?
./src/video/x11/SDL_x11sym.h:177: error: expected declaration specifiers or
?..? before ?XShmSegmentInfo?
./src/video/x11/SDL_x11sym.h: In function ?XShmCreateImage?:
./src/video/x11/SDL_x11sym.h:177: error: ?f? undeclared (first use in this
function)
./src/video/x11/SDL_x11sym.h:177: error: too many arguments to function
?pXShmCreateImage?
make: *** [build/SDL_x11dyn.lo] Error 1


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org