The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
Error in compiling libsdl package
chinmaya hoshing
Guest

Hi 


I am trying to pull xbmc package for which libsdl is its dependency, version is 1.2.14 .  
Compiling on Ubuntu10.10 64 bit host machine 
I took the stable release from  http://www.libsdl.org/release/SDL-1.2.14.tar.gz
But during compilation  I am getting following error: 


| WinSystemX11.cpp: In member function 'bool CWinSystemX11::RefreshGlxContext()':
| WinSystemX11.cpp:302:25: error: 'struct SDL_SysWMinfo' has no member named 'info'
| WinSystemX11.cpp:316:21: error: 'struct SDL_SysWMinfo' has no member named 'info'
| WinSystemX11.cpp:317:21: error: 'struct SDL_SysWMinfo' has no member named 'info'
| make[1]: *** [WinSystemX11.o] Error 1




Please can anyone help me to find the solution 


Quote:
Quote:
Quote:
Quote:
Hi There,


Quote:
Quote:
Quote:
Quote:
To help you out a bit more, we'll need to know what operating system you're
using, and if you're used the SDL repository or the zip/targz package.


Quote:
Quote:
Quote:
Quote:
-Alex





Regards 
C Hoshing
Error in compiling libsdl package
Ryan C. Gordon
Guest

Quote:
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.

_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
Error in compiling libsdl package
chinmaya hoshing
Guest

Hi ,I am trying to pull this xbmc package into poky .I am building poky for 32 architecture on 64 bit host machine 
So here I have written a recipe for xbmc and have added libsdl in its dependency 
Also I have added x11 support in libsdl recipe too .
I am facing the above error during xbmc compilation .


Regards 
C Hoshing

On Wed, Nov 9, 2011 at 3:55 PM, Ryan C. Gordon wrote:
Quote:

Quote:
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.

_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
Error in compiling libsdl package
MrOzBarry


Joined: 26 Jun 2010
Posts: 620
Hi Chinmaya,

Did you grab the packages as Ryan suggested?


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


Also, before you try compiling libsdl again, in the SDL source directory do:


sudo make uninstall
make clean


Then go through:


./configure
make
sudo make install


I hope that helps,
-Alex

On Wed, Nov 9, 2011 at 11:52 PM, chinmaya hoshing wrote:
Quote:
Hi ,I am trying to pull this xbmc package into poky .I am building poky for 32 architecture on 64 bit host machine 
So here I have written a recipe for xbmc and have added libsdl in its dependency 
Also I have added x11 support in libsdl recipe too .
I am facing the above error during xbmc compilation .


Regards 
C Hoshing

On Wed, Nov 9, 2011 at 3:55 PM, Ryan C. Gordon wrote:
Quote:

Quote:
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.

_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org







_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Error in compiling libsdl package
Ryan C. Gordon
Guest

Quote:
Did you grab the packages as Ryan suggested?

The specific reason for this, btw, is because SDL's "configure" script
will write out an SDL_config.h, which (if it found X11 headers) will
#define SDL_VIDEO_DRIVER_X11 ... the specific problem that Chinmaya is
seeing in in xbmc is that it wants to use a struct from SDL_syswm.h,
which changes if SDL_VIDEO_DRIVER_X11 isn't defined, and that change is
causing the compile to fail.

I can see the configure script failing to find X11 in a cross-compile
scenario, too...I noticed something about building 32-bit versions.

--ryan.



_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
Error in compiling libsdl package
chinmaya hoshing
Guest

Hi Ryan n Alex ,

I have solved the problem .The problem was libsdl also wanted a supporting package i.e libsdl_x11 which I pull and got the error solved.
Also the packages told me by Ryan are also required for libsdl. 
So not a problem with libsdl at all , Thanks a lot guys :-) 


Need to compile xbmc yet 


Regards
C Hoshing  


On Fri, Nov 11, 2011 at 4:50 AM, Ryan C. Gordon wrote:
Quote:

Quote:
Did you grab the packages as Ryan suggested?


The specific reason for this, btw, is because SDL's "configure" script will write out an SDL_config.h, which (if it found X11 headers) will #define SDL_VIDEO_DRIVER_X11 ... the specific problem that Chinmaya is seeing in in xbmc is that it wants to use a struct from SDL_syswm.h, which changes if SDL_VIDEO_DRIVER_X11 isn't defined, and that change is causing the compile to fail.

I can see the configure script failing to find X11 in a cross-compile scenario, too...I noticed something about building 32-bit versions.

--ryan.



_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org