LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-11-2006, 01:22 AM   #1
pda_h4x0r
Member
 
Registered: Feb 2006
Location: somewhere in cyberspace
Distribution: Debian, Familiar
Posts: 380

Rep: Reputation: 31
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
 
Old 02-11-2006, 09:10 AM   #2
berbae
Member
 
Registered: Jul 2005
Location: France
Distribution: Arch Linux
Posts: 540

Rep: Reputation: Disabled
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.

Last edited by berbae; 02-11-2006 at 09:24 AM.
 
Old 02-11-2006, 03:41 PM   #3
pda_h4x0r
Member
 
Registered: Feb 2006
Location: somewhere in cyberspace
Distribution: Debian, Familiar
Posts: 380

Original Poster
Rep: Reputation: 31
I seem to be missing a few packages. I'll download the appropriate rpms and try again.

Thank you
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to compile a C++ file (.cpp) with allegro? RHLinuxGUY Programming 5 11-29-2005 02:06 AM
How To Compile Cpp Source And Header? kike_coello Programming 10 09-08-2005 03:22 AM
How do I compile a *.cpp Document in linux? njbrain Linux - Software 9 01-29-2004 07:43 PM
compile programs in c and cpp Manjula.S Linux - Software 2 10-15-2003 01:06 AM
to compile cpp on linux mandrake manpreet Programming 1 04-26-2001 12:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration