简体   繁体   English

msys / MinGW,即使已安装,也找不到libpng,试图编译xpdf(特别是pdftopng)

[英]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.

相关问题 MinGW / msys,链接器(ld.exe)找不到libpng(-lpng),即使它已经安装,运行xpdf configure脚本 - MinGW/msys, linker (ld.exe) not finding libpng (-lpng) even though it's installed, running xpdf configure script 即使安装了 CLion 也找不到 Visual Studio 编译器 - CLion Can't Find Visual Studio Compiler Even Though It's Installed 在msys下构建boost,找不到mingw.jam - Building boost under msys, can't find mingw.jam CodeLite 不会检测(安装)MinGW——即使手动配置也不会编译 - CodeLite won't detect (installed) MinGW — and will not compile even with manual configuration 尝试使用Powershell和MinGW MSYS在Windows上编译Carabiner。 在pthreads_rwlock_t中出现gflags错误 - Trying to Compile Carabiner on windows using Powershell and MinGW MSYS. Having a gflags error in pthreads_rwlock_t 即使已包含,g ++也找不到此方法 - g++ can't find this method even though it's included 尝试在 MSYS2/MinGW-w64 上编译时,许多内部标准库编译错误 - Many internal std library compile errors when trying to compile on MSYS2/MinGW-w64 codeblocks 20 无法检测到 g++。即使它位于 CodeBlocks 文件中的 MinGW 内并添加到 PATH。我该如何链接它们? - codeblocks 20 can't detect g++.Even though It's inside MinGW inside CodeBlocks files and added to PATH.How can I link them? 如何使用带有 msys 的 mingw 在 windows 上编译 googletest? - How to compile googletest on windows using mingw with msys? 为什么不在VS Express 2013中编译,尽管它在MinGW中编译? - Why won't this compile in VS Express 2013, though it compiles in MinGW?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM