Abdelrazak Younes wrote:

> 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'

You should not need the --with-qt4-libs and --with-qt4-includes switches.

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

The second part is correct (I am going to apply it), but the first is not.
$qt4_cv_libname is supposed to contain "-lQtCore" if the library was found.
Abdel, can you please attach the part of config.log that checks for the qt
library and fails?


Georg
Index: config/qt.m4
===================================================================
--- config/qt.m4	(Revision 13302)
+++ config/qt.m4	(Arbeitskopie)
@@ -447,7 +465,7 @@ AC_DEFUN([QT4_DO_IT_ALL],
 	QT4_LDFLAGS=
 	if test -n "$qt4_cv_includes"; then
 		QT4_INCLUDES="-I$qt4_cv_includes"
-		for i in Qt QtGui Qt3Support; do
+		for i in Qt QtCore QtGui Qt3Support; do
 			QT4_INCLUDES="$QT4_INCLUDES -I$qt4_cv_includes/$i"
 		done
 	fi
Index: config/ChangeLog
===================================================================
--- config/ChangeLog	(Revision 13302)
+++ config/ChangeLog	(Arbeitskopie)
@@ -1,3 +1,8 @@
+2006-03-06  Georg Baum  <[EMAIL PROTECTED]>
+
+	* lyxinclude.m4 (LYX_USE_PACKAGING): export program_suffix
+	* qt.m4 (add QtCore include directory)
+
 2006-03-06  Lars Gullik Bjønnes  <[EMAIL PROTECTED]>
 
 	* lyxinclude.m4: Turn exceptions on for gcc (read: don't turn them

Reply via email to