LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Building xbmc on Slackware 14 (http://www.linuxquestions.org/questions/slackware-14/building-xbmc-on-slackware-14-a-4175426624/)

Woodsman 09-10-2012 09:33 PM

Building xbmc on Slackware 14
 
I'm trying to build an older version of xbmc (9.04) on Slackware 14. I've cobbled together a few patches but now the build always fails like this:

Code:

make[1]: Leaving directory `/dev/shm/9.04.1_Babylon-linux-osx-win32/XBMC/xbmc/settings'
g++ -O2 -fPIC -I/usr/lib64/dbus-1.0/include -I/usr/lib64/glib-2.0/include -O2 -O2 -fPIC -I/usr/lib64/dbus-1.0/include -I/usr/lib64/glib-2.0/include -O2 -DNDEBUG=1 -DNDEBUG=1 -o xbmc.bin -Wl,--whole-archive guilib/guilib.a guilib/common/gui_common.a guilib/tinyXML/tinyxml.a xbmc/xbmc.a xbmc/cdrip/cdrip.a xbmc/cores/cores.a xbmc/cores/DllLoader/dllloader.a xbmc/cores/DllLoader/exports/exports.a xbmc/cores/DllLoader/exports/util/exports_utils.a xbmc/cores/dvdplayer/DVDPlayer.a xbmc/cores/dvdplayer/DVDCodecs/DVDCodecs.a xbmc/cores/dvdplayer/DVDCodecs/Audio/Audio.a xbmc/cores/dvdplayer/DVDCodecs/Overlay/Overlay.a xbmc/cores/dvdplayer/DVDCodecs/Video/Video.a xbmc/cores/dvdplayer/DVDDemuxers/DVDDemuxers.a xbmc/cores/dvdplayer/DVDInputStreams/DVDInputStreams.a xbmc/cores/dvdplayer/DVDSubtitles/DVDSubtitles.a xbmc/cores/paplayer/paplayer.a xbmc/cores/AudioRenderers/audiorenderers.a xbmc/cores/VideoRenderers/VideoRenderer.a xbmc/cores/VideoRenderers/VideoShaders/VideoShaders.a xbmc/cores/ExternalPlayer/ExternalPlayer.a xbmc/FileSystem/filesystem.a xbmc/FileSystem/MusicDatabaseDirectory/musicdatabasedirectory.a xbmc/FileSystem/VideoDatabaseDirectory/videodatabasedirectory.a xbmc/karaoke/karaoke.a xbmc/lib/libcmyth/libcmyth.a xbmc/lib/libhts/libhts.a xbmc/lib/libPython/python.a xbmc/lib/libPython/xbmcmodule/xbmcmodule.a xbmc/lib/libRTMP/librtmp.a xbmc/lib/libscrobbler/scrobbler.a xbmc/lib/libRTV/librtv-x86_64-linux.a xbmc/lib/libshout/libshout-x86_64-linux.a xbmc/lib/libUPnP/libupnp-x86_64-linux.a xbmc/lib/libXBMS/libxbms-x86_64-linux.a xbmc/lib/libXDAAP/libxdaap-x86_64-linux.a xbmc/lib/libGoAhead/libGoAhead-x86_64-linux.a xbmc/lib/sqLite/sqllite.a xbmc/lib/UnrarXLib/UnrarXLib.a xbmc/linux/linux.a xbmc/screensavers/screensaver.a xbmc/settings/settings.a xbmc/utils/utils.a xbmc/visualizations/visualization.a xbmc/xbox/xbox.a xbmc/lib/libsmb/libsmbclient-x86_64-linux.a -Wl,--no-whole-archive -lXrandr -lfaac -lhal-storage -ldbus-1 -lcurl -lXinerama -lXmu -lXt -ljasper -lenca -lresolv -ldl -lSDL_mixer -lSDL_image -lSDL -lcdio -llzo2 -lpcre -ljpeg -lpng12 -lrt -lasound -lmysqlclient -lsqlite3 -lfribidi -lbz2 -lfontconfig -lfreetype -lvorbis -logg -lmad -lGLU -lGLEW -lGL  -rdynamic
/usr/lib64/gcc/x86_64-slackware-linux/4.7.1/../../../../x86_64-slackware-linux/bin/ld: guilib/guilib.a(Surface.o): undefined reference to symbol 'XResizeWindow'
/usr/lib64/gcc/x86_64-slackware-linux/4.7.1/../../../../x86_64-slackware-linux/bin/ld: note: 'XResizeWindow' is defined in DSO /usr/lib64/libX11.so.6 so try adding it to the linker command line
/usr/lib64/libX11.so.6: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
make: *** [xbmc.bin] Error 1

After searching the web, I more or less understand that I need to link X11 (-lX11) or something similar. I tried editing xbmc-9.04.1/XBMC/guilib/Makefile to no avail.

I'd appreciate help as to what I should be linking and where to add.

Thanks. :)

P.S. I'm not interested in newer versions of xbmc. :)

willysr 09-10-2012 10:10 PM

try adding -lX11
Code:

export CFLAGS="$SLKCFLAGS -lX11"


All times are GMT -5. The time now is 03:02 AM.