Xext.h

Hello,

The header file “X11/extensions/Xext.h” is needed by
"src/video/x11/SDL_x11dyn.h". It seems, that the configure script does
not check that. Maybe you better want to let it check. It is provided by
the package libxext-dev in Debian.

cheers
Daniel

Hi again,

this issue still isn’t fixed. On my system: Linux Mint 15 amd64 , I have
to install the package ‘libxext-dev’ to provide the required header
’X11/extensions/Xext.h’.

Okay, but after installing the package, another error is raised:


ld/SDL/src/video/x11/SDL_x11dyn.c -fPIC -DPIC -o build/.libs/SDL_x11dyn.o
In file included from
/home/broepi/Build/SDL/src/video/x11/SDL_x11dyn.c:113:0:
/home/broepi/Build/SDL/src/video/x11/SDL_x11sym.h:135:1: error:
conflicting types for 'XextAddDisplay’
In file included from
/home/broepi/Build/SDL/src/video/x11/SDL_x11dyn.h:42:0,
from /home/broepi/Build/SDL/src/video/x11/SDL_x11dyn.c:27:
/usr/include/X11/extensions/extutil.h:123:25: note: previous declaration
of ‘XextAddDisplay’ was here
make: *** [build/SDL_x11dyn.lo] Fehler 1

regards
DanielAm 24.07.2012 19:17, schrieb Daniel Raufison:

Hello,

The header file “X11/extensions/Xext.h” is needed by
"src/video/x11/SDL_x11dyn.h". It seems, that the configure script does
not check that. Maybe you better want to let it check. It is provided
by the package libxext-dev in Debian.

cheers
Daniel


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

/home/broepi/Build/SDL/src/video/x11/SDL_x11sym.h:135:1: error:
conflicting types for 'XextAddDisplay’
In file included from
/home/broepi/Build/SDL/src/video/x11/SDL_x11dyn.h:42:0,
from /home/broepi/Build/SDL/src/video/x11/SDL_x11dyn.c:27:
/usr/include/X11/extensions/extutil.h:123:25: note: previous declaration

This is probably because your X11 headers list XextAddDisplay() as
taking a const char * for argument 3, but SDL didn’t realize this for
some reason. It checks for that, maybe it failed for some reason.

Is there any chance this works if you run “make distclean” and then
rerun the configure script? Maybe it got confused because of the
originally-missing libxext-dev package?

–ryan.

I retried configure and make on a fresh copy of the source tree, so yeah! :slight_smile:

DanielAm 12.07.2013 06:48, schrieb Ryan C. Gordon:

/home/broepi/Build/SDL/src/video/x11/SDL_x11sym.h:135:1: error:
conflicting types for 'XextAddDisplay’
In file included from
/home/broepi/Build/SDL/src/video/x11/SDL_x11dyn.h:42:0,
from
/home/broepi/Build/SDL/src/video/x11/SDL_x11dyn.c:27:
/usr/include/X11/extensions/extutil.h:123:25: note: previous declaration

This is probably because your X11 headers list XextAddDisplay() as
taking a const char * for argument 3, but SDL didn’t realize this for
some reason. It checks for that, maybe it failed for some reason.

Is there any chance this works if you run “make distclean” and then
rerun the configure script? Maybe it got confused because of the
originally-missing libxext-dev package?

–ryan.


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

I just installed Linux Mint 15 x64 and installed the following packages:
sudo apt-get install dh-autoreconf libasound2-dev libgl1-mesa-dev
libpulse-dev libudev-dev libdbus-1-dev libx11-dev libxcursor-dev
libxext-dev libxi-dev libxinerama-dev libxrandr-dev libxss-dev libxt-dev
libxxf86vm-dev

I then built SDL and created a .deb for Linux Mint with no problems.

Are you still having issues?On Thu, Jul 11, 2013 at 3:17 PM, Daniel Raufison wrote:

Hi again,

this issue still isn’t fixed. On my system: Linux Mint 15 amd64 , I have
to install the package ‘libxext-dev’ to provide the required header
’X11/extensions/Xext.h’.

Okay, but after installing the package, another error is raised:


ld/SDL/src/video/x11/SDL_x11dyn.c -fPIC -DPIC -o
build/.libs/SDL_x11dyn.o
In file included from /home/broepi/Build/SDL/src/

video/x11/SDL_x11dyn.c:113:0:
/home/broepi/Build/SDL/src/video/x11/SDL_x11sym.h:135:1: error:
conflicting types for 'XextAddDisplay’
In file included from /home/broepi/Build/SDL/src/

video/x11/SDL_x11dyn.h:42:0,
from /home/broepi/Build/SDL/src/**
video/x11/SDL_x11dyn.c:27:
/usr/include/X11/extensions/**extutil.h:123:25: note: previous
declaration of ‘XextAddDisplay’ was here
make: *** [build/SDL_x11dyn.lo] Fehler 1

regards
Daniel

Am 24.07.2012 19:17, schrieb Daniel Raufison:

Hello,

The header file “X11/extensions/Xext.h” is needed by
"src/video/x11/SDL_x11dyn.h". It seems, that the configure script does not
check that. Maybe you better want to let it check. It is provided by the
package libxext-dev in Debian.

cheers
Daniel
_____________**
SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/**listinfo.cgi/sdl-libsdl.orghttp://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

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

no problems anymore, no, I just thought, it could be good if the
configure script could check for the existence of the Xext headers.Am 13.07.2013 07:45, schrieb Sam Lantinga:

I just installed Linux Mint 15 x64 and installed the following packages:
sudo apt-get install dh-autoreconf libasound2-dev libgl1-mesa-dev
libpulse-dev libudev-dev libdbus-1-dev libx11-dev libxcursor-dev
libxext-dev libxi-dev libxinerama-dev libxrandr-dev libxss-dev libxt-dev
libxxf86vm-dev

I then built SDL and created a .deb for Linux Mint with no problems.

Are you still having issues?

no problems anymore, no, I just thought, it could be good if the
configure script could check for the existence of the Xext headers.

Ditto! Run into same problem recently, spent quite some time to figure
out what was missing. ./configure should warn and bail out.On Sat, 13 Jul 2013 10:04:35 +0200 Daniel Raufison wrote:


driedfruit

Okay, I added a check for Xext.h:

Cheers!On Sat, Jul 13, 2013 at 5:11 AM, Driedfruit wrote:

On Sat, 13 Jul 2013 10:04:35 +0200 Daniel Raufison wrote:

no problems anymore, no, I just thought, it could be good if the
configure script could check for the existence of the Xext headers.

Ditto! Run into same problem recently, spent quite some time to figure
out what was missing. ./configure should warn and bail out.


driedfruit


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

I updated the CMake project here:

–ryan.On 7/13/13 1:43 PM, Sam Lantinga wrote:

Okay, I added a check for Xext.h:
http://hg.libsdl.org/SDL/rev/8f118396264b