![]() |
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
Regards C Hoshing |
||||||||||||||||||||||||||||||||||
|
![]() |
Error in compiling libsdl package | ![]() |
Ryan C. Gordon
Guest
![]() |
![]() |
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:
|
||||||||||||||
|
![]() |
Error in compiling libsdl package | ![]() |
MrOzBarry
![]() |
![]() |
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:
|
||||||||||||||||
|
![]() |
Error in compiling libsdl package | ![]() |
Ryan C. Gordon
Guest
![]() |
![]() |
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:
|
||||||||||||||
|