Compiling under 8.04 with external libraries
#1
Don't know if it is the right place, but thought I might drop the problems I hade when compiling under Ubuntu 8.04.

First, I uninstalled the following that was installed from ubuntu repository:
  • ffmpeg (probably not necessary?)
  • libavcodec-dev
  • libavdevice-dev
  • libswscale-dev
  • libpostproc-dev
  • libavutil-dev
  • libmms-dev

Then I installed ffmpeg and libmms from source code.

ffmpeg I had to compile with the following options:
Code:
./configure --enable-postproc --enable-gpl

Then to avoid an error regarding UINT64 (or similar) I had to configure XBMC this way:

Code:
CXXFLAGS=-D__STDC_CONSTANT_MACROS ./configure --enable-external-libraries

Finally, I got a lot of "undefined reference: av_crc" from the following line

Code:
g++ -D__STDC_CONSTANT_MACROS -O2 -D__STDC_CONSTANT_MACROS -O2 -g -D_DEBUG -Wall -o xbmc.bin -Wl,--whole-archive xbmc/lib/libcmyth/libcmyth.a xbmc/linux/linux.a xbmc/utils/utils.a xbmc/cores/DllLoader/exports/util/exports_utils.a xbmc/cores/DllLoader/exports/exports.a -Wl,--no-whole-archive xbmc/xbmc.a xbmc/cores/playercorefactory/playercorefactory.a xbmc/cores/dvdplayer/DVDPlayer.a xbmc/cores/paplayer/paplayer.a xbmc/cores/VideoRenderers/VideoRenderer.a xbmc/cores/VideoRenderers/VideoShaders/VideoShaders.a guilib/guilib.a guilib/common/gui_common.a guilib/tinyXML/tinyxml.a xbmc/cdrip/cdrip.a xbmc/cores/cores.a xbmc/lib/libPython/python.a xbmc/cores/DllLoader/dllloader.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/AudioRenderers/audiorenderers.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/libhts/libhts.a xbmc/lib/libPython/xbmcmodule/xbmcmodule.a xbmc/lib/libRTMP/librtmp.a xbmc/lib/libscrobbler/scrobbler.a xbmc/lib/libRTV/librtv-i486-linux.a xbmc/lib/libshout/libshout-i486-linux.a xbmc/lib/libUPnP/libupnp-i486-linux.a xbmc/lib/libXBMS/libxbms-i486-linux.a xbmc/lib/libXDAAP/libxdaap-i486-linux.a xbmc/lib/libGoAhead/libGoAhead-i486-linux.a xbmc/lib/sqLite/sqllite.a xbmc/lib/libsquish/libsquish-i486-linux.a xbmc/screensavers/screensaver.a xbmc/settings/settings.a xbmc/visualizations/visualization.a xbmc/lib/UnrarXLib/UnrarXLib.a -lpython2.5 -lwavpack -lmpeg2convert -lmpeg2 -ldts -la52 -lswscale -lpostproc -lavformat -lavcodec -lavutil -lXrandr -lavahi-client -lavahi-common -lfaac -lpulse -lSDL_image -lrt -ltiff -ljasper -lresolv -ldl -lSDL_mixer -lsmbclient -lfaad -lcrypto -lssl -lz -llzo2 -lpthread -ljpeg -lmysqlclient -lbz2 -lGLU -lGLEW -lGL  -lmad -lm   -lfontconfig   -lfribidi   -lsqlite3   -lpng12   -lpcre   -lcdio -lm   -lsamplerate   -L/usr/local/lib -lmms -lm -lglib-2.0   -lfreetype -lz   -logg   -lvorbis -lm -logg   -lasound   -lenca -lm   -lXt -lX11 -lSM -lICE   -lXtst   -lXmu   -lXinerama   -Wl,-Bsymbolic-functions -lcurl -lgssapi_krb5   -ldbus-1   -lhal-storage -lhal -ldbus-1   -lSDL   -lhal -ldbus-1    -rdynamic

Here I copied the line, put -lavutil before -lavformat and then it worked.
Reply

Logout Mark Read Team Forum Stats Members Help
Compiling under 8.04 with external libraries0