RE: libdvdread-0.9.4: can't linking against libdvdcss
"Gansser, Martin" <[email protected]>
| Newsgroups | gmane.comp.video.ogle.devel |
|---|---|
| Message-ID | <78224A6821F87A4D8023B133E5B1140B40CAB2@srvmxellwangen2.ratc-de.com> |
> -----Original Message----- > From: H}kan Hjort [mailto:[email protected]] > Sent: Fri 3/14/2003 7:28 PM > To: Gansser, Martin > Cc: [email protected] > Subject: Re: [Ogle-devel] libdvdread-0.9.4: can't linking against > libdvdcss > Fri Mar 14 2003, Gansser, Martin wrote: > > > Hi, > > > > -snip- > > > checking for dvdcss_interface_2 in -ldvdcss... no <<<< NO > > > configure: error: You need libdvdcss.so.2 or later > -snip- > > > > I found a temporary solution for configure: > > > > diff -Naur configure.orig configure > > --- configure.orig 2003-03-14 14:15:25.000000000 +0100 > > +++ configure 2003-03-14 15:28:28.000000000 +0100 > > @@ -7800,7 +7800,7 @@ > > fi > > echo "$as_me:$LINENO: result: $ac_cv_lib_dvdcss_dvdcss_interface_2" >&5 > > echo "${ECHO_T}$ac_cv_lib_dvdcss_dvdcss_interface_2" >&6 > > -if test $ac_cv_lib_dvdcss_dvdcss_interface_2 = yes; then > > +if test $ac_cv_lib_dvdcss_dvdcss_interface_2 = no; then > > CSS_LIBS="-L$dvdcss_path/lib -R$dvdcss_path/lib -ldvdcss" > > CSS_CFLAGS=-I$dvdcss_path/include > > else > > > > libdvdreaad-0.9.4 compiles now fine and ogle-0.9.1 works with encrypted > DVD`s > > in the GUI mode. > > > What if you really didn't have libdvdcss? Then it will fail when it tries > to compile/link some file later in the build process. > > Is there an official Solution. ? > > > Really it has never been tested on HPUX before, one should almost expect > problems. > I'll look at the HPUX way of doing dlopen as soon as I can, or submit > a real patch agains libdvdread. > -- > Håkan Hjort have you found a solution in the mentime ? > > Is there an official Solution. ? > > > Don't use HPUX unless you know what you are doing? ;) > Really it has never been tested on HPUX before, one should almost expect > problems. > I'll look at the HPUX way of doing dlopen as soon as I can, or submit > a real patch agains libdvdread. a possible solution could be this patch: # diff -Naur configure.in.orig configure.in --- configure.in.orig 2003-03-14 14:53:37.000000000 +0100 +++ configure.in 2003-03-14 17:28:52.000000000 +0100 @@ -81,11 +81,24 @@ else saved_CFLAGS=$CFLAGS CFLAGS="$CFLAGS -L$dvdcss_path/lib" - AC_CHECK_LIB(dvdcss, dvdcss_interface_2, + + case "$host" in + *-hpux*) + AC_CHECK_LIB(dvdcss, dvdcss_open, + [ CSS_LIBS="-L$dvdcss_path/lib -R$dvdcss_path/lib -ldvdcss" + CSS_CFLAGS=-I$dvdcss_path/include ], + AC_MSG_ERROR(You need libdvdcss.so.2 or later) + ) + ;; + *) + AC_CHECK_LIB(dvdcss, dvdcss_interface_2, [ CSS_LIBS="-L$dvdcss_path/lib -R$dvdcss_path/lib -ldvdcss" CSS_CFLAGS=-I$dvdcss_path/include ], AC_MSG_ERROR(You need libdvdcss.so.2 or later) ) + ;; + esac + CFLAGS=$saved_CFLAGS dnl -w added to shutup GCC3.1's cpp warning about -I/usr/local saved_CPPFLAGS=$CPPFLAGS thanks Martin