compiling vlc 0.8.5 on OS X 10.3.9

macOS specific usage questions
scram69
New Cone
New Cone
Posts: 3
Joined: 19 Sep 2005 05:08

compiling vlc 0.8.5 on OS X 10.3.9

Postby scram69 » 05 Aug 2006 20:12

I am trying to compile the latest vlc 0.8.5 from svn://svn.videolan.org/vlc/trunk vlc-trunk on OS X 10.3.9 (using Xcode version 1.5, gcc 3.3)

I am following the directions at:
http://developers.videolan.org/vlc/osx-compile.html

I get the following error during make:

ld: warning multiple definitions of symbol _locale_charset
/usr/lib/libiconv.dylib(localcharset.o) definition of _locale_charset
/Users/steve/vlc-trunk/./extras/contrib/lib/libintl.dylib(localcharset.o) definition of _locale_charset
make[2]: *** [vlc] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2


Renaming either libiconv.dylib or libintl.dylib to try to resolve the conflict results in errors complaining about the missing file. libiconv.dylib in /usr/lib is a link to libiconv.2.dylib, dated 13 May 2006, which I assume was put there when I did "make src" in /extras/contrib. Is there a newer version that will resolve this conflict?

The DJ
Cone Master
Cone Master
Posts: 5987
Joined: 22 Nov 2003 21:52
VLC version: git
Operating System: Mac OS X
Location: Enschede, Holland
Contact:

Postby The DJ » 08 Aug 2006 22:18

This is not the source of your build failure. They are just warnings. You must have another actual error higher in your output.

We however do not really support building on anything but 10.4 because it's simply too much to maintain multiple buildplatforms with Apple's fast paced changes to the buildtools and the BSD buildlayers.
Don't use PMs for support questions.

Guest

Postby Guest » 09 Aug 2006 22:44

DJ, thanks for the reply.
This is not the source of your build failure. They are just warnings. You must have another actual error higher in your output.
I suspected that might be the case, but I couldn't find any error messages in the previous 500 lines of output. I will have to set the scroll buffer on my xterm window even larger...
We however do not really support building on anything but 10.4
OK, I hope to migrate to 10.4 sometime soon. I just wanted to see if I could get it to build in the mean time. I know much has changed from Xcode 1.5 to 2.3. Do you know of any specific issues that would preven me from building?

radin
New Cone
New Cone
Posts: 8
Joined: 21 Aug 2006 17:40

Postby radin » 25 Aug 2006 10:50

Hello,

I am doing the same as you and getting the same errors (on ppc g3, osx 10.3.9, XCode 1.5, gcc 3.3, with the 0.8.6 trunk svn download).

I intend to try minimal configurations (--disable everything, --without everything, --enable-static. --disable-shared, etc. etc.) until I get it to link, and then start adding options back in, but each 'make distclean; ./configure...; make' cycle takes a long time on my slow machine, and I have not yet gotten a configuration that links ok.

I would be glad to hear if you have gotten further on this.

Regards,
radin

radin
New Cone
New Cone
Posts: 8
Joined: 21 Aug 2006 17:40

Postby radin » 29 Aug 2006 16:44

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

fkuehne
Developer
Developer
Posts: 7298
Joined: 16 Mar 2004 19:37
VLC version: 0.4.6 - present
Operating System: Darwin
Location: Germany
Contact:

Postby fkuehne » 30 Aug 2006 15:07

Just a few notes on your configure options:
Because of --disable-livedotcom, receiving most streams will fail, especially the ones using RTP/RTSP and some HTTP stuff.
--disable-mkv prevents you from reading Matroska/MKV files. If you don't need this feature, that'll be fine.
--disable-altivec is not necessary. VLC automagically detect your missing AltiVec unit at runtime.
5. vlc-trunk takes up 869.4 MB on my disk !!!
That's normal btw. It may grow up to 1 GB over time. That's still little compared to OpenOffice, which takes up 20 GB per build source tree. :shock:

It would be nice if you could post your crash-log to paste.videolan.org so we can have a look at it. Especially, give us some more details about the stuff you did with VLC before quiting, so we can reproduce your issues.
VideoLAN
Felix Paul Kühne
Medic. VLC developer for appleOS since before you were born.
Blog: https://www.feepk.net

radin
New Cone
New Cone
Posts: 8
Joined: 21 Aug 2006 17:40

Postby radin » 30 Aug 2006 22:16

Hello,

About the crash:

I posted the crash-log, even though I read above that only OS X 10.4 is supported.
But maybe the same happens on 10.4.

Note that this crash is only with 0.8.6-svn, 0.8.5 is ok.

This is the text I posted with the crash-log:

Reproduceable using
1. trunk-20060729-1423-fpk.dmg (last ppc daily build),
or
2. a local build of the current vlc-0.8.6-svn.

on:
iMac G3 400 Mhz, 384 MB ram, OSX 10.3.9

Exactly what I do:

1. Reboot

In the vlc-0.8.6-svn dir:

2. Doubleclick Delete_Preferences (it runs), click "Yes", click "Ok".
Note: it may not crash on quitting if you don't delete the preferences.

