[英]msys/MinGW, can't find libpng even though it's installed, trying to compile xpdf (specifically pdftopng)
I've installed libpng 1.2, 1.4 and 1.6 from source in MSYS and MingW because I want to compile pdftopng. 我已经在MSYS和MingW中从源代码安装了libpng 1.2、1.4和1.6,因为我想编译pdftopng。 Used the makefiles included with libpng for msys/MinGW and they seemed to have installed correctly.
将libpng附带的makefile用于msys / MinGW,它们似乎已正确安装。
Run the xpdf configure script with MSYS's bash, and it fails to find libpng. 使用MSYS的bash运行xpdf configure脚本,但找不到libpng。 As part of the output, I get:
作为输出的一部分,我得到:
checking for png.h presence... no
检查png.h是否存在...否
checking for png.h... no
正在检查png.h ...否
Couldn't find libpng -- you will not be able to build pdftohtml or pdftopng
找不到libpng-您将无法生成pdftohtml或pdftopng
So I search for png.h in my MinGW directory and find them in several places: 所以我在MinGW目录中搜索png.h并在几个地方找到它们:
C:\\MinGW\\msys\\1.0\\local\\include\\libpng C:\\ MinGW \\ msys \\ 1.0 \\ local \\ include \\ libpng
C:\\MinGW\\msys\\1.0\\local\\include\\libpng16 C:\\ MinGW \\ msys \\ 1.0 \\ local \\ include \\ libpng16
C:\\MinGW\\msys\\1.0\\local\\include C:\\ MinGW \\ msys \\ 1.0 \\ local \\ include
C:\\MinGW\\msys\\1.0\\include\\libpng14 C:\\ MinGW \\ msys \\ 1.0 \\ include \\ libpng14
C:\\MinGW\\msys\\1.0\\include C:\\ MinGW \\ msys \\ 1.0 \\ include
C:\\MinGW\\msys\\1.0\\include\\libpng12 C:\\ MinGW \\ msys \\ 1.0 \\ include \\ libpng12
C:\\MinGW\\msys\\1.0\\include\\libpng C:\\ MinGW \\ msys \\ 1.0 \\ include \\ libpng
I'm sure I'm missing something simple, but I'm a little out of my element. 我确定我缺少一些简单的东西,但我的想法有点不足。 I've gotten a few parts of xpdf that don't require libpng to compile but I'm completely stumped here.
我已经获得了xpdf的一些部分,这些部分不需要libpng进行编译,但是我在这里完全陷入了困境。
正如Ian Abbott指出的那样,我需要将(--with-libpng-includes = DIR)和库(--with-libpng-library = PATH)参数传递到配置脚本。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.