• 8957阅读
  • 1回复

【提问】求助,为QT编译libjpeg库出错 [复制链接]

上一主题 下一主题
离线denixleen
 

只看楼主 倒序阅读 楼主  发表于: 2005-11-02
root@denixleen libjpeg]# CC=mips-linux-gcc ./configure --enable-static --enable-shared
checking for gcc... mips-linux-gcc
checking whether the C compiler (mips-linux-gcc ) works... yes
checking whether the C compiler (mips-linux-gcc ) is a cross-compiler... yes
checking whether we are using GNU C... yes
checking how to run the C preprocessor... mips-linux-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

请问,应该怎么specify host?
and i do it: ./config.guess
get the result: i686-pc-linux-gnu
then i make it: CC=mips-linux-gcc ./configure --host=i686-pc-linux-gnu --enable-static --enable-shared
still get errors like this:

checking for gcc... mips-linux-gcc
checking whether the C compiler (mips-linux-gcc ) works... yes
checking whether the C compiler (mips-linux-gcc ) is a cross-compiler... yes
checking whether we are using GNU C... yes
checking how to run the C preprocessor... mips-linux-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


该怎么办呢?
[ 此贴被fanyu在2005-11-02 15:28重新编辑 ]
离线cys1357
只看该作者 1楼 发表于: 2006-01-16
我没试过,所以只能给些建议,你试试看configure有没有什么指定host的选项,或者修改configure文件中line 848附近的脚本,把判断host类型的几句注释掉,这几句的后面肯定有些判断分支,把判断去掉,改为你自己指定host的实际类型.如果你只是用到而不需要修改jpeg库的话,可以简单的到网上下一个编译好的两进制文件,
快速回复
限100 字节
 
上一个 下一个