Jean-Marc Lasgouttes a écrit :
"Abdelrazak" == Abdelrazak Younes <[EMAIL PROTECTED]> writes:

Abdelrazak> Before running "configure" yes, I have to, configure will
Abdelrazak> fail if CXXFLAGS is not set.

Could you show us what your build process looks like?
Jean-Marc Lasgouttes a écrit :
"Abdelrazak" == Abdelrazak Younes <[EMAIL PROTECTED]> writes:

Abdelrazak> Before running "configure" yes, I have to, configure will
Abdelrazak> fail if CXXFLAGS is not set.

Could you show us what your build process looks like?
Sure, here it is:

I had mingw installed first, then cygwin (the base package + automake + autoconf but no gcc. mingw is in cygwin path so this equivalent to using the -mnocygwin option AFAIK, only simpler to install and requiring less disk space. I don't use MSYS at all. Under cygwin console I do:
> ./autogen
> export QTDIR='d:/program/Qt/4.1.1'
> export CXXFLAGS="-Os -Id:/program/Aspell-0.60.4/include"
> export CFLAGS="-Os -Id:/program/Aspell-0.60.4/include"
> export LDFLAGS="-Ld:/program/Aspell-0.60.4/lib -laspell -lopengl32 -lglu32 -lkernel32 -luser32 -lgdi32 -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -luuid -limm32 -lwinmm -lwsock32 -lwinspool" > ./configure --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=3 --disable-pch --disable-stdlib-debug --disable-concept-checks --with-qt4-dir='d:/program/Qt/4.1.1'

I need to set CXXFLAGS for two reasons:
1) the configure step won't work with the --with-extra-prefix='d:/program/Aspell-0.60.4' option. It complain about 'd' not being a directory, it doesn't work either with a '/cygdrive/d' style path. So I have to specify it via CXXFLAGS 2) if not set, gcc will fail to compile anything, "configure" will complain about headers present but not usable.

I did not report these problems because my setup is somewhat special. My "config.log" is too big for being attached. I can still add the Wall option to CXXFLAGS, no problem for me.

Abdel.
JMarc



Reply via email to