Ok, I can now build vlc on this machine :
iMac G3 400 Mhz
OSX 10.3.9
XCode 1.5 installed
gcc 3.3 build 1671
ld version cctools-525.1.obj~8
autoconf (GNU Autoconf) 2.57
automake (GNU automake) 1.6.3
make (GNU Make) 3.79
svn version 1.3.2 (r19776)
QuickTime 7.1.2
an ADSL connection.
I followed the instructions from
http://developers.videolan.org/vlc/osx-compile.html
using svn to get the svn-trunk:
In extras/contrib, `./bootstrap` and `make src`ran ok.
In the top vlc_trunk dir, ./bootstrap` and `configure ...` ran ok.
But `make` failed with a long list of errors and warnings.
After various attempts, I ended up doing the following:
1. Created a vlc-trunk/lib dir and copied into it the 24 *.dylibs from extras/contrib/vlc-lib.
2. Changed the configure shown in the osx-compile.html, with disable-mkv instead of enable-mkv, and with disable-livedotcom instead of enable-livedotcom. I also added --disable-altivec for the G3:
`./configure --disable-x11 --disable-xvideo --disable-glx --disable-gtk --enable-sdl --enable-ffmpeg --with-ffmpeg-mp3lame --with-ffmpeg-faac --with-ffmpeg-zlib --enable-mad --enable-dvbpsi --enable-a52 --disable-dvdplay --enable-dvdnav --enable-faad --enable-vorbis --enable-ogg --enable-theora --enable-faac --disable-mkv --enable-freetype --disable-cddax --disable-vcdx --enable-speex --enable-flac --enable-goom --disable-livedotcom --enable-caca --disable-skins2 --disable-wxwidgets --enable-modplug --enable-daap --enable-x264 --enable-shout --enable-twolame --enable-debug --disable-altivec`
3. When running `make`, the compiles worked but the link failed, apparently the last g++ command gets mangled, so I ran it by hand:
`g++ -Wsign-compare -Wall -I/Users/radin/vlc-trunk/extras/contrib/include -D_INTL_REDIRECT_MACROS -pipe -o vlc -bind_at_load vlc-vlc.o src/libvlc.a ./modules/mux/mpeg/libmux_ts.a ./modules/codec/ffmpeg/libffmpeg.a ./modules/stream_out/libstream_out_switcher.a ./modules/codec/libquicktime.a ./modules/codec/libtheora.a ./modules/audio_output/libauhal.a ./modules/gui/macosx/libmacosx.a ./modules/visualization/libgoom.a -L/Users/radin/vlc-trunk/extras/contrib/lib -L/usr/local/lib -ldvbpsi -lpostproc -lavformat -lavcodec -lmp3lame -lfaac -lavutil -lfaac -lmp3lame -ltheora -logg -lgoom2 -lpthread -liconv -lintl -lz -lm -lc -lobjc -ObjC -framework vecLib -framework QuickTime -framework Carbon -framework CoreAudio -framework AudioUnit -framework AudioToolbox -framework IOKit -framework Cocoa -framework Carbon -framework QuickTime -framework OpenGL -framework AGL`
This completed ok, with some "ld: warning multiple definitions of symbol _locale_charset", and produced a vlc binary.
4. To make a VLC.app bundle, I copied it from the latest PPC nightly build
http://nightlies.videolan.org/build/mac ... 23-fpk.dmg
and updated it with new files from my vlc-trunk:
- VLC.app/Contents/MacOS: the new vlc binary, renamed VLC (upper case)
- VLC.app/Contents/MacOS/lib: 24 vlc_*.dylib's from extras/contrib/vlc-lib
- VLC.app/Contents/MacOS/modules: 192 lib*_plugin.dylib's from vlc-trunk/modules/
(`find modules -name "lib*_plugin.dylib"`)
- VLC.app/Contents/Resources: everything (99 files) from extras/MacOSX/Resources/
As far as I can tell from preliminary testing, this VLC.app works the same as the vlc-0.8.6-svn-PPC app downloaded from the nightly builds (trunk-20060729-1423-fpk.dmg)
With both apps, I get a 'The application VLC has unexpectedly quit." popup after normally quitting VLC, and occasional crashes, and lots of stuff in console.log and VLC.crash.log.
Notes:
1. I ran `svn update` before my last build and nothing broke.
2. I systematically run `make distclean` before running `configure ...`.
3. I also tried configure --disable-debug instead of --enable-debug; it compiled ok but would not link (ld: extras/contrib/src/ffmpeg/libavcodec/libavcodec.a(mjpeg.o) illegal reference to symbol: ___eprintf defined in indirectly referenced dynamic library /usr/lib/libstdc++.6.dylib).
4. I ran `strip VLC` to get the debug binary down from 21.9 MB ro 4.2 MB.
5. vlc-trunk takes up 869.4 MB on my disk !!!
radin