[Gdal-dev] cross compile problems

Alessandro Amici alexamici at tiscali.it
Fri Sep 5 18:53:35 EDT 2003


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
no"

- i get the following error close to the ld -shared test as well:
"checking for Xerces C++... disabled
conftest2.o: file not recognized: File format not recognized
collect2: ld returned 1 exit status
checking for i586-mingw32msvc-g++ -shared ... no(2)
checking for ld -shared ... no"

- the postgresql check wrongly detected the pg_config program that i have on 
the build system (but i don't have it in the host environment)

- similarly for the python makefiles

cheers,
alessandro




More information about the Gdal-dev mailing list