Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Re: special libdvdcss and libdvdread setup



Gregoire Favre wrote:
> Hello,
> 
> I have followed your guide, and reloaded the csskeys.diff as you
> answered, but it still didn't apply, I have choosed th file to patch
> manually and patch told me if was already patched... so I leave that
> patch without applying.
> I compiled everything (libdvdcss and libdvdread) then without problem,
> and installed those, but I can't compil any VDR release any more (0.99,
> AIO-21.02 and aio-21.02-a52)...

i don't use the setup with the DVD path and therefore didn't see this, 
sorry.
Try to remove these two line from vdr Makefile:

INCLUDES += -I$(DVDDIR)/libdvdread
LIBDIRS  += -L$(DVDDIR)/libdvdread/dvdread/.libs

If libdvdread is installed with "make install", all needed files will be 
found through the normal search path's. libdvdread will be then linked 
in as shared library. To be safe, do a "ldconfig" before compiling vdr.

> With aio-21.02-a52:
> 
> g++ -g -O2 config.o dvbapi.o dvbosd.o dvd.o eit.o font.o i18n.o interface.o menu.o osd.o recording.o remote.o remux.o ringbuffer.o svdrp.o thread.o tools.o vdr.o videodir.o vcd.o sockets.o lcd.o spu.o decoder.o vm.o vmcmd.o ca52.o mp3.o mp3-menu.o mp3-dvb.o  -ljpeg -lpthread -L../DVD/libdvdread/dvdread/.libs -ldvdread -lz -lmad -lid3tag -la52 ./libdtv/libdtv.a -o vdr
> ../DVD/libdvdread/dvdread/.libs/libdvdread.a(dvd_setup.o): In function `DVDSetupRead':
> /usr/src/DVD/libdvdread/dvdread/dvd_setup.c:140: undefined reference to `dlopen'
> /usr/src/DVD/libdvdread/dvdread/dvd_setup.c:142: undefined reference to `dlsym'
> /usr/src/DVD/libdvdread/dvdread/dvd_setup.c:143: undefined reference to `dlsym'
> /usr/src/DVD/libdvdread/dvdread/dvd_setup.c:144: undefined reference to `dlsym'
> /usr/src/DVD/libdvdread/dvdread/dvd_setup.c:145: undefined reference to `dlsym'
> /usr/src/DVD/libdvdread/dvdread/dvd_setup.c:146: undefined reference to `dlsym'
> ../DVD/libdvdread/dvdread/.libs/libdvdread.a(dvd_setup.o):/usr/src/DVD/libdvdread/dvdread/dvd_setup.c:147: more undefined references to `dlsym' follow
> ../DVD/libdvdread/dvdread/.libs/libdvdread.a(dvd_setup.o): In function `DVDSetupRead':
> /usr/src/DVD/libdvdread/dvdread/dvd_setup.c:155: undefined reference to `dlclose'
> /usr/src/DVD/libdvdread/dvdread/dvd_setup.c:165: undefined reference to `dlerror'
> collect2: ld returned 1 exit status
> make: *** [vdr] Error 1
> 75.170u 3.530s 1:31.23 86.2%    0+0k 0+0io 46981pf+0w
> Exit 2

The linker links it against the static library and can therefore not 
resolve all dependencies. If you really want it linked in staticly, 
change the following line in vdr's Makefile:

DVDLIB    = -ldvdread
to:
DVDLIB    = -ldvdread -ldl


Have fun

  Andreas


> Any hints?
> 
> Thanks you very much,
> 
> 	Grégoire
> ________________________________________________________________
> http://ulima.unil.ch/greg ICQ:16624071 mailto:greg@ulima.unil.ch
> 
> 
> 
> 






Home | Main Index | Thread Index