bugGnash - The GNU Flash player - Bugs: bug #22156, Gnash cvs with kde gui fails to...

 
 

bug #22156: Gnash cvs with kde gui fails to compile on Gentoo with qt4 installled.

Submitted by:  Harley Peters <hpeters>
Submitted on:  Tue 29 Jan 2008 07:23:09 PM UTC  
 
Category: gui-kde3Severity: 3 - Normal
Release: NoneStatus: Ready For Test
Privacy: PublicAssigned to: Rob Savoye <rsavoye>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

(Jump to the original submission Jump to the original submission)

Fri 01 Feb 2008 02:22:47 AM UTC, comment #9:

Just checked out the latest cvs and it detected the correct version of moc /usr/qt/3/bin/moc and compiled ok.

Harley Peters <hpeters>
Fri 01 Feb 2008 01:44:22 AM UTC, comment #8:

I just checked in a variation of this patch, which works fine for me.

Rob Savoye <rsavoye>
Project AdministratorIn charge of this item.
Thu 31 Jan 2008 04:49:34 PM UTC, comment #7:

The patch works for me. It detected the right moc and compiled without error.

checking for moc... /usr/bin/moc before patch.

checking for moc... /usr/qt/3/bin/moc after patch.

Harley Peters <hpeters>
Thu 31 Jan 2008 01:39:28 PM UTC, comment #6:

I've attached a patch for macros/qt.m4 just as a proof of concept. After applying this patch the configure scripts picks the right location for moc on my machine.

