[mythtv] Can't compile SVN >= r9256

Kent Williams kent2 at optusnet.com.au
Tue Mar 7 07:00:54 UTC 2006


I can't seem to get SVN revision R9256 or later to compile. R9255 and
earlier compile ok.

Specifically it bombs out with:
ccache distcc g++  -o mythtv main.o    -L/usr/share/qt3/lib
-L../../libs/libmyth -L../../libs/libmythtv -L../../libs/libavutil
-L../../libs/libavcodec -L../../libs/libavformat -L../../libs/libmythui
-lmythtv-0.19 -lmythavformat-0.19 -lmythavutil-0.19 -lmythavcodec-0.19
-lmyth-0.19 -lmythui-0.19 -lfreetype -lmp3lame -lasound -L/usr/lib
-lartsc -lgmodule-2.0 -ldl -lgthread-2.0 -lglib-2.0 -L/usr/X11R6/lib
-lXinerama -lXv -lXxf86vm -lXrandr -lqt-mt -lGLU -lGL -lXmu -lXext -lX11
-lm -lpthread
../../libs/libmythtv/libmythtv-0.19.so: undefined reference to
`dvdnav_audio_get_channels'
collect2: ld returned 1 exit status

If I remove a particular reference to dvdnav_audio_get_channels in
libs/libmythtv/DVDRingBuffer.cpp (line 906) by changing it from:
   unsigned char channels = dvdnav_audio_get_channels(dvdnav,id);
to:
   unsigned char channels = 0xff;
//dvdnav_audio_get_channels(dvdnav,id);

Everything compiles and links successfully. With my limited experience,
it appears that the issue is with linking and not compiling, so do I
seem to be missing a -l or -L from the g++ options? Is dvdnav.o missing
from some .so somewhere?

This happens even after a make clean and make distclean. I even tried a
fresh checkout from SVN.

What I don't understand is why no one else seems to be having this
issue. Any help would be greatly appreciated.

Cheers,
-Kent



More information about the mythtv-dev mailing list