[Gdal-dev] cross compile problems

Frank Warmerdam warmerdam at pobox.com
Mon Sep 8 11:01:04 EDT 2003

Alessandro Amici wrote:
> Frank,
>>during my libtool work i happened to try to cross-compile from linux for
>>mingw32 and i hit a couple of problems in the aclocal.m4 macros.
>>i don't know if you are interested in supporting cross-compiles, if you do,
>>then you have to address at least the following  issues:
>>- all tests that unconditionally try to _run_ a sample program fail,
>>i.e. the byte-order test breaks on cross-compiles:
>>"checking whether byte ordering is bigendian... ./configure: line 1:
>>./conftest: cannot execute binary file
> any argument against the standard autoconf test for bigendianess?
> diff -u -r1.66 configure.in
> --- configure.in	7 Sep 2003 19:31:36 -0000	1.66
> +++ configure.in	7 Sep 2003 19:33:37 -0000
> @@ -24,7 +24,7 @@
>  AC_CHECK_HEADERS(fcntl.h unistd.h dbmalloc.h dlfcn.h stdint.h limits.h)
>  dnl Checks for library functions.
> it is advertized as working with cross compiles too.


I ran into situations where AC_C_BIGENDIAN did not work properly, and so I
implemented MY_TEST_BIGENDIAN.  My recollection i that AC_C_BIGENDIAN depended
on some include file which wasn't available on some particularly backward
system or something like that.  However, I am willing to go back to
AC_C_BIGENDIAN for now, and if the problem crops up again we will try to
come up with a solution that fallback to the MY_TEST_BIGENDIAN method only
if AC_C_BIGENDIAN can't figure out things.

Best regards,

I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent

More information about the Gdal-dev mailing list