- 论坛徽章:
- 0
|
交叉编译pkgconfig的时候出错了。
export PREFIX=/opt/dfbgtk
export ARCH=arm
export CROSS_COMPILE=/opt/arm-linux/bin/arm-linux-
export CC=${CROSS_COMPILE}gcc
./configure --prefix=$PREFIX --target=arm-linux --host=arm-linux
出错在:
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.
但是还是没有看出来怎么解决这个问题。
编译过的朋友,给指点一下吧。 |
|