HGM.bg (GMX) escribió:
ElChef wrote:
I deleted it from osd.h Lines: 106 // void __user *data; 107 void *data;
And from video.h Lines: 105 // char __user *iFrame; /* pointer to a single iframe in memory */ 106 char *iFrame;
That's what i always do.
In Makefile: CXXFLAGS ?= -g -O2 -Wall -Woverloaded-virtual -D__user
I don't use that define -> -D__user
And now: In file included from ../DVB/include/linux/videodev.h:8, from dvbdevice.c:20: ../DVB/include/linux/videodev2.h:436: error: error de decodificación before numeric constant ../DVB/include/linux/videodev2.h:438: error: la declaración no declara nada} ../DVB/include/linux/videodev2.h:438: error: error de decodificación before numeric constant
I don't have a videodev2.h ! My problem is that i don't understand the spanish errors, you might do a 'export LANG=EN_en' or something similiar to get english error-messages.
In file included from dvbdevice.c:20: ../DVB/include/linux/videodev.h:225: error: error de decodificación before numeric constant En el fichero incluído de ../DVB/include/linux/dvb/video.h:27, de dvbdevice.c:24: ../DVB/include/linux/compiler.h:11:1: aviso: se redefinió "__user" <línea de orden>:5:1: aviso: esta es la ubicación de la definición previa In file included from dvbdevice.c:24: ../DVB/include/linux/dvb/video.h:106: error: error de decodificación before `*' token dvbdevice.c: En member function `virtual void cDvbDevice::StillPicture(const uchar*, int)': dvbdevice.c:1103: error: conversión inválida de `char*' a `char' dvbdevice.c:1109: error: conversión inválida de `char*' a `char' make: *** [dvbdevice.o] Error 1
Please tell me, which dvb-drivers you are using ? Which kernel etc.pp.
I use the dvb-drivers from cvs that might be a difference. Please describe to the list your software-config, so anyone else can help :)
I'm a newbie in C++ and in compilation errors... what I'm doing wrong?
You are not that far away from success :)
/hgm.bg
The DVBDIR of the Makefile is the clue, I change it to: DVBDIR = ../DVB/include/linux or the same, remove the DVB symlink and remake it with: root@LinEspa:/usr/src# ln -s /usr/src/linux/include/linux DVB and let the DVBDIR = ../DVB
and anything goes, with or without deleting __user from osd.h and video.h Thanks a lot!