On Mon, May 01, 2006 at 11:25:54AM -0500, Bo Peng wrote: > > That won't work as they don't take into account older releases, so the > > package must work with what is current. I think that we have to wait > > a new release of the cygwin dll which should be imminent for what I > > read in their mailing list. > > I know. But as you may have long noticed, I am not a patient man. I > would like to get the configuration part done so we can have less work > to do after the new cygwin is released. (Anyway, I guess the > automake/autoconf part can be done with the broken cygwin, right?)
Yes, and I can also test it with my home grown qt3. Why don't you try to build qt3 following http://wiki.lyx.org/LyX/LyXOnCygwin ? It is very straightforward: you have only to configure for X11 simply replacing step 3 in the Qt section as I explained in a previous post and using the attached script instead of that in the wiki. Also replace "qt-cygwin" with "qt-x11" in step 4. That's all. Then, what you do with this qt3 you simply redo it with the cygwin qt3. So, no need to downgrade cygwin. Only, I am going to be very busy this week, but usually I don't sleep too much ;-) -- Enrico
#! /bin/sh # Configuration of the LyX sources suitable for compilation # of a X11 build using the cygwin compiler. # author Angus Leeming, modified by Enrico Forestieri Error () { test $# -gt 0 && { echo $* >&2 echo >&2 } echo "Expecting \"`basename $0` dir [buildtype]\"" >&2 echo "where dir is 'devel','13x', etc. and buildtype is 'debug' or 'release'" >&2 exit 1 } test \( $# -eq 1 \) -o \( $# -eq 2 \) || Error test -d "$1" || Error "Directory '$1' does not exist." SRCDIR=$1 test -s "${SRCDIR}/configure" || \ Error "'${SRCDIR}/configure' does not exist. Run './autogen.sh' in '${SRCDIR}'." test $# -eq 2 && BUILDTYPE=$2 || BUILDTYPE=release test \( "$BUILDTYPE" = "debug" \) -o \( "$BUILDTYPE" = "release" \) || \ Error "Unrecognized debugopt: $BUILDTYPE" echo "Configuring ${SRCDIR} for a ${BUILDTYPE} build" FRONTEND=qt QTDIR=/usr/local/qt-x11 FRONTEND_FLAGS="--with-qt-dir='${QTDIR}'" QT_LD_SCRIPT=/usr/local/qt-x11/lib/i386pe.x-no-rdata BUILDDIR=${SRCDIR}/build-x11 test "${BUILDDIR}" != "${SRCDIR}" -a ! -d "${BUILDDIR}" && { mkdir "${BUILDDIR}" || Error "Unable to create build dir, ${BUILDDIR}." } test "$BUILDTYPE" = "release" && { LDFLAGS="-Wl,--enable-runtime-pseudo-reloc -Wl,--script,$QT_LD_SCRIPT -Wl,-s" OPTFLAG="-O2" } || { LDFLAGS="-Wl,--enable-runtime-pseudo-reloc -Wl,--script,$QT_LD_SCRIPT" OPTFLAG="-g" } CONFIGURE="../configure-x11" QT_EXTRALIBS="-L\/usr\/X11R6\/lib -lXrender -lXrandr -lXcursor -lXft -lfreetype -lfontconfig -lXext -lX11" sed " # Let's speed up recognition of the single-threaded Qt library /for libname in -lqt-mt/s/\(-lqt-mt\)\(.*\)\(-lqt\);/\3\2\1;/ # Omit -Wl,--export-all-symbols in LDFLAGS /LDFLAGS=\"\$LDFLAGS \$WIN32_LD_EXPORT_ALL_SYMBOLS\"/s/LDFLAGS/true\t\#LDFLAGS/ # Add required libraries to the tests for the Qt library /LIBS=\"\$LIBS \$libname\"/s/libname/libname $QT_EXTRALIBS/ /LIBS=\"\$LIBS \$QT_LIB\"/s/QT_LIB/QT_LIB $QT_EXTRALIBS/" \ ${SRCDIR}/configure > ${SRCDIR}/configure-x11 chmod u+x ${SRCDIR}/configure-x11 # Set up configure itself #======================== CONFIGURE="${CONFIGURE} --disable-maintainer-mode --disable-assertions \ --disable-debug --disable-stdlib-debug --enable-optimization='${OPTFLAG}' \ --disable-pch --disable-concept-checks \ --with-included-gettext --with-aspell \ --with-frontend='${FRONTEND}' ${FRONTEND_FLAGS} \ --with-extra-lib=/usr/local/lib \ --prefix=/usr/local \ LDFLAGS='${LDFLAGS}'" echo "Build directory is ${BUILDDIR}" echo "${CONFIGURE}" cd "${BUILDDIR}" eval "${CONFIGURE}" # The end