libxml2交叉编译问题及解决办法
libxml2安裝中出現的錯誤:cannot remove `libtoolT': No such file or directory解決方法:
修改configure文件
$ vim configure刪除這一行: $RM "$cfgfile"
重新再運行 $ ./configure
# ./configure --host=arm-linux --build=i386-linux --target=arm --prefix=/usr/local/arm/libxml_arm CC=/usr/local/arm/4.1.1/bin/arm-9tdmi-linux-gnu-gcc --without-zlib
注:--without-zlib選項很重要,如果不加此選項,make的時候會提示如下錯誤:
./.libs/libxml2.so: undefined reference to `gzopen'
./.libs/libxml2.so: undefined reference to `gzclose'
./.libs/libxml2.so: undefined reference to `deflate'
./.libs/libxml2.so: undefined reference to `gzrewind'
./.libs/libxml2.so: undefined reference to `gzwrite'
./.libs/libxml2.so: undefined reference to `crc32'
./.libs/libxml2.so: undefined reference to `deflateEnd'
./.libs/libxml2.so: undefined reference to `gzdopen'
./.libs/libxml2.so: undefined reference to `deflateInit2_'
./.libs/libxml2.so: undefined reference to `gzread' collect2: ld returned 1 exit status
總結
以上是生活随笔為你收集整理的libxml2交叉编译问题及解决办法的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 上证指数2800算低吗?不同时期表现不同
- 下一篇: 现在买1万块钱国债,三年利息多少?