QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2084|回复: 2

求助,为QT编译libjpeg库出错

[复制链接]
发表于 2005-11-2 14:42:05 | 显示全部楼层 |阅读模式
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?
 楼主| 发表于 2005-11-2 14:56:48 | 显示全部楼层
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


该怎么办呢?
回复

使用道具 举报

发表于 2005-11-3 01:40:57 | 显示全部楼层
什么linux发行版
qte需要libjpeg-devel和e2fsprogs-devel两个包
后面一个是需要里面的uuid
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-3 00:24 , Processed in 0.041174 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表