sách gpt4 ai đã đi

mingw - 用 mingw 编译 libjpeg

In lại 作者:行者123 更新时间:2023-12-04 17:24:10 28 4
mua khóa gpt4 Nike

我终于设置了 mingw 和 msys,现在我想编译 libjpeg。我从 projekt 页面 (jpeg-8d) 下载了最新的 libjpeg 源并提取了文件。

然后我像这样运行配置命令:

./configure --build=x86_64-w64-mingw32 --prefix=/D/Libraries/bin/jpegd-8d

之后,我想用 make 进行构建,但出现以下错误:
$ make 
make all-am
make[1]: Entering directory `/D/Libraries/sources/jpeg-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/Libraries/sources/jpeg-8d'
make: *** [all] Error 2

我在这里看到了这个帖子,其中一个人和我有同样的问题: libjpeg: compile error

建议运行“autoheader”命令。我尝试这样做,但出现以下错误:
    sh: autoheader:command not found

我在谷歌上搜索 autoheader 和 mingw/msys,但找不到答案。

所以我的问题是:有没有其他解决方案来编译这个?
如果没有,我如何在 msys/mingw64 中安装所需的工具?

问候

1 Câu trả lời

如果由于某种原因你不能运行

 $ autoheader

将以下定义添加到 jconfig.h
 #define HAVE_PROTOTYPES 1

关于mingw - 用 mingw 编译 libjpeg,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13087749/

28 4 0
行者123
Hồ sơ cá nhân

Tôi là một lập trình viên xuất sắc, rất giỏi!

Nhận phiếu giảm giá Didi Taxi miễn phí
Mã giảm giá Didi Taxi
Giấy chứng nhận ICP Bắc Kinh số 000000
Hợp tác quảng cáo: 1813099741@qq.com 6ren.com