编译libjpeg-9a时,竟找不到jconfig.h

在交叉编译libjpeg-9a时遇到找不到jconfig.h的错误,通过检查jconfig.txt并手动创建jconfig.h文件解决了问题。错误源于首次复制的头文件名前有一个空格导致无法被正确识别。
摘要由CSDN通过智能技术生成


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.

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值