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 ?
|
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...
|
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
|