Linux下编译LTIB时找不到zlib的解决办法

来源:互联网 发布:网络公关什么意思 编辑:程序博客网 时间:2024/06/05 19:38

一、问题一
最近在使用基于ARM Cortex-A9内核的飞思卡尔i.MX6Q四核处理器开发一款产品,在ubuntu 12.04上编译LTIB时遇到了找不到zlib的问题(在此之前已经安装了必须的各种库文件)。

错误信息如下:

ltib cannot be run because one or more of the host packages needed to run it
are either missing or out of date or not in ltib’s standard path. Please
install/upgrade these packages on your host. If you have your own utilities
in non-standard paths, please add an entry into the .ltibrc file for example:

%path_std
/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/my/own/exes

Package Minimum ver Installed info
——- ———– —————
zlib 0 not installed

Died at ./ltib line 1409.
traceback:
main::host_checks:1409
main:554

Started: Tue Dec 20 16:24:21 2016
Ended: Tue Dec 20 16:24:21 2016
Elapsed: 0 seconds

Build Failed

Exiting on error or interrupt

问题原因:在用ubuntu12.04编译LTIB时候,需要安装脚本patch-ltib-ubuntu12.04.sh。

二、问题二

在网站https://community.nxp.com/docs/DOC-93455下载patch-ltib-ubuntu12.04.sh文件。

Script which patches the ltib folder on Ubuntu 12.04.

Steps:
cp patch-ltib-ubuntu12.04.sh your ltib folder
cd your ltib folder
chmod +x patch-ltib-ubuntu12.04.sh
./patch-ltib-ubuntu12.04.sh

最后一步执行脚本时出现错误:

正在解析主机 community.freescale.com (community.freescale.com)… 192.88.156.33
正在连接 community.freescale.com (community.freescale.com)|192.88.156.33|:443… 已连接。
错误: 没有匹配的证书主体别名 (Subject Alternative Name)。
请求的主机名为 “community.freescale.com”。
要以不安全的方式连接至 community.freescale.com,使用“–no-check-certificate”。

解决:打开脚本patch-ltib-ubuntu12.04.sh,在wget -O ubuntu-ltib-patch.tgz https://community.freescale.com/servlet/JiveServlet/downloadBody/93454-102-3-2834/ubuntu-ltib-patch.tgz后面添加–no-check-certificate即可。

0 0