Re: 1.4.0pre2 on cygwin
Kayvan A. Sylvan <[EMAIL PROTECTED]> writes: > > On Sat, Oct 15, 2005 at 04:40:28PM +, Luis Rivera wrote: > > > > minires solved the problem. LyX now compiles happily on my brand new Cygwin > > installation... > > > > So, this far, I have compiled LyX on cygwin succesfully, both with-xforms > > and > > with-qt. > > Cool. This is with gcc-3.4.4? > I used cygwin, version 1.5.18-1, with gcc 3.4.4-1, and the qt3 3.3.4-2 bundled with cygwin. However, as I say in the other thread, I can can compile LyX succesfully, but it doesn't display any characters: just plain white squares. Perhaps there is nothing wrong with LyX, and the problem is the qt library, or there is some font display library for XWin on cygwin that I haven't loaded. I'll get a look at it tomorrow. Luis.
Re: 1.4.0pre2 on cygwin
Kayvan A. Sylvan <[EMAIL PROTECTED]> writes: > > On Sat, Oct 15, 2005 at 04:40:28PM +, Luis Rivera wrote: > > So, this far, I have compiled LyX on cygwin succesfully, both with-xforms > > and > > with-qt. > > Cool. This is with gcc-3.4.4? > > Hmmm... What's your QT version? How did you compile it? > Answers to all these questions in a brand new thread... Luis.
Re: 1.4.0pre2 on cygwin
On Sat, Oct 15, 2005 at 04:40:28PM +, Luis Rivera wrote: > > minires solved the problem. LyX now compiles happily on my brand new Cygwin > installation... > > So, this far, I have compiled LyX on cygwin succesfully, both with-xforms and > with-qt. Cool. This is with gcc-3.4.4? > However, the xforms frontend works fine, while the Qt version eats up all > character: I see only white squares. Hmmm... What's your QT version? How did you compile it? ---Kayvan -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92)
Re: 1.4.0pre2 on cygwin
Kayvan A. Sylvan <[EMAIL PROTECTED]> writes: > > > > 2) The qt-3 build needs you to use a linker script in the final ld phase. > > > > > > > Is it because there is a missing -lresolv library, or something else? My > > compiling chokes, right on trying to link the binary... > > No, this linker script nonesense is due to a problem with QT-3 on Cygwin > (see http://mail.kde.org/pipermail/kde-cygwin/2004-October/001848.html for > some related discussion). > Checked the link above, and doesn't seem to have anything to do with my (now) previous problem with Cygwin... > > I think you are missing some library. On my Cygwin, I have: > > $ ls -l /usr/lib/libresolv.a > lrwxrwxrwx 1 kayvan Users 25 Apr 27 15:31 /usr/lib/libresolv.a -> /usr/lib/libminires.dll.a > minires solved the problem. LyX now compiles happily on my brand new Cygwin installation... So, this far, I have compiled LyX on cygwin succesfully, both with-xforms and with-qt. However, the xforms frontend works fine, while the Qt version eats up all character: I see only white squares. But I think that deserves another thread... Cheers, Luis.
Re: 1.4.0pre2 on cygwin
On Fri, Oct 14, 2005 at 01:12:01AM +, Luis Rivera wrote: > > > > $ ls -l /usr/lib/libresolv.a > > lrwxrwxrwx 1 kayvan Users 25 Apr 27 15:31 /usr/lib/libresolv.a -> > /usr/lib/libminires.dll.a > > It comes from minires and minires-devel. ---Kayvan
Re: 1.4.0pre2 on cygwin
Kayvan A. Sylvan <[EMAIL PROTECTED]> writes: > > > > > ld cannot find -lresolv > > > > Perhaps I'm missing some other library from cygwin... > > > > I think you are missing some library. On my Cygwin, I have: > > $ ls -l /usr/lib/libresolv.a > lrwxrwxrwx 1 kayvan Users 25 Apr 27 15:31 /usr/lib/libresolv.a -> /usr/lib/libminires.dll.a > Sounds promising... Where does it come in? can you track it down in your local downloading repository? Luis
Re: 1.4.0pre2 on cygwin
Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: > > Luis Rivera <[EMAIL PROTECTED]> writes: > > | Lars Gullik Bjønnes ...> writes: > | > | > > | > Luis Rivera ...> writes: > | > > | > | Anyway, I went ahead and tried > | > | > | > | ./configure --with-frontend=xforms --with-extra-prefix=/usr/local > | > | --without-latex-config --disable-pch --disable-nls > | > | > | > > | > You can try with --with-included-gettext as well (instead of > | > --disable-nls) > | > > | > | I have to say that this one didn't work... > > You give way to little info... > I didn't mean to be mean! Sorry! Anyway, the problem was exactly as reported earlier (errno function undefined), so I went out and tried what Jean-Marc suggested (added #include right after #include in /src/messages.C, and the problem disappeared. That fixed it... Luis.
Re: 1.4.0pre2 on cygwin
On Thu, Oct 13, 2005 at 10:01:50PM +, Luis Rivera wrote: > Kayvan A. Sylvan <[EMAIL PROTECTED]> writes: > > > > > > > There are a couple of vagaries: > > > > 1) Any compiler more recent than gcc-3.3.3 seems to screw me up. Even > >if I recompile xforms and qt-3. > > > > I compiled with xforms with gcc 3.4.4, and save for the error at supporting > nls, > it went on fine... Yes. xforms with gcc-3.4.4 seems to work fine. QT does not. If you get it to work, I would be happy. > > 2) The qt-3 build needs you to use a linker script in the final ld phase. > > > > Is it because there is a missing -lresolv library, or something else? My > compiling chokes, right on trying to link the binary... No, this linker script nonesense is due to a problem with QT-3 on Cygwin (see http://mail.kde.org/pipermail/kde-cygwin/2004-October/001848.html for some related discussion). > > ld cannot find -lresolv > > Perhaps I'm missing some other library from cygwin... > I think you are missing some library. On my Cygwin, I have: $ ls -l /usr/lib/libresolv.a lrwxrwxrwx 1 kayvan Users 25 Apr 27 15:31 /usr/lib/libresolv.a -> /usr/lib/libminires.dll.a -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92)
Re: 1.4.0pre2 on cygwin
Luis Rivera wrote: >> There are a couple of vagaries: >> >> 1) Any compiler more recent than gcc-3.3.3 seems to screw me up. Even >>if I recompile xforms and qt-3. > I compiled with xforms with gcc 3.4.4, and save for the error at > supporting nls, it went on fine... > >> 2) The qt-3 build needs you to use a linker script in the final ld >> phase. > Is it because there is a missing -lresolv library, or something else? My > compiling chokes, right on trying to link the binary... > ld cannot find -lresolv > Perhaps I'm missing some other library from cygwin... Looks like. However, that's a separate problem; you'll see that Kayvan's script contains the magic: QT_LD_SCRIPT=/home/kayvan/src/qt-3/mkspecs/cygwin-g++/i386pe.x-no-rdata LDFLAGS="-L/usr/local/lib -Wl,--export-all-symbols \ -Wl,--enable-runtime-pseudo-reloc \ -Wl,--script,$QT_LD_SCRIPT" \ This is needed to actually launch the thing once you've managed to link it. Some weirdness to do with initialization of .dlls. -- Angus
Re: 1.4.0pre2 on cygwin
Kayvan A. Sylvan <[EMAIL PROTECTED]> writes: > > > There are a couple of vagaries: > > 1) Any compiler more recent than gcc-3.3.3 seems to screw me up. Even >if I recompile xforms and qt-3. > I compiled with xforms with gcc 3.4.4, and save for the error at supporting nls, it went on fine... > 2) The qt-3 build needs you to use a linker script in the final ld phase. > Is it because there is a missing -lresolv library, or something else? My compiling chokes, right on trying to link the binary... ld cannot find -lresolv Perhaps I'm missing some other library from cygwin... Cheers, Luis.
Re: 1.4.0pre2 on cygwin
Luis Rivera <[EMAIL PROTECTED]> writes: | Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: | | > | > Luis Rivera <[EMAIL PROTECTED]> writes: | > | > | Anyway, I went ahead and tried | > | | > | ./configure --with-frontend=xforms --with-extra-prefix=/usr/local | > | --without-latex-config --disable-pch --disable-nls | > | | > | > You can try with --with-included-gettext as well (instead of | > --disable-nls) | > | | I have to say that this one didn't work... You give way to little info... -- Lgb
Re: 1.4.0pre2 on cygwin
Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: > > Luis Rivera <[EMAIL PROTECTED]> writes: > > | Anyway, I went ahead and tried > | > | ./configure --with-frontend=xforms --with-extra-prefix=/usr/local > | --without-latex-config --disable-pch --disable-nls > | > > You can try with --with-included-gettext as well (instead of > --disable-nls) > I have to say that this one didn't work... Sorry, Luis.
Re: 1.4.0pre2 on cygwin
On Wed, Oct 12, 2005 at 09:50:53PM +, Luis Rivera wrote: > > Are you trying to compile for xforms or for qt? > > I did it with xforms. > > I'm trying with qt... > > Now I'll try --with-included-gettext (thanks to Lars!) > > > I do both all the time with LyX CVS. Maybe I can help you. > > Do you? On cygwin?! Yes, on cygwin. I have no trouble at all. There are a couple of vagaries: 1) Any compiler more recent than gcc-3.3.3 seems to screw me up. Even if I recompile xforms and qt-3. 2) The qt-3 build needs you to use a linker script in the final ld phase. I have attached my build script. I use this with the latest CVS lyx almost every day. My directories are set up like this: build_stage/ lyx/ <--- This is the CVS lyx directory qtbuild/ <--- Where the QT version is built build/ <--- for the xforms version build_lyx <--- The build script attached to this email. I do this: cd build_stage/qtbuild ../build-lyx all-qt And QT lyx is installed in /usr/local/bin cd ../build ../build_lyx all to install xforms lyx. You will probably have to change some paths in the script (it was a quick and dirty thing --- not really meant to be a generic build script). I hope you find it useful. ---Kayvan -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) #!/bin/sh LYXSRC=$LYXSRC # from env if [ "x"$LYXSRC = "x" ] then LYXSRC=../lyx if [ -z "$MKLYXDBG" ] then echo "No LYXSRC environment, assuming $LYXSRC" MKLYXDBG=1 export MKLYXDBG fi fi LYXBUILD=`pwd` QT_LD_SCRIPT=/home/kayvan/src/qt-3/mkspecs/cygwin-g++/i386pe.x-no-rdata usage() { echo "Usage: $0 [help|cvs|config|debug|config-qt|debug-qt|build|install]"; echo "You can also use \"all\" or \"all-qt\" for combined actions." exit 0; } while [ $# -ge 1 ] do arg=$1; shift; case $arg in all) $0 cvs config build install ;; all-qt) $0 cvs config-qt build install ;; help) usage ;; cvs) cd $LYXSRC; cvs update -dP 2>&1 | grep -v 'cvs server' ;; config) cd $LYXSRC; ./autogen.sh; cd $LYXBUILD $LYXSRC/configure --disable-debug --enable-optimization=-O2 \ --with-frontend=xforms \ --with-extra-lib=/usr/local/lib \ --with-extra-inc=/usr/local/include ;; debug) cd $LYXSRC; ./autogen.sh; cd $LYXBUILD $LYXSRC/configure --enable-debug --enable-optimization=-g \ --with-frontend=xforms \ --with-extra-lib=/usr/local/lib \ --with-extra-inc=/usr/local/include ;; config-qt) cd $LYXSRC; ./autogen.sh; cd $LYXBUILD LDFLAGS="-L/usr/local/lib -Wl,--export-all-symbols \ -Wl,--enable-runtime-pseudo-reloc \ -Wl,--script,$QT_LD_SCRIPT" \ $LYXSRC/configure --disable-debug --enable-optimization=-O2 \ --with-extra-lib=/usr/local/lib \ --with-extra-inc=/usr/local/include \ --with-frontend=qt --with-qt-dir=$QTDIR \ --with-qt-includes=$QTDIR/include --with-qt-libraries=$QTDIR/lib ;; debug-qt) cd $LYXSRC; ./autogen.sh; cd $LYXBUILD LDFLAGS="-L/usr/local/lib -Wl,--export-all-symbols \ -Wl,--enable-runtime-pseudo-reloc \ -Wl,--script,$QT_LD_SCRIPT" \ $LYXSRC/configure --enable-debug --enable-optimization=-g \ --with-extra-lib=/usr/local/lib \ --with-extra-inc=/usr/local/include \ --with-frontend=qt --with-qt-dir=$QTDIR \ --with-qt-includes=$QTDIR/include --with-qt-libraries=$QTDIR/lib ;; build) make ;; install) make install ;; *) usage ;; esac done
Re: 1.4.0pre2 on cygwin
Kayvan A. Sylvan <[EMAIL PROTECTED]> writes: > > On Wed, Oct 12, 2005 at 07:31:22PM +, Luis Rivera wrote: > > Jean-Marc Lasgouttes ...> writes: > > > > > > > > > "Luis" == Luis Rivera ...> writes: > > > > > > Luis> And then it failed almost at the end of compilation. I attach > > > Luis> config.log and error.log reporting the errors... > > > > > > Didn't you forget them? > > > > > > > Yep. I realized as soon as I clicked on `send'... > > I don't have the logs in front of me. > They're on the mailing archives... > Are you trying to compile for xforms or for qt? > I did it with xforms. I'm trying with qt... Now I'll try --with-included-gettext (thanks to Lars!) > I do both all the time with LyX CVS. Maybe I can help you. Do you? On cygwin?! Any help is welcome! Luis.
Re: 1.4.0pre2 on cygwin
> "Luis" == Luis Rivera <[EMAIL PROTECTED]> writes: Luis> Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: >> > "Luis" == Luis Rivera <[EMAIL PROTECTED]> writes: >> Luis> And then it failed almost at the end of compilation. I attach Luis> config.log and error.log reporting the errors... >> Didn't you forget them? >> Luis> Yep. I realized as soon as I clicked on `send'... Luis> They're on the lists now, but as binaries weird... Luis> Did you get them? Otherwise, I'll try again using .txt I got them, but then had to leave. From the brief look I had, it seems you should add #include at the beginning of src/message.C JMarc
Re: 1.4.0pre2 on cygwin
Luis Rivera <[EMAIL PROTECTED]> writes: | I assume it is my fault, since I don't know exactly how to install nls | support. However, I think ./configure should report it, to keep people | away from assuming nls will be working. | | Anyway, I went ahead and tried | | ./configure --with-frontend=xforms --with-extra-prefix=/usr/local | --without-latex-config --disable-pch --disable-nls | | ...and bingo! It compiled, installed, ran, imported/exported, and even | bindist! The problem: internationalization was removed. I don't mind | using the English GUI, but somebody would... You can try with --with-included-gettext as well (instead of --disable-nls) -- Lgb
Re: 1.4.0pre2 on cygwin
On Wed, Oct 12, 2005 at 07:31:22PM +, Luis Rivera wrote: > Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: > > > > > > "Luis" == Luis Rivera <[EMAIL PROTECTED]> writes: > > > > Luis> And then it failed almost at the end of compilation. I attach > > Luis> config.log and error.log reporting the errors... > > > > Didn't you forget them? > > > > Yep. I realized as soon as I clicked on `send'... I don't have the logs in front of me. Are you trying to compile for xforms or for qt? I do both all the time with LyX CVS. Maybe I can help you. ---Kayvan
Re: 1.4.0pre2 on cygwin
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: > > > "Luis" == Luis Rivera <[EMAIL PROTECTED]> writes: > > Luis> And then it failed almost at the end of compilation. I attach > Luis> config.log and error.log reporting the errors... > > Didn't you forget them? > Yep. I realized as soon as I clicked on `send'... They're on the lists now, but as binaries weird... Did you get them? Otherwise, I'll try again using .txt Luis.
Re: 1.4.0pre2 on cygwin
> "Luis" == Luis Rivera <[EMAIL PROTECTED]> writes: Luis> And then it failed almost at the end of compilation. I attach Luis> config.log and error.log reporting the errors... Didn't you forget them? JMarc
1.4.0pre2 on cygwin
Hello, I want to report that LyX 1.4.0pre2 compiles and runs succesfully on cygwin+xwin+MiKTeX... However, there seems to be a problem with pch and nls. A first shot at it, running ./configure --with-frontend=xforms --with-extra-prefix=/usr/local --without-latex-config reported something missing with precompiled headers. So I removed it and tried ./configure --with-frontend=xforms --with-extra-prefix=/usr/local --without-latex-config --disable-pch And then it failed almost at the end of compilation. I attach config.log and error.log reporting the errors... I assume it is my fault, since I don't know exactly how to install nls support. However, I think ./configure should report it, to keep people away from assuming nls will be working. Anyway, I went ahead and tried ./configure --with-frontend=xforms --with-extra-prefix=/usr/local --without-latex-config --disable-pch --disable-nls ...and bingo! It compiled, installed, ran, imported/exported, and even bindist! The problem: internationalization was removed. I don't mind using the English GUI, but somebody would... End of report. Cheers, Luis. === Please avoid sending me Word, Excel, or PowerPoint attachments. Word, Excel, and PowerPoint files are unreliable, unmaintainable, and unsafe. Try some open format instead. See http://en.wikipedia.org/wiki/open_format J.L.Rivera __ Yahoo! Music Unlimited Access over 1 million songs. Try it free. http://music.yahoo.com/unlimited/