(file #14909)

Anonymous
Wed 30 Jan 2008 05:20:38 PM UTC, comment #5:

QT flags are: -I/usr/qt/3/include
QT libs are: -lqt-mt

Sets them to the same whether qt3 only or both qt3 and qt4 are installed.

Harley Peters <hpeters>
Wed 30 Jan 2008 05:04:03 PM UTC, comment #4:

Thanks for the info. I'll install QT4, and see what the problem is. QTDIR is also used to find moc, so it should be possible to override whether QT3 or QT4 is set by changing this environment variable. Gnash should default to qt3 for now if both are found, except if QTDIR is used. As I thought all QT users had to set QTDIR to build applications from source, I thought this was a safe behavior. What paths did configure find for QT ?

Rob Savoye <rsavoye>
Project AdministratorIn charge of this item.
Wed 30 Jan 2008 04:59:51 PM UTC, comment #3:

It compiles fine when qt3 only is installed.But with both qt4 and qt3 installed which is common these days it fails.
As stated below it seems to be using the moc application from qt4 instead of qt3.

I don't configure the qt header and lib directories just let the configure script auto set them.

QTDir set ? I assume you meant the header and lib settings.

Harley

Harley Peters <hpeters>
Wed 30 Jan 2008 03:17:04 PM UTC, comment #2:

I have the same issue, I'm also running Gentoo and have both Qt3 and 4 installed. As far as I can tell, the only problem is that the configure script uses the moc application from the Qt4 installation instead of the Qt3 version. It picks the right library to link to, it's just moc...

Anonymous
Wed 30 Jan 2008 03:18:15 AM UTC, comment #1:

I just did a fresh build of Gnash on Gentoo x86_64, and Gnash built just fine with QT3. Do you have QTDir set ? If so, what does it point to ?

Rob Savoye <rsavoye>
Project AdministratorIn charge of this item.
Tue 29 Jan 2008 07:23:09 PM UTC, original submission:

Gnash cvs with kde gui fails to compile on Gentoo with both qt3 and qt4 ( The Gentoo default ) installed with the following error:

kde = kde-3.5.8
qt3 is installed in /usr/qt/3
qt4 is installeed in /usr/lib64/qt4

./configure --prefix=/usr --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-cygnal --disable-ghelp --disable-kparts --enable-nsapi --disable-i810-lod-bias --enable-mit-shm --enable-gui=gtk,kde --with-npapi-plugindir=/opt/netscape/plugins --enable-renderer=agg --enable-media=gst --libdir=/usr/lib64 --build=x86_64-pc-linux-gnu

x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I.. -DGUI_KDE -DGUI_CONFIG=\"KDE\" -I.. -I.. -I../server -I../server/parser -I../server/vm -I../libltdl -I../libbase -I../backend -I../libgeometry -I../libmedia -I../libmedia/sdl -I../libmedia/gst -DLOCALEDIR=\"/usr/share/locale\" -DPLUGINSDIR=\"/usr/lib64/gnash/plugins\" -I/usr/include/libxml2 -I/usr/X11R6/include -pthread -pthread -I/usr/include/gstreamer-0.10 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/libxml2 -DPKGDATADIR=\"/usr/share/gnash\" -DRENDERER_CONFIG=\"agg\" -DMEDIA_CONFIG=\"gst\" -DTARGET_CONFIG=\"\" -DCONFIG_CONFIG="\"--prefix=/usr --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-cygnal --disable-ghelp --disable-kparts --enable-nsapi --disable-i810-lod-bias --enable-mit-shm --enable-gui=gtk,kde --with-npapi-plugindir=/opt/netscape/plugins --enable-renderer=agg --enable-media=gst --libdir=/usr/lib64 --build=x86_64-pc-linux-gnu\"" -DCXXFLAGS="\"-march=athlon64 -O2 -msse3 -pipe -pthread -W -Wall -Wcast-align -Wcast-qual -Wpointer-arith -Wreturn-type -fvisibility-inlines-hidden\"" -I/usr/kde/3.5/include -I/usr/kde/3.5/include/kio -I/usr/qt/3/include -I/usr/include/agg2 -march=athlon64 -O2 -msse3 -pipe -pthread -W -Wall -Wcast-align -Wcast-qual -Wpointer-arith -Wreturn-type -fvisibility-inlines-hidden -MT kde_gnash-kde.o -MD -MP -MF .deps/kde_gnash-kde.Tpo -c -o kde_gnash-kde.o `test -f 'kde.cpp' || echo './'`kde.cpp
In file included from kde.cpp:45:
klash.moc:12:2: error: #error "The header file 'kdesup.h' doesn't include <QObject>."
In file included from /usr/qt/3/include/qtl.h:43,
from /usr/qt/3/include/qvaluelist.h:42,
from /usr/qt/3/include/qmap.h:46,
from /usr/qt/3/include/qmime.h:43,
from /usr/qt/3/include/qevent.h:45,
from /usr/qt/3/include/qobject.h:45,
from /usr/qt/3/include/qwidget.h:43,
from kde.cpp:25:
/usr/qt/3/include/qtextstream.h: In constructor 'QTextIStream::QTextIStream(const QString*)':
/usr/qt/3/include/qtextstream.h:201: warning: cast from type 'const QString' to type 'QString' casts away constness
In file included from /usr/qt/3/include/qobject.h:45,
from /usr/qt/3/include/qwidget.h:43,
from kde.cpp:25:
/usr/qt/3/include/qevent.h: In member function 'int QIMEvent::selectionLength() const':
/usr/qt/3/include/qevent.h:493: warning: cast from type 'const QIMComposeEvent' to type 'QIMComposeEvent' casts away constness
In file included from kde.cpp:25:
/usr/qt/3/include/qwidget.h: In member function 'void QWidget::constPolish() const':
/usr/qt/3/include/qwidget.h:883: warning: cast from type 'const QWidget* const' to type 'QWidget*' casts away constness
In file included from kde.cpp:45:
klash.moc: At global scope:
klash.moc:55: error: 'const QMetaObject gnash::qwidget::staticMetaObject' is not a static member of 'class gnash::qwidget'
klash.moc:55: error: variable 'const QMetaObject gnash::qwidget::staticMetaObject' has initializer but incomplete type
klash.moc:60: error: prototype for 'const QMetaObject* gnash::qwidget::metaObject() const' does not match any in class 'gnash::qwidget'
kdesup.h:55: error: candidate is: virtual QMetaObject* gnash::qwidget::metaObject() const
klash.moc:60: error: 'const QMetaObject* gnash::qwidget::metaObject() const' cannot be overloaded
kdesup.h:55: error: with 'virtual QMetaObject* gnash::qwidget::metaObject() const'
klash.moc: In member function 'const QMetaObject* gnash::qwidget::metaObject() const':
klash.moc:62: error: cannot convert 'QMetaObject* ()()' to 'const QMetaObject' in return
klash.moc: At global scope:
klash.moc:65: error: no 'void* gnash::qwidget::qt_metacast(const char*)' member function declared in class 'gnash::qwidget'
klash.moc: In member function 'void* gnash::qwidget::qt_metacast(const char*)':
klash.moc:70: error: 'qt_metacast' is not a member of 'QWidget'
klash.moc: At global scope:
klash.moc:73: error: 'int gnash::qwidget::qt_metacall' is not a static member of 'class gnash::qwidget'
klash.moc:73: error: incomplete type 'QMetaObject' used in nested name specifier
klash.moc:73: error: expected primary-expression before 'int'
klash.moc:73: error: expected primary-expression before 'void'
klash.moc:73: error: initializer expression list treated as compound expression
klash.moc:74: error: expected ',' or ';' before '{' token
/usr/qt/3/include/qmemarray.h: In member function 'QMemArray<type>& QMemArray<type>::duplicate(const type*, uint) [with type = char]':
/usr/qt/3/include/qcstring.h:252: instantiated from here
/usr/qt/3/include/qmemarray.h:85: warning: cast from type 'const char' to type 'char' casts away constness
/usr/qt/3/include/qmemarray.h: In member function 'int QMemArray<type>::find(const type&, uint) const [with type = char]':
/usr/qt/3/include/qstring.h:897: instantiated from here
/usr/qt/3/include/qmemarray.h:92: warning: cast from type 'const char' to type 'char' casts away constness
make[3]: *** [kde_gnash-kde.o] Error 1
make[3]: *** Waiting for unfinished jobs....
mv -f .deps/kde_gnash-gui.Tpo .deps/kde_gnash-gui.Po
In file included from /usr/qt/3/include/qtl.h:44,
from /usr/qt/3/include/qvaluelist.h:43,
from /usr/qt/3/include/qstringlist.h:43,
from /usr/qt/3/include/qcolor.h:44,
from /usr/qt/3/include/qpixmap.h:44,
from kde_glue_agg.cpp:31:
/usr/qt/3/include/qtextstream.h: In constructor 'QTextIStream::QTextIStream(const QString*)':
/usr/qt/3/include/qtextstream.h:201: warning: cast from type 'const QString' to type 'QString' casts away constness
In file included from /usr/qt/3/include/qobject.h:46,
from /usr/qt/3/include/qwidget.h:44,
from kde_glue.h:28,
from kde_glue_agg.h:29,
from kde_glue_agg.cpp:34:
/usr/qt/3/include/qevent.h: In member function 'int QIMEvent::selectionLength() const':
/usr/qt/3/include/qevent.h:493: warning: cast from type 'const QIMComposeEvent' to type 'QIMComposeEvent' casts away constness
In file included from kde_glue.h:28,
from kde_glue_agg.h:29,
from kde_glue_agg.cpp:34:
/usr/qt/3/include/qwidget.h: In member function 'void QWidget::constPolish() const':
/usr/qt/3/include/qwidget.h:883: warning: cast from type 'const QWidget* const' to type 'QWidget*' casts away constness
/usr/qt/3/include/qmemarray.h: In member function 'QMemArray<type>& QMemArray<type>::duplicate(const type*, uint) [with type = char]':
/usr/qt/3/include/qcstring.h:252: instantiated from here
/usr/qt/3/include/qmemarray.h:85: warning: cast from type 'const char' to type 'char' casts away constness
/usr/qt/3/include/qmemarray.h: In member function 'int QMemArray<type>::find(const type&, uint) const [with type = char]':
/usr/qt/3/include/qstring.h:897: instantiated from here
/usr/qt/3/include/qmemarray.h:92: warning: cast from type 'const char' to type 'char' casts away constness
mv -f .deps/kde_gnash-kde_glue_agg.Tpo .deps/kde_gnash-kde_glue_agg.Po

Harley Peters <hpeters>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #14909:  qt.m4.diff added by None (282B - text/x-diff)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by rsavoye (Posted a comment)
  • -unavailable- added by hpeters (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 01 Feb 2008 02:37:30 AM UTCrsavoyeOpen/ClosedOpen=>Closed
    Fri 01 Feb 2008 01:44:22 AM UTCrsavoyeStatusNeed Info=>Ready For Test
    Thu 31 Jan 2008 01:39:28 PM UTCNoneAttached File-=>Added qt.m4.diff, #14909
    Wed 30 Jan 2008 03:18:15 AM UTCrsavoyeStatusNone=>Need Info
      Assigned toNone=>rsavoye

    Back to the top


    Powered by Savane 3.1-cleanup1