[mythtv] mythtv cblfs gcc-m64 dvdnav

sibu xolo sibxol at btconnect.com
Wed Sep 29 13:13:11 UTC 2010


On Thursday 23 September 2010 18:54:32 sibu xolo wrote:
> Greetings,
> 
> I an new to this list.  I am attemping to compile mythtv on a computer with
> these:-
> 
> a) cpu: amd64-2cores
> b) o/s  cblfslinux 64-bit kernel-2.6.35.4
> c) compiler gcc-4.4.2
> d) gui kde-4.4.5 qt-4.6.2
> 
> 
> I tried the 0.23.1 tarball as well a stuff downloaded from svn.
> dvdnav seems to be required though I have dvdnav installed in /opt and I
> included
> --extra-cflags="-I/opt/include"  and --extra=ldflags="-L/opt/lib"  in the
> configure options before running make.
> 
> the compiler output is shown below:-
> 
> 
> 
> ###################### myth TV compile build fail
> 
> make[2]: Entering directory `$SOURCES/mythtv/libs/libmythdvdnav'
> gcc -c -m64 -pipe -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -
> D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DPIC -I/opt/include -
> I/opt/dirac/include -I/opt/lirc/include -I/opt/mysql/include -
> I/usr/local/include -I/opt/ffmpeg/include -std=c99 -fomit-frame-pointer
> -fPIC -g -Wall -Wno-parentheses -Wno-switch -Wdisabled-optimization
> -Wpointer-arith -Wredundant-decls -Wno-pointer-sign -Wcast-qual
> -Wwrite-strings -Wtype-limits -Wundef -Wmissing-prototypes -O3
> -fno-math-errno -fno-signed-zeros -fno-tree- vectorize
> -Werror=implicit-function-declaration -Werror=missing-prototypes -w
> -D_REENTRANT -DMMX -D_GNU_SOURCE -DHAVE_AV_CONFIG_H -
> I/opt/qt-4.6.2/mkspecs/linux-g++-64 -I. -I/usr/include
> -I/opt/mythtvSVN27810 - I. -I../.. -Idvdnav -I../libmythdb -I../libmythtv
> -o dvdnav.o dvdnav/dvdnav.c dvdnav/dvdnav.c: In function 'dvdnav_open':
> dvdnav/dvdnav.c:79: error: 'DVDNAV_SVN_REV' undeclared (first use in this
> function)
> dvdnav/dvdnav.c:79: error: (Each undeclared identifier is reported only
> once dvdnav/dvdnav.c:79: error: for each function it appears in.)
> dvdnav/dvdnav.c: In function 'dvdnav_audio_stream_format':
> dvdnav/dvdnav.c:932: error: 'DVDNAV_FORMAT_AC3' undeclared (first use in
> this function)
> dvdnav/dvdnav.c:936: error: 'DVDNAV_FORMAT_MPEGAUDIO' undeclared (first use
> in this function)
> dvdnav/dvdnav.c:939: error: 'DVDNAV_FORMAT_LPCM' undeclared (first use in
> this function)
> dvdnav/dvdnav.c:942: error: 'DVDNAV_FORMAT_DTS' undeclared (first use in
> this function)
> dvdnav/dvdnav.c:945: error: 'DVDNAV_FORMAT_SDDS' undeclared (first use in
> this function)
> make[2]: *** [dvdnav.o] Error 1
> make[2]: Leaving directory `$SOURCES/mythtv/libs/libmythdvdnav'
> make[1]: *** [sub-libmythdvdnav-make_default] Error 2
> make[1]: Leaving directory `$SOURCES/mythtv/libs'
> make: *** [sub-libs-make_default-ordered] Error 2
> 
> ########################
> 
I seem to experiencing erratic behavior   with the settings of these two 
parameters:-

--extra-ldflags=
--extra-clflags=

in the configure script of mythtv-0.23.1 for both the released tarball and   
that available from svn as of yesterday.

----------A
I have both dvdnav and dvdread installed in /opt (Both are  used succefully 
in the  compililation of  other programs such as vlc, kde4.4.5 etc.
For the present setup,
If I set --extra-cflags=/opt/include
I get the make error reported above.  Here it seems  there is conflict with  
the  pre-installed headers in /opt(or/usr)/include/{dvdnav,dvdread} and stuff 
in  ~$SOURCES/mythtv/libs/libmythdvdnav
If I set --extra-cflags=-I$SOURCES/mythtv/libs/libmythdvdnav
the make error dissappears  revealing more make errors  (see below)

--------B
I have bothe pulseaudio and libraw1394 in /opt.  If I set --extra-
ldflags=/opt/lib
 the configure options  seem to be ignored  and make returns 'cannot find -
lraw1394, -lpulse etc
I even tried export LD_LIBRARY_PATH=/opt/lib beforehand with the same result



-------C
If I set a CPPFLAGS and LDFLAGS envars the  confiogure script fails to run.


 So I would be grateful if anyone on list could provide some guidance/answers 
to the following questions:-

-1) Are there  options for using external  dvdnav and dvdread  and if so how 
are they executed?
-2) Are there runtime problems in having   a preinstalled dvdnav/dvdread and 
another dedicated to mythtv?
-3) Are there options  for   setting  LD_LIBRARY_PATH for -lraw1394 -lpulse  
in other locations than /usr/lib and if so how so?


More information about the mythtv-dev mailing list