[MPlayer-users] Compile errors on OS X 10.5.2 with Xcode 3.0 and x264 or faac enabled

dandjo at gmx.at dandjo at gmx.at
Tue Feb 26 23:53:59 CET 2008


Hi there,

I have some problems while compiling the latest mplayer from subversion with x264 and faac enabled on Mac OS X 10.5.2 with Xcode 3.0 (gcc 3.x). I do the following:

--> getting latest faac src
cd faac
./bootstrap
./configure
make
sudo make install
svn co svn://svn.mplayerhq.hu/mplayer/trunk mplayer
svn co svn://svn.videolan.org/x264/trunk x264
cd x264
./configure
make
sudo make install
cd ..
cd mplayer
export PKG_CONFIG_PATH="/usr/X11R6/lib/pkgconfig/"
./configure --with-freetype-config=/usr/X11R6/bin/freetype-config --enable-x264 --enable-faac
make
sudo make install


The mplayer compiles without any problems if x264 and faac are disabled. If they are enabled, I get the following error:

cc -o mplayer mplayer.o m_property.o mp_fifo.o mp_msg.o mixer.o parser-mpcmd.o command.o asxparser.o codec-cfg.o cpudetect.o edl.o find_sub.o get_path.o m_config.o m_option.o m_struct.o mpcommon.o parser-cfg.o playtree.o playtreeparser.o spudec.o sub_cc.o subopt-helper.o subreader.o vobsub.o unrar_exec.o libvo/libvo.a libao2/libao2.a input/libinput.a libmpcodecs/libmpcodecs.a libaf/libaf.a libmpdemux/libmpdemux.a stream/stream.a libswscale/libswscale.a libvo/libosd.a libavformat/libavformat.a libavcodec/libavcodec.a libavutil/libavutil.a libpostproc/libpostproc.a loader/libloader.a mp3lib/libmp3.a liba52/liba52.a libmpeg2/libmpeg2.a libfaad2/libfaad2.a tremor/libvorbisidec.a dvdread/libdvdread.a libdvdcss/libdvdcss.a osdep/libosdep.a -framework OpenAL -L/usr/local/lib  -liconv -lncurses -framework Carbon -framework QuickTime -framework CoreAudio -framework AudioUnit -framework AudioToolbox -framework Cocoa -framework QuartzCore -framework OpenGL -framework IOKit -framework IOKit -lz     -lm   
Undefined symbols:
  "_x264_nal_encode", referenced from:
      _X264_frame in libavcodec.a(libx264.o)
      _X264_init in libavcodec.a(libx264.o)
  "_x264_encoder_headers", referenced from:
      _X264_init in libavcodec.a(libx264.o)
  "_x264_encoder_encode", referenced from:
      _X264_frame in libavcodec.a(libx264.o)
  "_faacEncSetConfiguration", referenced from:
      _Faac_encode_init in libavcodec.a(libfaac.o)
  "_faacEncClose", referenced from:
      _Faac_encode_init in libavcodec.a(libfaac.o)
      _Faac_encode_init in libavcodec.a(libfaac.o)
      _Faac_encode_close in libavcodec.a(libfaac.o)
  "_x264_encoder_close", referenced from:
      _X264_close in libavcodec.a(libx264.o)
  "_x264_param_default", referenced from:
      _X264_init in libavcodec.a(libx264.o)
  "_faacEncOpen", referenced from:
      _Faac_encode_init in libavcodec.a(libfaac.o)
  "_faacEncGetDecoderSpecificInfo", referenced from:
      _Faac_encode_init in libavcodec.a(libfaac.o)
  "_x264_encoder_open", referenced from:
      _X264_init in libavcodec.a(libx264.o)
  "_faacEncEncode", referenced from:
      _Faac_encode_frame in libavcodec.a(libfaac.o)
  "_faacEncGetCurrentConfiguration", referenced from:
      _Faac_encode_init in libavcodec.a(libfaac.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [mplayer] Error 1


The same happens if I compile with Xcode 2.5 (gcc 3.x). What am I doing wrong? Thanky you for any help!

Kind regards,
dandjo
-- 
Psst! Geheimtipp: Online Games kostenlos spielen bei den GMX Free Games! 
http://games.entertainment.web.de/de/entertainment/games/free



More information about the MPlayer-users mailing list