Mailing List archive

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

[vdr] Re: AIO-2206 won't compile?



On Sun, Jun 30, 2002 at 08:42:33PM +0200, Thomas Keil wrote:
> Hi Folks,
> 
> I'm trying to compile VDR-1.0.4 with AIO-22.06 and it won't work :-(
> 
> VDR-1.0.4 vanilla compiles flawlessly, except a couple warnings, but I 
> get a working binary.
> 
> My System:
> GCC 3.0.2

If you use gcc 3.x you should be able to correct those "errors", if you
could compile VDR-1.0.4 it's because VDR's programmer has accepted my
really small patch to make it compiles against gcc 3.x.
If you search the mailing list, you could also find patches for the
previous AIO, but has it doesn't interest anybody, I have stopped to
send them...

The code would be better if you manage to compil it with recent gcc, but
you must know that recent gcc are more strict...

Good luck,

PS: I sent this to the list a few days ago (it's quiete hard to browse
the ml...):

Here some quick fixes:

In dvbapi.c line 881:
  std::PlayExternalDolby(b, MaxLength, skipAC3bytes);
should be:
  ::PlayExternalDolby(b, MaxLength, skipAC3bytes);
line 210r5:
void cLiveAC3::StripAudioPackets(uchar *b, int Length, uchar Except = 0x00)
should be:
void cLiveAC3::StripAudioPackets(uchar *b, int Length, uchar Except)
line 2110:
std::PlayExternalDolby(&b[0], Length-6, false);
should be:
::PlayExternalDolby(&b[0], Length-6, false);
line 3148:
void cDvbApi::SetModeReplay(boolean audio=true)
void cDvbApi::SetModeReplay(boolean audio)

In menu.c line 542:
cMenuEditStrItem::cMenuEditStrItem(const char *Name, char *Value, int Length, const char *Allowed, int Width = 30)
cMenuEditStrItem::cMenuEditStrItem(const char *Name, char *Value, int Length, const char *Allowed, int Width)

I worryed a little bit in seeing all the errors due to teletext...
but they are just due to the missing libraries on my system... and as it also fails
to compil cleanly, I'll try teletext later...

In mp3.h line 107:
  inline const char *GetBasedir(void);
Could be (I am really not sure...):
  const char *GetBasedir(void);

With those modification, it compils for me with:
DVD=1 MP3=1 MPLAYER=1 CB=1 COLOR=1 FONT=SMALL LNBSHARE=1 make

Thanks you very much (and I hope I am not the only one using
a strict compiler...) ;-))


And here some I didn't already sent:

--- teletext.c~ 2002-05-31 15:04:06.000000000 +0200
+++ teletext.c  2002-06-27 15:14:25.000000000 +0200
@@ -585,3 +585,3 @@
   }
-  wahl_seite=wahl_seite+(int)(pow(10,2-wahl)*eingabe);
+  wahl_seite=wahl_seite+(int)(pow(10.,2-wahl)*eingabe);
   wahl++;

And in case you compiled the libs with x...:

--- Makefile~   2002-06-27 15:39:28.000000000 +0200
+++ Makefile    2002-06-27 15:42:24.000000000 +0200
@@ -129,2 +129,4 @@

+X11LIB = -L/usr/X11R6/lib -lX11 -lXv -lXext
+
 all: vdr
@@ -150,3 +152,3 @@
 vdr: $(OBJS) $(DTVLIB) $(SOFTCAMLIB)
-       g++ -g -O2 $(OBJS) $(SHLIBS) $(LIBDIRS) $(DTVLIB) $(SOFTCAMLIB)
        -o vdr
+       g++ -g -O2 $(OBJS) $(SHLIBS) $(LIBDIRS) $(DTVLIB) $(SOFTCAMLIB)
$(X11LIB) -o vdr

That's all :-))

	Grégoire
________________________________________________________________
http://ulima.unil.ch/greg ICQ:16624071 mailto:greg@ulima.unil.ch




Home | Main Index | Thread Index