Abdelrazak Younes wrote:

Helge Hafting a écrit :

I finally got my compiler sorted out, I can compile lyx again. :-)

At least I got the qt frontend going with g++ 4.1

I then tried to install qt4 tools & libraries to compile that
frontend, but it failed.
Is qt4 simply not ready for testing yet, or broken in svn right now,
or should I look for errors in my setup?


Unless I have introduced something bad lately, it should compile and work OK (except for the Citation dialog). At least Georg, Juegen and Edwin were able to run it. Is it a configuration error or a compilation error? If the later please post the gcc output.

This config command works fine:
svn up && ./autogen.sh && make distclean && ./configure --prefix=/usr/local --with-frontend=qt4 --with-gnu-ld --enable-optimization=-O2 --with-qt4-includes=/usr/include/qt4 --disable-stdlib-debug --disable-assertions

It compiles fine for a while, then:

/usr/bin/moc -o QDocumentDialog_moc.C ../QDocumentDialog.h
if /bin/sh ../../../../libtool --tag=CXX --mode=compile g++-4.1 -DHAVE_CONFIG_H -I. -I. -I../../../../src -DQT_CLEAN_NAMESPACE -DQT_GENUINE_STR -DQT_NO_STL -DQT3_SUPPORT -DQT_NO_TRANSLATION -I../../../../src -I../../../../src/frontends -I../../../../src/frontends/controllers -I../../../../src/frontends/qt4 -I../../../../src/frontends/qt4 -I/usr/include/qt4 -I/usr/include/qt4/Qt -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/Qt3Support -I../../../../boost -Wextra -Wall -I/usr/X11R6/include -g -O2 -MT QDocumentDialog_moc.lo -MD -MP -MF ".deps/QDocumentDialog_moc.Tpo" -c -o QDocumentDialog_moc.lo QDocumentDialog_moc.C; \ then mv -f ".deps/QDocumentDialog_moc.Tpo" ".deps/QDocumentDialog_moc.Plo"; else rm -f ".deps/QDocumentDialog_moc.Tpo"; exit 1; fi g++-4.1 -DHAVE_CONFIG_H -I. -I. -I../../../../src -DQT_CLEAN_NAMESPACE -DQT_GENUINE_STR -DQT_NO_STL -DQT3_SUPPORT -DQT_NO_TRANSLATION -I../../../../src -I../../../../src/frontends -I../../../../src/frontends/controllers -I../../../../src/frontends/qt4 -I../../../../src/frontends/qt4 -I/usr/include/qt4 -I/usr/include/qt4/Qt -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/Qt3Support -I../../../../boost -Wextra -Wall -I/usr/X11R6/include -g -O2 -MT QDocumentDialog_moc.lo -MD -MP -MF .deps/QDocumentDialog_moc.Tpo -c QDocumentDialog_moc.C -o QDocumentDialog_moc.o
../QDocumentDialog.h:95: error: 'BiblioUi' is not a member of 'Ui'
../QDocumentDialog.h:95: error: 'BiblioUi' is not a member of 'Ui'
../QDocumentDialog.h:95: error: template argument 1 is invalid
make[8]: *** [QDocumentDialog_moc.lo] Error 1
make[8]: Leaving directory `/usr/src/lyx-devel/src/frontends/qt4/moc'
make[7]: *** [all] Error 2

I compiled a somewhat older version with qt3 and g++-4.1
without problem.
This error is the same both with g++ 4.1, and g++ 4.0.3. (I expect
g++ 4.0.3 will fail at the link stage due to boos/g++ incompatibilyty though.)

Helge Hafting


Helge Hafting

Reply via email to