Bug 84860 - Can't compile kdetv/kvideoio from cvs
Summary: Can't compile kdetv/kvideoio from cvs
Status: CLOSED NOT A BUG
Alias: None
Product: kdetv
Classification: Unmaintained
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Dirk Ziegelmeier
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-10 12:14 UTC by cerebro84
Modified: 2005-01-23 16:55 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description cerebro84 2004-07-10 12:14:21 UTC
Version:           sconosciuto (using KDE 3.2.91 (3.3 beta1), compiled sources)
Compiler:          gcc version 3.3.2 (Mandrake Linux 10.0 3.3.2-6mdk)
OS:                Linux (i686) release 2.6.3-7mdk

source='qvideostream.cpp' object='qvideostream.lo' libtool=yes \
depfile='.deps/qvideostream.Plo' tmpdepfile='.deps/qvideostream.TPlo' \
depmode=gcc3 /bin/sh ../../admin/depcomp \
/bin/sh ../../libtool --silent --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/lib/qt3//include -I/usr/X11R6/include   -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -O2 -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -fexceptions -DQT_NO_STL -DQT_NO_COMPAT -DQT_CLEAN_NAMESPACE -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -Wall -Wformat-security  -c -o qvideostream.lo `test -f 'qvideostream.cpp' || echo './'`qvideostream.cpp
In file included from qvideostream.cpp:694:
qvideostream.moc:110: error: syntax error before `::' token
qvideostream.moc:115: error: syntax error before `::' token
qvideostream.moc:116: error: `QVideoStreamGLWidget' was not declared in this scope
qvideostream.moc:116: error: syntax error before `::' token
qvideostream.moc:138: error: syntax error before `::' token
qvideostream.moc:142: error: incomplete type 'QGLWidget' cannot be used to name a scope
qvideostream.moc:143: error: ISO C++ forbids declaration of `metaObj' with no type
qvideostream.moc:151: error: invalid conversion from `QMetaObject*' to `int'
qvideostream.moc:152: error: syntax error before `.' token
qvideostream.moc:156: error: syntax error before `::' token
qvideostream.moc:163: error: syntax error before `::' token
qvideostream.moc:168: error: syntax error before `::' token
qvideostream.moc:174: error: syntax error before `::' token
qvideostream.moc:179: error: syntax error before `::' token
qvideostream.moc:116: warning: `QMetaObjectCleanUp cleanUp_QVideoStreamGLWidget(...)' declared `static' but never defined
make[4]: *** [qvideostream.lo] Error 1
make[4]: Leaving directory `/mnt/varie3/cvs/kdeextragear-3/kdetv/kvideoio'
Comment 1 George Staikos 2004-08-08 23:37:02 UTC
You don't have a clean build or build environment.  Try running make cvs-clean, rerunning Makefile.cvs, configure, then rebuilding.  If it still fails, you probably have a GL misconfiguration on your system somewhere.
Comment 2 cerebro84 2004-08-09 01:45:25 UTC
Resolved :-)
I think it's a Mandrake or autosomething bug because I downgraded to autoconf automake and libtool of mandrake 9.2 and everythink compiled well

Comment 3 Jan Kohnert 2005-01-17 17:35:40 UTC
I can configure this bug on Gentoo Linux using kdetv-0.8.5.
See:
http://bugs.gentoo.org/show_bug.cgi?id=78294

So please reopen this one, as the configure script should detect a misconfigured opengl.
Comment 4 Jan Kohnert 2005-01-17 17:41:31 UTC
Sorry I meant kdetv-0.8.4

Regads Jan
Comment 5 Dirk Ziegelmeier 2005-01-17 20:38:51 UTC
On Monday 17 January 2005 17:35, Jan Kohnert wrote:
> ------- You are receiving this mail because: -------
> You are the assignee for the bug, or are watching the assignee.
>
> http://bugs.kde.org/show_bug.cgi?id=84860
>
>
>
>
> ------- Additional Comments From Jan-Kohnert freenet de  2005-01-17 17:35
> ------- I can configure this bug on Gentoo Linux using kdetv-0.8.5.
> See:
> http://bugs.gentoo.org/show_bug.cgi?id=78294
>
> So please reopen this one, as the configure script should detect a
> misconfigured opengl.
Wie wärs, Gentoo's Qt build in Ordnung zu bringen anstatt n+1 Applikationen zu 
patchen um um den Fehler herumzuarbeiten??? Wär das nicht einfacher? Sollte 
Gentoo eine gute Begründung dafür haben baue ich gerne einen Fix ein.

Dirk

Comment 6 Jan Kohnert 2005-01-20 16:57:58 UTC
> Wie wärs, Gentoo's Qt build in Ordnung zu bringen anstatt n+1 Applikationen zu
> patchen um um den Fehler herumzuarbeiten??? Wär das nicht einfacher? Sollte
> Gentoo eine gute Begründung dafür haben baue ich gerne einen Fix ein. 

What about those people that don't want to have opengl on their system? That's the couse why one can decide wheter to have qt with or without opengl.

But kdetv needs qt WITH opengl and should detect that it can be built. The configure script just detects some opengl environment stuff but does not care about qt and opengl, which it is using, in fact. This one is indeed an error and not "working aroud" as you call it.

Would it be that hard to fix?

Regards Jan
Comment 7 Dirk Ziegelmeier 2005-01-23 16:55:30 UTC
configure correctly detects missing OpenGL, but moc still sees the QVideoStreamGLWidget declaration and generates code for it. Since the declaration does not need to be in the header, I moved it into the .cpp. Should be fixed now.