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
Well, now the erros in english: Makefile now have: CXXFLAG =
osd.h and video.h without __user
Errors: In file included from ../DVB/include/linux/videodev.h:8, from dvbdevice.c:20: ../DVB/include/linux/videodev2.h:436: error: parse error before `*' token ../DVB/include/linux/videodev2.h:438: error: variable or field `__user' declared void ../DVB/include/linux/videodev2.h:438: error: declaration of `int v4l2_window::__user' ../DVB/include/linux/videodev2.h:436: error: conflicts with previous declaration `v4l2_clip v4l2_window::__user' ../DVB/include/linux/videodev2.h:438: error: parse error before `*' token In file included from dvbdevice.c:20: ../DVB/include/linux/videodev.h:225: error: parse error before `*' token make: *** [dvbdevice.o] Error 1
I got kernel 2.6.8.1 of a Debian distro, LinEspa, as I said in my first post, I think I must update to kernel 2.6.8.11 and apply patches from http://dl.bytesex.org/patches/ and pray for luck! don't?