在kylin Linux aarch64上编译freexl-1.0.6

在kylin Linux aarch64上执行sh ./configure报错

checking build system type... ./config.guess: unable to guess system type

This script, last modified 2009-11-20, has failed to recognize
the operating system you are using. It is advised that you
download the most up to date version of the config scripts from

  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
and
  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD

If the version you run (./config.guess) is already up to date, please
send the following data and any information you think might be
pertinent to <config-patches@gnu.org> in order to provide the needed
information to handle your system.

config.guess timestamp = 2009-11-20

uname -m = aarch64
uname -r = 4.4.131-20210120.kylin.desktop-generic
uname -s = Linux
uname -v = #kylin-KylinOS SMP Wed Jan 20 02:58:45 UTC 2021

按以上提示,下载了最新版的config.guess和config.sub(timestamp=‘2025-07-10’)替换原文件后,sh ./configure执行成功
最后生成的Makefile中LIBS = 一行居然就是LIBS = ,不包括任何动态库。而make竟然顺利通过了,也生成了示例文件,示例文件也能执行成功。

export LD_LIBRARY_PATH=$LIBRARY_PATH:/shujv/par/freexl-1.0.6-main/src/.libs

:/shujv/par/freexl-1.0.6-main/examples$ .libs/test_xl /shujv/par/freexl-1.0.6-main/tests/testdata/simple2003.xls

Excel document: /shujv/par/freexl-1.0.6-main/tests/testdata/simple2003.xls
==========================================================
CFBF Version ........: 3
CFBF Sector size ....: 512
CFBF FAT entries ....: 128
BIFF Version ........: 8 [Excel 98/XP/2003/2007/2010]
BIFF Max record size : 8224
BIFF DateMode .......: 0 [day#1 = '1900-01-01']
BIFF Password/Crypted: NO, clear data
BIFF CodePage .......: UTF-16LE [Unicode]
BIFF Worksheets .....: 2
BIFF SST entries ....: 10
BIFF Formats ........: 0
BIFF eXtendedFormats : 26

Worksheets:
=========================================================
  0] simple2003_4
	ok, Worksheet successfully selected: currently active: 0
	4 Rows X 6 Columns

  1] sheet2
	ok, Worksheet successfully selected: currently active: 1
	4 Rows X 6 Columns

相应configure日志如下:

checking iconv.h usability... yes
checking iconv.h presence... yes
checking for iconv.h... yes
checking for library containing iconv... none required
checking for library containing locale_charset... no

看来有些系统是不需要iconv库的。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值