出错在:
checking for a BSD-compatible install... /usr/bin/install -c
checking for extra flags to get ANSI library prototypes... configure: error: cannot run test program while cross compiling
See `config.log' for more details.
configure: error: ./configure failed for glib-1.2.10
我网上搜索一下,有人也遇到过:
* Alexander Vasiliev <alexvasiljev at gmail.com> schrieb:
> The last lines were:
> "checking for a BSD-compatible install... /usr/bin/install -c
> checking for extra flags to get ANSI library prototypes... configure:
> error: cannot run test program while cross compiling
Very simple: *NEVER EVER* use AC_TRY_RUN.
It kills crosscompiling.
This is one of the most and worst mistakes on ac'ed packages.
In fact, *ANY* macro that expects the building system to be
equal the target system are *CRAP*.
I just had a quick look at 0.22 - the bundled glib has lot's
of AC_TRY_RUN's, so it's not crosscompile'able.