Abdelrazak Younes a écrit :
Abdelrazak Younes a écrit :
Bo Peng a écrit :
Just grab the package from gnuwin32

Thanks I will try that. There are so many options.

I am trying the cygwin route, when I install the basic cygwin system,
zlib.h and zlib.a are in place. Can I use them directly?

Well, yes and no. If you use them you will end-up with an executable that will depend on cygwin. So it is better to use the mingw version and link to it dynamically with the gnuwin32 package.

By the way, I have just noticed that spelling was not functional with my method. This is because, contrarily to what I said before, g++ doesn't recognize cygwin path like /cygdrive/d/, you need to use d:/ style. So passing cygwin dependent path to --with-extra-prefix or -with-extra-inc won't be useful to g++. And passing "d:/" won't work because ':' is a delimiter...
So you have to set the compiler preprocessor flag manually.

But passing cygwin style path to --with-extra-lib will work so you can use --with-extra-lib="/cygdrive/d/mingw/lib:/cygdrive/d/program/Aspell-0.60.4/lib"

Hum, no, even that won't work. So we have to set LDFLAGS manually also:
export CPPFLAGS="-Id:/program/Aspell-0.60.4/include"
export LDFLAGS="-Ld:/program/Aspell-0.60.4/lib"

./configure --with-included-gettext --with-packaging=windows --prefix='d:/program/lyx-svn' --without-x --with-aspell --with-version-suffix=-svn --with-frontend=qt4 --disable-maintainer-mode --disable-debug --enable-optimization=-O3 --disable-pch --disable-stdlib-debug --enable-concept-checks --with-qt4-dir='d:/program/Qt/4.1'

Reply via email to