LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   KDE 3.5.1 libkopete_videodevice_la.all_cpp.cpp doesn't compile (https://www.linuxquestions.org/questions/linux-newbie-8/kde-3-5-1-libkopete_videodevice_la-all_cpp-cpp-doesnt-compile-414055/)

pda_h4x0r 02-11-2006 01:22 AM

KDE 3.5.1 libkopete_videodevice_la.all_cpp.cpp doesn't compile
 
Hello everyone,

I'm trying to compile KDE 3.5.1 from source (there aren't any rpms for KDE 3.5.1 for Mandrakelinux 10.1 that I know of), and when the script gets to compiling kopete, it stops when trying to compile libkopete_videodevice_la.all_cpp.cpp, because type "v4l2_buffer" isn't completely declared. Here's the string of errors I got:

if /bin/sh ../../../libtool --silent --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I/root/kde3.5.1/include -I/usr/X11R6/include -I/usr/kerberos/include -DKDE_NO_COMPAT -DQT_NO_COMPAT -DQT_NO_CAST_ASCII -DQT_NO_ASCII_CAST -I../../../kopete/libkopete -I../../../kopete/libkopete -I../../../kopete/libkopete/avdevice -I../../../kopete/libkopete/ui -I../../../kopete/libkopete/ui -I../../../kopete/libkopete/private -I../../../kopete/libkopete/ui -I/root/kde3.5.1/include -I/usr/X11R6/include -I/usr/kerberos/include -DQT_THREAD_SUPPORT -I/root/kde3.5.1/include -I/usr/X11R6/include -I/root/kde3.5.1/include -I/usr/X11R6/include -D_REENTRANT -D_FILE_OFFSET_BITS=64 -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -O2 -I/root/kde3.5.1/include -I/usr/X11R6/include -L/root/kde3.5.1/lib -L/usr/X11R6/lib -O2 -pipe -I /usr/src/linux/X11 -I/root/kde3.5.1/include -I/usr/X11R6/include -L/root/kde3.5.1/lib -L/usr/X11R6/lib -O2 -pipe -I /usr/src/linux/X11 -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -MT libkopete_videodevice_la.all_cpp.lo -MD -MP -MF ".deps/libkopete_videodevice_la.all_cpp.Tpo" -c -o libkopete_videodevice_la.all_cpp.lo libkopete_videodevice_la.all_cpp.cpp; \
then mv -f ".deps/libkopete_videodevice_la.all_cpp.Tpo" ".deps/libkopete_videodevice_la.all_cpp.Plo"; else rm -f ".deps/libkopete_videodevice_la.all_cpp.Tpo"; exit 1; fi
In file included from libkopete_videodevice_la.all_cpp.cpp:2:
videodevice.cpp: In member function `int Kopete::AV::VideoDevice::startCapturing()':
videodevice.cpp:810: error: aggregate `Kopete::AV::v4l2_buffer buf' has incomplete type and cannot be defined
videodevice.cpp:815: error: invalid application of `sizeof' to incomplete type `Kopete::AV::v4l2_buffer'
videodevice.cpp:815: error: invalid application of `sizeof' to incomplete type `Kopete::AV::v4l2_buffer[1]'
videodevice.cpp:815: error: invalid application of `sizeof' to incomplete type `Kopete::AV::v4l2_buffer'
videodevice.cpp:815: error: invalid application of `sizeof' to incomplete type `Kopete::AV::v4l2_buffer'
videodevice.cpp:832: error: aggregate `Kopete::AV::v4l2_buffer buf' has incomplete type and cannot be defined
videodevice.cpp:838: error: invalid application of `sizeof' to incomplete type `Kopete::AV::v4l2_buffer'
videodevice.cpp:838: error: invalid application of `sizeof' to incomplete type `Kopete::AV::v4l2_buffer[1]'
videodevice.cpp:838: error: invalid application of `sizeof' to incomplete type `Kopete::AV::v4l2_buffer'
videodevice.cpp:838: error: invalid application of `sizeof' to incomplete type `Kopete::AV::v4l2_buffer'
videodevice.cpp: In member function `int Kopete::AV::VideoDevice::getFrame()':
videodevice.cpp:866: error: aggregate `Kopete::AV::v4l2_buffer v4l2buffer' has incomplete type and cannot be defined
videodevice.cpp:903: error: invalid application of `sizeof' to incomplete type `Kopete::AV::v4l2_buffer'
videodevice.cpp:903: error: invalid application of `sizeof' to incomplete type `Kopete::AV::v4l2_buffer[1]'
videodevice.cpp:903: error: invalid application of `sizeof' to incomplete type `Kopete::AV::v4l2_buffer'
videodevice.cpp:903: error: invalid application of `sizeof' to incomplete type `Kopete::AV::v4l2_buffer'
videodevice.cpp:952: error: invalid application of `sizeof' to incomplete type `Kopete::AV::v4l2_buffer'
videodevice.cpp:952: error: invalid application of `sizeof' to incomplete type `Kopete::AV::v4l2_buffer[1]'
videodevice.cpp:952: error: invalid application of `sizeof' to incomplete type `Kopete::AV::v4l2_buffer'
videodevice.cpp:952: error: invalid application of `sizeof' to incomplete type `Kopete::AV::v4l2_buffer'
videodevice.cpp:965: error: invalid application of `sizeof' to incomplete type `Kopete::AV::v4l2_buffer'
videodevice.cpp:965: error: invalid application of `sizeof' to incomplete type `Kopete::AV::v4l2_buffer[1]'
videodevice.cpp:965: error: invalid application of `sizeof' to incomplete type `Kopete::AV::v4l2_buffer'
videodevice.cpp:965: error: invalid application of `sizeof' to incomplete type `Kopete::AV::v4l2_buffer'
videodevice.cpp:981: error: invalid application of `sizeof' to incomplete type `Kopete::AV::v4l2_buffer'
videodevice.cpp:981: error: invalid application of `sizeof' to incomplete type `Kopete::AV::v4l2_buffer[1]'
videodevice.cpp:981: error: invalid application of `sizeof' to incomplete type `Kopete::AV::v4l2_buffer'
videodevice.cpp:981: error: invalid application of `sizeof' to incomplete type `Kopete::AV::v4l2_buffer'
videodevice.cpp: In member function `int Kopete::AV::VideoDevice::initMmap()':
videodevice.cpp:1644: error: aggregate `Kopete::AV::v4l2_buffer v4l2buffer' has incomplete type and cannot be defined
videodevice.cpp:1652: error: invalid application of `sizeof' to incomplete type `Kopete::AV::v4l2_buffer'
videodevice.cpp:1652: error: invalid application of `sizeof' to incomplete type `Kopete::AV::v4l2_buffer[1]'
videodevice.cpp:1652: error: invalid application of `sizeof' to incomplete type `Kopete::AV::v4l2_buffer'
videodevice.cpp:1652: error: invalid application of `sizeof' to incomplete type `Kopete::AV::v4l2_buffer'
make[7]: *** [libkopete_videodevice_la.all_cpp.lo] Error 1

before I interrupted the sequence. I searched the files in the same directory as libkopete_videodevice_la.all_cpp.cpp for the structure, but didn't find it. How can I fix this? Please let me know if I need to provide any more information.

Thank you

berbae 02-11-2006 09:10 AM

Hello
I presume you used konstruct, but before compiling did you check for missing stuff with the detektive tool?

cd <konstruct dir>/misc/detektive
make

See if something's missing and install them if necessary
then re-check with the 'detektive.sh' script in <konstruct dir>/misc/detektive/detektive-0.1

If you've already done that, sorry for the uselessness of my post.
(on my SUSE Linux machine the kdenetwork package compiled without errors)
Greetings.

Edit: I confirm that the detektive tool works with Mandrake 10.1, it comes with a mandrake-101.lst file which gives the list of necessary things to have to compile KDE.

pda_h4x0r 02-11-2006 03:41 PM

I seem to be missing a few packages. I'll download the appropriate rpms and try again.

Thank you


All times are GMT -5. The time now is 08:33 AM.