I'm trying to use the Qt4-package downloaded from Nokia.

There is one change to LyX config required to get it work.
JMarc, would that be ok with you?

I tested on Linux too, with pkg-config - no problem.

Stephan

Index: config/qt4.m4
===================================================================
--- config/qt4.m4       (Revision 35463)
+++ config/qt4.m4       (Arbeitskopie)
@@ -28,7 +28,7 @@
                AC_LANG_CPLUSPLUS
                SAVE_CXXFLAGS=$CXXFLAGS
                CXXFLAGS="$CXXFLAGS $QT4_INCLUDES $QT4_LDFLAGS"
-               for libname in -lQtCore -lQtCore4
+               for libname in -lQtCore -lQtCore4 '-framework QtCore'
                do
                        QT4_TRY_LINK($libname)
                        if test -n "$qt4_cv_libname"; then
@@ -38,7 +38,8 @@
                done
                qt4_cv_libname=
                for libname in '-lQtCore -lQtGui' \
-                              '-lQtCore4 -lQtGui4'
+                              '-lQtCore4 -lQtGui4' \
+                              '-framework QtCore -framework QtGui'
                do
                        QT4_TRY_LINK($libname)
                        if test -n "$qt4_cv_libname"; then

Reply via email to