>>>>> "Anand" == Anand Rangarajan <[EMAIL PROTECTED]> writes:
Anand> Digging through google, I found the threaded discussion at Anand> http://www.mail-archive.com/lyx-users@lists.lyx.org/msg42138.html Anand> very useful since it addressed the same bug. The remedy called Anand> for adding -nounload to UICFLAGS in Anand> src/frontends/qt2/ui/Makefile.in and in Anand> src/frontends/qt2/ui/Makefile.am It appears that KDE autoconf code always uses -nounload when uic supports it. This flag appears to avoid unloading qt designer plugins when exiting uic. The patch below does the same, albeit in a simpler way. Lars, OK? JMarc
Index: config/ChangeLog =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/config/ChangeLog,v retrieving revision 1.177 diff -u -p -r1.177 ChangeLog --- config/ChangeLog 23 Dec 2005 18:16:18 -0000 1.177 +++ config/ChangeLog 27 Dec 2005 15:48:02 -0000 @@ -1,10 +1,15 @@ +2005-12-27 Jean-Marc Lasgouttes <[EMAIL PROTECTED]> + + * qt.m4: use -nounload with uic if supported (uic can dump core + otherwise). + 2005-12-23 Lars Gullik Bjonnes <[EMAIL PROTECTED]> - * common.am (AUTOMAKE_OPTIONS): deleted, we now setupt am args + * common.am (AUTOMAKE_OPTIONS): deleted, we now setup am args from configure.ac * lyxinclude.m4: use AC_PACKAGE_VERSION instead of VERSION, use - AC_PROGLIB_TOOL instead of AM_PROG_LIBTOOL + AC_PROG_LIBTOOL instead of AM_PROG_LIBTOOL 2005-10-12 Jean-Marc Lasgouttes <[EMAIL PROTECTED]> Index: config/qt.m4 =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/config/qt.m4,v retrieving revision 1.15 diff -u -p -r1.15 qt.m4 --- config/qt.m4 17 Jul 2005 23:40:08 -0000 1.15 +++ config/qt.m4 27 Dec 2005 15:48:02 -0000 @@ -49,6 +49,13 @@ AC_DEFUN([QT_FIND_UIC], if test -z "$ac_uic" -a "$FATAL" = 1; then AC_MSG_ERROR([uic binary not found in \$PATH or $qt_cv_dir/bin !]) fi + AC_MSG_CHECKING([whether uic supports -nounload]) + if $ac_uic --help 2>&1 | grep nounload >/dev/null ; then + AC_MSG_RESULT([yes]) + ac_uic="$ac_uic -nounload" + else + AC_MSG_RESULT([no]) + fi ]) dnl Find the right moc in path/qt_cv_dir