Ok, I'm feeling pretty proud of myself. I've compiled  and linked lyx with 
the kde frontend. This has meant compiling the kde-1.1.2 libraries with DEC 
cxx; straightforward, but tedious with all those "using std::xxx" and extern 
"C" calls I've come to know and love ;-)

Incidentally, Jean-Marc, if you are interested but don't want to go through 
the pain, I'll happily ftp the qt/kde libs.

When it came to configuring/compiling/linking lyx, again all went fairly 
smoothly, but there are some bugs in the configure script which could be 
removed. 

The script with which I configured lyx is at the bottom of this letter. 
You'll see that I specify explicitly where to find the cxx-compiled qt and 
kde libs and header files. I think that configure should respect these. I 
have a working version, compiled with gcc and retrieved from the kde ftp 
site, of qt/kde installed on my machine in /usr/local/qt and /usr/local/kde 
that I didn't want (couldn't) use. To ensure this was so, I had to hack the 
configure script. Diff file is attached.

Finally, the src/Makefile defines the qt and kdelibraries as:
        -lqt -lkdecore
This results in lots of "can't find symbol" errors. On the DEC the order of 
these library declarations is important. They should be
        -lkdecore -lqt

Hope that these comments are of some use.
Angus

#!/bin/sh
 
QTDIR=/usr/users/aleem/OTHERS_CODE/qt-1.44
export QTDIR
 
KDEDIR=/usr/users/aleem/OTHERS_CODE/kde-1.1.2
export KDEDIR
 
LYXDIR=/usr/users/aleem/OTHERS_CODE/lyx/devel
export LYXDIR
 
CC=deccc
export
 
CFLAGS=-O2
export CFLAGS
 
CXX=deccxx
export CXX
 
CXXFLAGS="-ptr $LYXDIR/lyx_cxx_repository -O2"
export CXXFLAGS
 
./configure --host=alphaev5-dec-osf4.0e --prefix=/usr/local 
--with-extra-inc=/usr/local/include --disable-nls --with-included-gettext 
--without-included-string --with-qt-dir=$QTDIR --with-kde-dir=$KDEDIR 
-with-frontend=kde
--- configure	Thu Sep 21 10:11:13 2000
+++ configure.hack	Thu Sep 21 09:53:43 2000
@@ -76,7 +76,7 @@
   --with-pspell-lib       where the libpspell.a is located"
 ac_help="$ac_help
   --with-x                use the X Window System"
-ac_default_prefix=${KDEDIR:-/usr/local/kde}
+ac_default_prefix=${KDEDIR}
 ac_help="$ac_help
   --enable-shared[=PKGS]  build shared libraries [default=yes]"
 ac_help="$ac_help
@@ -7164,7 +7164,7 @@
 
 if test -z ""; then
 
-kde_incdirs="/usr/lib/kde/include /usr/local/kde/include /usr/kde/include /usr/include/kde /usr/include /opt/kde/include $x_includes $qt_includes"
+kde_incdirs="/usr/lib/kde/include /usr/kde/include /usr/include/kde /usr/include /opt/kde/include $x_includes $qt_includes"
 test -n "$KDEDIR" && kde_incdirs="$KDEDIR/include $KDEDIR $kde_incdirs"
 kde_incdirs="$ac_kde_includes $kde_incdirs"
 
@@ -7188,7 +7188,7 @@
 So, check this please and use another prefix!" 1>&2; exit 1; }
 fi
 
-kde_libdirs="/usr/lib/kde/lib /usr/local/kde/lib /usr/kde/lib /usr/lib/kde /usr/lib /usr/X11R6/lib /opt/kde/lib /usr/X11R6/kde/lib"
+kde_libdirs="/usr/lib/kde/lib /usr/kde/lib /usr/lib/kde /usr/lib /usr/X11R6/lib /opt/kde/lib /usr/X11R6/kde/lib"
 test -n "$KDEDIR" && kde_libdirs="$KDEDIR/lib $KDEDIR $kde_libdirs"
 kde_libdirs="$ac_kde_libraries $kde_libdirs"
 

Reply via email to