3. Open the trash : org.videolan.vlc.plist and VLC dir are in it.
I have to drag something else to the trash before I can empty it.

4. Double click the VLC app icon.

The VLC Controller window comes up and the VLC icon appears in the taskbar.

5. From the VLC menu, select "Quit VLC".

The VLC window and the VLC icon in the taskbar disappear.

After a few seconds, the "The application VLC has unexpectely quit" window (with the "Submit Report..." "Cancel" buttons) pops up.



About my 0.8.6-svn build:

If I don't --disable-livedotcom (I now use disable-live555 instead) and --disable-mkv, it doesn't link, I get:

ld: ./modules/demux/liblive555.a(liblive555_a-live555.o) illegal reference to symbol: std::ios_base::Init::Init() defined in indirectly referenced dynamic library /usr/lib/libstdc++.6.dylib

ld: /usr/lib/gcc/darwin/3.3/libgcc.a(_fixunssfdi.o) illegal reference to symbol: ___cmpdi2 defined in indirectly referenced dynamic library /usr/lib/libgcc_s.1.dylib

It also fails to link if I --disable-debug --enable-release:

ld: /Users/pm/vlc-trunk/./extras/contrib/lib/libavcodec.a(mjpeg.o) illegal reference to symbol: ___eprintf defined in indirectly referenced dynamic library /usr/lib/libstdc++.6.dylib

I also get a lot of compilation warnings, and this link warning, which I ignore:
ld: warning multiple definitions of symbol _locale_charset

I also ignore these:
configure: WARNING: net/if.h: present but cannot be compiled
configure: WARNING: net/if.h: check for missing prerequisite headers?
configure: WARNING: net/if.h: see the Autoconf documentation
configure: WARNING: net/if.h: section "Present But Cannot Be Compiled"
configure: WARNING: net/if.h: proceeding with the preprocessor's result
configure: WARNING: net/if.h: in the future, the compiler will take precedence
configure: WARNING: ## ------------------------------ ##
configure: WARNING: ## Report this to the vlc lists. ##
configure: WARNING: ## ------------------------------ ##
configure: WARNING: HAL library not found
configure: WARNING: DBUS library not found
configure: WARNING: GnomeVFS support disabled because GnomeVFS development headers not found
configure: WARNING: only static linking is available, you must provide a gme-tree
configure: WARNING: libxml2 missing the xmlTextReader extension, you should update your version
configure: WARNING: Not building Roku HD1000 compatible video output
configure: WARNING: Not building Roku HD1000 compatible video output
configure: WARNING: avahi-client library not found


With this build, I have tried various wmv, mpg, mpeg video files, which all play ok, except a .MOW file containing a jpeg file (even if renamed .mp4). There are sometimes crashes when trying to play files from the play list or when dropping several files on the VLC icon, but dropping a single file on the VLC icon or playing files from the file menu is ok. Shoutcast audio reception also works fine, but not being to receive video streams is a showstopper for me, since I need exactly the opposite (video stream reception and no audio-only streams). Also, it would be nice to be able to build a release version, instead of debug.

All this info is mostly for anyone else who wants to build VLC on OS X 10.3.9, even if it is no longer supported, although any help is welcome.

Regards,
radin

radin
New Cone
New Cone
Posts: 8
Joined: 21 Aug 2006 17:40

Postby radin » 03 Sep 2006 22:28

I have just Updated to revision 16503 and a build as described above fails to link with:

g++: src/libvlc.a: No such file or directory
g++: ./modules/misc/memcpy/libmemcpyaltivec.a: No such file or directory
g++: ./modules/video_chroma/libi420_yuy2_altivec.a: No such file or directory
g++: ./modules/mux/mpeg/libmux_ts.a: No such file or directory
g++: ./modules/codec/ffmpeg/libffmpeg.a: No such file or directory
g++: ./modules/stream_out/libstream_out_switcher.a: No such file or directory
g++: ./modules/codec/libquicktime.a: No such file or directory
g++: ./modules/codec/libtheora.a: No such file or directory
g++: ./modules/audio_output/libauhal.a: No such file or directory
g++: ./modules/gui/macosx/libmacosx.a: No such file or directory
g++: ./modules/visualization/libgoom.a: No such file or directory

Some earlier revisions also failed to link.

The last revision I have tried that builds ok for me as described in the posts above is 16473, obtained with:

`svn update -r16473`.

I think I will stick with this one for a while.

Note that these revisions are 0.8.6-svn, not 0.8.5 anymore like the topic of the first post says.

radin

fkuehne
Developer
Developer
Posts: 7298
Joined: 16 Mar 2004 19:37
VLC version: 0.4.6 - present
Operating System: Darwin
Location: Germany
Contact:

Postby fkuehne » 03 Sep 2006 23:21

You may also want to switch to our stable trunk at svn://svn.videolan.org/vlc/branches/0.8.5-1 which is used to prepare our next stable release. If you provide patches for our build system to get working builds on 10.3.9, we would be glad to include them in our official source.
VideoLAN
Felix Paul Kühne
Medic. VLC developer for appleOS since before you were born.
Blog: https://www.feepk.net


Return to “VLC media player for macOS Troubleshooting”

Who is online

Users browsing this forum: No registered users and 6 guests