如何在Windows平台上安装png ++

时间:2016-11-10 15:28:17

标签: c++ windows makefile libpng

现在我无法在Windows平台上安装png ++,因为即使我安装了一些像GnuWin32这样的makefile工具,makefile也无法在windows中正常工作。是否有安装png ++的CMakeLists文档?因为cmake在windows中运行良好。

PS。我已提到这个CMakeLists sample。但实际上它只能读取和写入图像,但不能安装png ++。

错误如下。

png++-0.2.9>make libpng-config="(previous path)\installed\LPNG1626\bin"
process_begin: CreateProcess(NULL, libpng-config --cflags, ...) failed.
process_begin: CreateProcess(NULL, libpng-config --ldflags, ...) failed.
make -C example libpng-config=(previous path)\\installed\\LPNG1626\\bin
process_begin: CreateProcess(NULL, libpng-config --cflags, ...) failed.
process_begin: CreateProcess(NULL, libpng-config --ldflags, ...) failed.
make[1]: Entering directory `..../png++-0.2.9/example'
g++     pixel_generator.cpp   -o pixel_generator
pixel_generator.cpp:35:19: fatal error: png.hpp: No such file or directory
compilation terminated.
make[1]: *** [pixel_generator] ′í?ó 1
make[1]: Leaving directory `..../png++-0.2.9/example'
make: *** [examples] ′í?ó 2

0 个答案:

没有答案
相关问题