[MPlayer-users] dvdnav problem

Krzysztof Duchnowski amidk75 at gmail.com
Wed Jun 11 01:20:16 CEST 2008


Nico Sabbi pisze:

>> svn won't update/copy src/dvdread from tree so it's missing

>> What's going on? DVDNAV no longer uses it's own dvdread and uses
>> mplayer internal-dvdread or system wide dvdread?


> you have to checkout and install libdvdread from the same repository
> before libdvdnav and mplayer

So, right now dvdread is externally updated and compiled but from 
mplayer svn, right (it's no longer an part of the dvdnav tree but it 
have it's own tree)?

But it could be nice to know that such a change was happen.

By the way, libtool version detection system have flaw: I have libtool 
1.5.24 in my system but "autogen.sh" don't recognize it.

First of this function:

> detect_libtool() {
>   # try glibtool first, then libtool
>   try_libtool_executable 'glibtool'

gives my error:

> ./autogen.sh: line 88: glibtool: polecenie nieodnalezione
> ./autogen.sh: line 89: test: : oczekiwano wyrażenia liczbowego
> ./autogen.sh: line 89: test: : oczekiwano wyrażenia liczbowego
> 
> **Error**: You must have `libtool' >= 1.4.0 installed to
>            compile libdvdread. Download the appropriate package
>            for your distribution or source from ftp.gnu.org.

But when I comment out "glibtool" testing then I have only this:

> ./autogen.sh: line 89: test: : oczekiwano wyrażenia liczbowego
> 
> **Error**: You must have `libtool' >= 1.4.0 installed to
>            compile libdvdread. Download the appropriate package
>            for your distribution or source from ftp.gnu.org.

It's because in line 89 arithmetic binary operators was used to compare 
text string.

Next one error is with automake. I have 1.10 in system but it's 
recognized by your code as 110 thus it "have lower revision than 1.6" 
which have "160" mark in your test.
I was forced to change automake temporary to 1.9 version.

This same problem is with aclocal but this I can't change.

So... I've made dirty hack to autogen to work - there is diff:

#########################################################

*** autogen.sh	2008-06-11 00:44:16.000000000 +0200
--- autogen2.sh	2008-06-11 01:02:05.000000000 +0200
***************
*** 86,92 ****
   try_libtool_executable() {
     libtool=$1
       LT="`$libtool --version | awk '{ print $4 }' | sed -e 's/[a-zA-Z\ 
\.\(\)\-\;]//g'`"
!     if test "$LT" -ne "" ; then
       LIBTOOL_MIN="`echo $LIBTOOL_MIN | sed -e 's/[a-zA-Z\ \.\(\)\-]//g'`"
       if test $LT -lt 100 ; then
         LT=`expr $LT \* 10`
--- 86,92 ----
   try_libtool_executable() {
     libtool=$1
       LT="`$libtool --version | awk '{ print $4 }' | sed -e 's/[a-zA-Z\ 
\.\(\)\-\;]//g'`"
!     if test "$LT" != "" ; then
       LIBTOOL_MIN="`echo $LIBTOOL_MIN | sed -e 's/[a-zA-Z\ \.\(\)\-]//g'`"
       if test $LT -lt 100 ; then
         LT=`expr $LT \* 10`
***************
*** 99,106 ****

   detect_libtool() {
     # try glibtool first, then libtool
!   try_libtool_executable 'glibtool'
!   if [ "x$libtool_ok" != "xyes" ]; then
       try_libtool_executable 'libtool'
       if [ "x$libtool_ok" != "xyes" ]; then
         echo
--- 99,106 ----

   detect_libtool() {
     # try glibtool first, then libtool
! #  try_libtool_executable 'glibtool'
! #  if [ "x$libtool_ok" != "xyes" ]; then
       try_libtool_executable 'libtool'
       if [ "x$libtool_ok" != "xyes" ]; then
         echo
***************
*** 109,115 ****
         echo "           for your distribution or source from ftp.gnu.org."
         exit 1
       fi
!   fi
   }

   run_libtoolize() {
--- 109,115 ----
         echo "           for your distribution or source from ftp.gnu.org."
         exit 1
       fi
! #  fi
   }

   run_libtoolize() {
***************
*** 140,145 ****
--- 140,146 ----
     if [ $RETVAL -eq 0 -a $NUM_RESULT -eq 3 -a -f "$RESULT_FILE" ]; then
       AM="`automake --version | sed -n 1p | sed -e 's/[a-zA-Z\ 
\.\(\)\-]//g'`"
       AUTOMAKE_MIN="`echo $AUTOMAKE_MIN | sed -e 's/[a-zA-Z\ 
\.\(\)\-]//g'`"
+     if test "$AM" = "110"; then AM="1100"; fi
       if test $AM -lt 100 ; then
         AM=`expr $AM \* 10`
       fi
***************
*** 182,187 ****
--- 183,189 ----
     if [ $RETVAL -eq 0 -a $NUM_RESULT -eq 3 -a -f "$RESULT_FILE" ]; then
       AC="`aclocal --version | sed -n 1p | sed -e 's/[a-zA-Z\ 
\.\(\)\-]//g'`"
       ACLOCAL_MIN="`echo $AUTOMAKE_MIN | sed -e 's/[a-zA-Z\ \.\(\)\-]//g'`"
+     if test "$AC" = "110"; then AC="1100"; fi
       if test $AC -lt 100 ; then
         AC=`expr $AC \* 10`
       fi

#########################################################

-- 
Krzysztof 'DK75' Duchnowski
GetFirefox - http://www.mozilla.com/firefox/
Konfiguracja UTF-8 dla czytników - http://evil.pl/pip/utf/



More information about the MPlayer-users mailing list