首页 > 系统 > Linux > 正文

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

2024-06-28 13:23:01
字体:
来源:转载
供稿:网友
linux下编译LTIB时找不到zlib的解决办法

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

错误信息如下:

=============================

chenke@ubuntu:~/imx6/L3.0.35_4.1.0_130816_source/source/ltib$ ./ltib

ltib cannot be run because one or more of the host packages needed to run itare either missing or out of date or not in ltib's standard path. Pleaseinstall/upgrade these packages on your host. If you have your own utilitiesin 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 2 13:54:43 2014Ended: Tue Dec 2 13:54:49 2014Elapsed: 6 seconds

Build Failed

Exiting on error or interruptchenke@ubuntu:~/imx6/L3.0.35_4.1.0_130816_source/source/ltib$

=============================

问题原因:在用ubuntu12.04编译LTIB时候,需要安装脚本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

脚本下载:patch-ltib-ubuntu12.04.sh

官方文档:patch-ltib-ubuntu12.04.sh

编译过程遇到其他问题可参考以下方法:

1.ubuntu 12.04 LTIB zlib error code issue

2.ubuntu12.04上ltib编译问题

特别注意:

在创建符号链接时,网上有些给出的Linux下是命令为:

cd /usr/include/sudo ln -s i386-linux-gun/sys sys上面的目录名称是错误的,i386-linux-gun应该改为i386-linux-gnu,完整命令如下:cd /usr/include/sudo ln -s i386-linux-gnu/sys sys最后编译成功界面:
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表