1、用交叉编译器编译时,找不到jconfig.h头文件:
In file included from libjpeg/jpeg-9a/jaricom.c:17:0:
libjpeg/jpeg-9a/jinclude.h:20:55: fatal error: jconfig.h: No such file or directory
compilation terminated.
make: *** [libjpeg/jpeg-9a/jaricom.o] 错误 1
2、查看代码文件,在jconfig.txt中,描述如下:
* The actual configuration options for a particular installation are stored
* in jconfig.h. On many machines, jconfig.h can be generated automatically
* or copied from one of the "canned" jconfig files that we supply. But if
* you need to generate a jconfig.h file by hand, this file tells you how.
*
* DO NOT EDIT THIS FILE --- IT WON'T ACCOMPLISH ANYTHING.
* EDIT A COPY NAMED JCONFIG.H.
*/
3、我用的是ubuntu系统,在窗口下复制一个副本,然后改名,再编译,错误依旧。。。。
有点灰心,不知为什么,然后新建text.h,可以正确包含; 将text.h改名jconfig.