Linux下編譯LTIB時找不到zlib的解決辦法

一、問題一
最近在使用基於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即可。

發佈了33 篇原創文章 · 獲贊 30 · 訪問量 5萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章