|
搞过移植的大牛帮下忙
我用的 Ununtu10.04,交叉编译工具:arm-none-linux-gnueabi-gcc-4.3.3
下载了gettext-0.18.2.
想用交叉编译工具进行编译(gcc已经编译通过了)。设置环境变量:
./configure --prefix=/opt/gettext_install CC=arm-none-linux-gnueabi-gcc-4.3.3
可是运行时说:
checking for suffix of executables...
checking whether we are cross compiling... configure: error: in `/home/ma/GTK2.0/gettext-net/gettext-0.18.2/gettext-runtime':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details
configure: error: ./configure failed for gettext-runtime
这是怎么回事呢?上面说“If you meant to cross compile, use `--host'.”
是不是要加参数 --host? --host要设为什么?我是用TQ2440的板子,--host=arm 还是 --host=arm-linux
请大牛给与指点。
|
|