当前位置: 技术问答>linux和unix
交叉编译jpeg库的问题,请大家指点
来源: 互联网 发布时间:2016-05-10
本文导语: 我下载的软件包是: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: ...
我下载的软件包是: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#
解压后如下配置:
./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#
|
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
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
|
你没libtool这个 工具
|
up