Just for the fun of it I tried:

CC=/opt/mingw32/install/bin/i386-mingw32msvc-gcc ../lyx-devel/configure
--host=i386-mingw32msvc

(which hopefully means that I try to use my mingw32 to cross compile for
windows). 

I attach what I got. What is the meanong of:

1.

configure: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used.

2.

checking limits.h usability... no
checking limits.h presence... yes
configure: WARNING: limits.h: present but cannot be compiled
configure: WARNING: limits.h: check for missing prerequisite headers?
configure: WARNING: limits.h: proceeding with the preprocessor's result
checking for limits.h... yes

3. Do we need those functions in LyX at all:

checking for geteuid... no
checking for getgid... no
checking for getuid... no
checking for mempcpy... no
checking for munmap... no
checking for putenv... no
checking for setenv... no
checking for setlocale... no
checking for stpcpy... no
checking for strchr... no
checking for strcasecmp... no
checking for strdup... no
checking for strtoul... no
checking for tsearch... no
checking for __argz_count... no
checking for __argz_stringify... no
checking for __argz_next... no

4.

deleting cache /dev/null
rm: cannot unlink `/dev/null': Permission denied

(!)

I got Makefiles at the end (that's more than I expected in the beginning)
but 'make' produces:

make[1]: Entering directory `/usr/src/lyx/lyx-mingw/intl'
/opt/mingw32/install/bin/i386-mingw32msvc-gcc -c
-DLOCALEDIR=\"/usr/local/share/locale\"
-DLOCALE_ALIAS_PATH=\"/usr/local/share/locale\" -DLIBDIR=\"/usr/local/lib\"
-DHAVE_CONFIG_H -I../src -I. -I../../lyx-devel/intl  -g -O2
../../lyx-devel/intl/loadmsgcat.c
In file included from
/opt/mingw32/install/lib/gcc-lib/i386-mingw32msvc/2.95.2/include/limits.h:117,
                 from
/opt/mingw32/install/lib/gcc-lib/i386-mingw32msvc/2.95.2/include/syslimits.h:7,
                 from
/opt/mingw32/install/lib/gcc-lib/i386-mingw32msvc/2.95.2/include/limits.h:11,
                 from ../../lyx-devel/intl/gettext.h:23,
                 from ../../lyx-devel/intl/loadmsgcat.c:74:
/opt/mingw32/install/lib/gcc-lib/i386-mingw32msvc/2.95.2/../../../../i386-mingw32msvc/include/limits.h:38:
bits/xopen_lim.h: No such file or directory
make[1]: *** [loadmsgcat.o] Error 1
make[1]: Leaving directory `/usr/src/lyx/lyx-mingw/intl'
make: *** [all-recursive] Error 1

Any idea on how to proceed?

Should I copy  /usr/include/bits/xopen_lim.h  into the mingw installation?
What are these headers needed for?

Does this make sense at all?

Andre'

-- 
Those who desire to give up Freedom in order to gain Security,
will not have, nor do they deserve, either one. (T. Jefferson)

Reply via email to