libjpeg: compile error

不羁的心 提交于 2019-12-10 17:32:30

问题


I'm trying to compile libjpeg (version 8d) by using mingw-w64. The commands I launch to build it are:

  • msys.bat
  • ./configure
  • make

At the third step I get this error:

$ make 
D:/Builder/bin/make  all-am
make[1]: Entering directory `d:/8d'
    CC    jaricom.lo
    CC    jcapimin.lo
jcapimin.c:127:1: error: conflicting types for 'jpeg_suppress_tables'
jcapimin.c:128:1: note: an argument type that has a default promotion can't match an empty parameter name list declaration
In file included from jcapimin.c:22:0:
jpeglib.h:982:14: note: previous declaration of 'jpeg_suppress_tables' was here
make[1]: *** [jcapimin.lo] Error 1
make[1]: Leaving directory `d:/8d'
make: *** [all] Error 2

Does someone know how to resolve it?


回答1:


Run

$ autoheader
$ ./configure
$ make



回答2:


Alternate solution is to add #define HAVE_PROTOTYPES 1 to jconfig.h and run make as suggested here: Compile libjpeg with mingw



来源:https://stackoverflow.com/questions/10834250/libjpeg-compile-error

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!