[SDL] Error in compiling libsdl package
Ryan C. Gordon
icculus at icculus.org
Wed Nov 9 02:25:51 PST 2011
> I took the stable release from
> http://www.libsdl.org/release/SDL-1.2.14.tar.gz
> | WinSystemX11.cpp:302:25: error: 'struct SDL_SysWMinfo' has no member
> named 'info'
You seem to have built SDL without X11 support, probably because Ubuntu
doesn't install the X11 development headers by default.
You can "sudo apt-get install libsdl1.2-dev" and skip this, but if you
want to build SDL from source code, you'll want a list of development
packages that looks like this:
sudo apt-get install build-essential mercurial make autoconf automake
libtool libasound2-dev libpulse-dev libaudio-dev libx11-dev libxext-dev
libxrandr-dev libxcursor-dev libxi-dev libxinerama-dev libxxf86vm-dev
libxss-dev libgl1-mesa-dev libesd0-dev
If any of these packages are missing, SDL's configure script quietly
disables support for that package...since all the X11 stuff is missing,
it turned off X11 support, which is why you get this compile error in xbmc.
(if you use the libsdl1.2-dev package, you might want to go to the SDL
source directory and run "sudo make uninstall" first, so it removes any
existing headers so Ubuntu's are definitely the ones found.)
--ryan.
More information about the SDL
mailing list