Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[vdr] Re: [vdr] Can´t compile a old VDRversoin
On Thu, Jan 10, 2002 at 12:28:32PM +0100, Axel Gruber wrote:
> Hi all
>
> i have Problem during compiling a old VDR-version on my SAT-SERVER (with 2.2.18 kernel)
>
> i get this error Message:
>
> g++ -g -O2 config.o dvbapi.o dvbosd.o eit.o font.o i18n.o interface.o menu.o osd.o playlist.o recording.o remote.o svdrp.o thread.o tools.o vdr.o videodir.o -lncurses -ljpeg -lpthread -o vdr
> /usr/i486-suse-linux/bin/ld: cannot find -lncurses
> collect2: ld returned 1 exit status
> make: *** [vdr] Error 1
> linux:/vdr/vdr2 #
>
The g++ compiler is looking for the ncurses library and cannot find it.
Install the ncurses-devel package.
> A compiled VDR run´s well on this machine :-)
>
VDR uses ncurses in the DEBUG_OSD mode in showing the OSD on the console.
If you compile VDR without DEBUG_OSD, VDR won't compile the ncurses
dependant code and thus your VDR works without ncurses. Here's a patch to
the Makefile which removes the -lncurses from the g++ commandline unless
you have defined DEBUG_OSD (!!I did not test this, so be carefull!!):
*** Makefile.orig Thu Jan 10 13:39:39 2002
--- Makefile Thu Jan 10 13:52:49 2002
***************
*** 43,48 ****
--- 43,49 ----
ifdef DEBUG_OSD
DEFINES += -DDEBUG_OSD
+ NCURSESLIB = -lncurses
endif
ifdef VFAT
***************
*** 71,77 ****
# The main program:
vdr: $(OBJS) $(AC3LIB) $(DTVLIB)
! g++ -g -O2 $(OBJS) -lncurses -ljpeg -lpthread $(LIBDIRS) $(DVDLIB)
$(AC3LIB) $(DTVLIB) -o vdr
# The font files:
--- 72,78 ----
# The main program:
vdr: $(OBJS) $(AC3LIB) $(DTVLIB)
! g++ -g -O2 $(OBJS) $(NCURSESLIB) -ljpeg -lpthread $(LIBDIRS)
$(DVDLIB) $(AC3LIB) $(DTVLIB) -o vdr
# The font files:
> CU
>
> Axel
>
BR, Lauri
Home |
Main Index |
Thread Index