Hello,

I have tried to configure with:

configure --with-frontend=qt4 --with-qt4-dir='d:/program/Qt/4.1.0' --with-qt4-libs='d:/program/Qt/4.1.0/lib' --with-qt4-includes='d:/program/Qt/4.1.0/include'

I have tried also with '/d/program/...' style but it failed to find the Qt4 library the same way:

checking for moc... /d/program/Qt/4.1.0//bin/moc
checking for uic... /d/program/Qt/4.1.0//bin/uic
checking for Qt 4 library name... failed

I am not versed in m4 language so I failed to understand the macro. Please help! Maybe it's just a bogus message because the ld flag seems correct.

I launched make in src/frontend/qt4 nonetheless, the compilation stopped because it could not find <QObject>, indeed the include path "Qt/4.1.0/include/QtCore" is missing in the following:

g++ -DHAVE_CONFIG_H -I. -I. -I../../../../src -DQT_DLL -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 -Id:/program/Qt/4.1.0/include -Id:/program/Qt/4.1.0/include/Qt -Id:/program/Qt/4.1.0/include/QtGui -Id:/program/Qt/4.1.0/include/Qt3Support -I../../../../boost -I/d/program/Aspell-0.60.4/include -fno-exceptions -Os -mms-bitfields -MT QBibitemDialog_moc.lo -MD -MP -MF .deps/QBibitemDialog_moc.Tpo -c QBibitemDialog_moc.C -o QBibitemDialog_moc.o
In file included from ../QBibitem.h:15,
                 from ../QBibitemDialog.h:21,
                 from QBibitemDialog_moc.C:10:
../QDialogView.h:21:19: QObject: No such file or directory

I tried to attach my config.log but the mail didn't reach lyx-devel, 320k is apparently too big for gmane.

Anyway, I don't have access to svn right now (stupid firewall) so I can't make a real diff, but this pseudo patch will fix the compilation issue:

config/qt.m4:381
-               qt4_cv_libname="$qt4_cv_libname -lQtGui -lQt3Support"
+               qt4_cv_libname="$qt4_cv_libname -lQtCore -lQtGui -lQt3Support"

config/qt.m4:450
-               for i in Qt QtGui Qt3Support; do
+               for i in Qt QtCore QtGui Qt3Support; do

Could you apply this fix to svn Lars please?

Thanks in advance,
Abdel.


Reply via email to