ima-evm-util工具编译

本文档详细记录了解决Linux ima-evm-utils在arm-linux-gnueabihf平台上的交叉编译问题,包括aclocal、autoconf、automake等步骤,以及遇到的libkeyutils和openssl头文件缺失的错误。通过下载源码、修改Makefile和添加库链接,最终成功编译。
摘要由CSDN通过智能技术生成

1.下载地址:https://sourceforge.net/p/linux-ima/ima-evm-utils/ci/master/tree/
2.解压
3.编译:

1.  执行aclocal,产生aclocal.m4文件
	aclocal
2. 执行autoconf,生成configure文件
	autoconf
3. 执行automake命令,产生Makefile.in
	automake --add-missing
4. 执行configure命令,生成Makefile文件
	./configure --host=arm-linux-gnueabihf  // --host= configure参数
											// arm-linux-gnueabihf(程序运行的主机,工具链)
5. make

解决报错一:config.status: error: cannot find input file: `Makefile.in’

configure: WARNING: xmlcatalog not found, cannot search for manpages/docbook.xsl
configure: WARNING: trying a default path for manpages/docbook.xsl
configure: WARNING: manpages/docbook.xsl not found, generating doc will be skipped
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: error: cannot find input file: `Makefile.in'
1.再次执行
~/work/ima-evm-utils-1.3.2$ aclocal
~/work/ima-evm-utils-1.3.2$ automake --add-missing
2.报错:configure.ac:18: error: required file './ltmain.sh' not found
3.解决报错:libtoolize --automake --copy --debug --force
4.再次执行
~/work/ima-evm-utils-1.3.2$ automake --add-missing
configure.ac:10: installing './compile'
configure.ac:5: installing './missing'
src/Makefile.am: installing './depcomp'
5.重新执行:./configure --host=arm-linux-gnueabihf
			.
			.
			.
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating tests/Makefile
config.status: creating packaging/ima-evm-utils.spec
config.status: creating config
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值