首先尝试交叉编译,查看./configure-h后,使用./configure --HOST=i386 编译
通过以上可看出编译仍为64位。
查阅博客,得知需首先安装安装依赖包m4、autoconf、automake、libtool和gettext,下载解压后尝试运行./autogen.sh 报出如下错误:
autoreconf: failed to run autopoint: No such file or directory
autoreconf: autopoint is needed because this package uses Gettext
可知此时本机已含有上述四个依赖,但是缺少autopoint,安装此依赖:
sudo apt-get install autopoint
再次运行./autogen.sh ,无错误,尝试编译,此时本机含有的交叉编译工具链为i586,如下:
./configure --host=i58