交叉编译jpeg库的问题,请大家指点

大漠不死鸟 2008-01-31 10:59:49
我下载的软件包是:jpegsrc.v6b.tar.tar
解压后如下配置:
./configure --prefix=/dvr/dvs7016/code/ui/gui/guilib --host=arm-linux CC=arm_920t_le-gcc --enable-shared

然后make,

报错:
./libtool --mode=compile arm_920t_le-gcc -O2 -I. -c ./jcapimin.c
make: ./libtool: Command not found

不知道是哪里出了问题。。。。。。。。。。。。。。。。。。。。。

./configure是的打印信息如下:
bash-2.05b# ./configure --prefix=/dvr/dvs7016/code/ui/gui/guilib --host=arm-linux CC=arm_920t_le-gcc --enable-shared
checking for gcc... arm_920t_le-gcc
checking whether the C compiler (arm_920t_le-gcc ) works... yes
checking whether the C compiler (arm_920t_le-gcc ) is a cross-compiler... yes
checking whether we are using GNU C... yes
checking how to run the C preprocessor... arm_920t_le-gcc -E
checking for function prototypes... yes
checking for stddef.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for size_t... yes
checking for type unsigned char... yes
checking for type unsigned short... yes
checking for type void... yes
checking for working const... yes
checking for inline... __inline__
checking for broken incomplete types... ok
checking for short external names... ok
checking to see if char is signed... Assuming that char is signed on target machine.
If it is unsigned, this will be a little bit inefficient.
checking to see if right shift is signed... Assuming that right shift is signed on target machine.
checking to see if fopen accepts b spec... Assuming that it does.
checking for a BSD compatible install... /usr/bin/install -c
checking for ranlib... ranlib
checking host system type... ./config.guess: line 618: ./dummy: cannot execute binary file
./config.guess: line 848: ./dummy: cannot execute binary file
ltconfig: cannot guess host type; you must specify one
Try `ltconfig --help' for more information.
checking libjpeg version number... 62
creating ./config.status
creating Makefile
creating jconfig.h
jconfig.h is unchanged
bash-2.05b#
...全文
2770 11 打赏 收藏 转发到动态 举报
写回复
用AI写文章
11 条回复
切换为时间正序
请发表友善的回复…
发表回复
hhfehfu 2011-01-26
  • 打赏
  • 举报
回复
ddd
guofeipemg 2010-01-01
  • 打赏
  • 举报
回复
我也遇到这个问题 楼主你后来是怎么做出来的 谢谢。。。 不胜感激中
guofeipemg 2010-01-01
  • 打赏
  • 举报
回复
恶风
ywjtssln 2009-09-12
  • 打赏
  • 举报
回复
顶!学习中~
adong629 2009-09-10
  • 打赏
  • 举报
回复
我也是碰到这样的问题 研究
大漠不死鸟 2008-02-19
  • 打赏
  • 举报
回复

问题搞定, 谢谢各位,散分
ydlchina 2008-02-01
  • 打赏
  • 举报
回复
up
大漠不死鸟 2008-02-01
  • 打赏
  • 举报
回复
谢谢两位,已经编译通过了,就等板子调好看一下能否显示了
x86 2008-01-31
  • 打赏
  • 举报
回复
libtool是一个包,你看看有没有安装:
rpm -qa|grep libtool

看看是什么版本,如果是比较早的1.3版本,会用到ltconfig,可能会有兼容性问题。

以下转贴,可以参考一下:

在RHEL 4 64 位下编译jpeg-6b时候报以下错误:

make: ./libtool: Command not found
make: *** [jcapimin.lo] Error 127

错误分析:由于libtool版本过低导致的,重新下载新版本的libtool以默认方式安装,执行以下命令:

./configure
make
make install

然后进入jpeg-6b的源码目录,然后执行以下步骤,切记!

cp /usr/share/libtool/config.sub .
cp /usr/share/libtool/config.guess .
./configure --enable-shared --enable-static
make
mkdir -p /usr/local/man/man1
make install
大漠不死鸟 2008-01-31
  • 打赏
  • 举报
回复
libtool 是在./configure是生成的文件,在redhat9上可以生成,但是交叉编译是就不能生成,不知道为什么
  • 打赏
  • 举报
回复
你没libtool这个 工具

23,121

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 应用程序开发区
社区管理员
  • 应用程序开发区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