GNU gcc mysys make command no rule to make target libpng

GNU gcc mysys make command no rule to make target libpng

本文关键字:make to target libpng rule command gcc mysys GNU no      更新时间:2023-10-16

我已经搜索了我在尝试编译libpng时遇到的问题,但我找不到解决方案。当我运行时:

C:UsersAlexDesktoplibpng-1.6.21scripts>make makefile.gcc libpng.a

我收到以下消息:

make: Nothing to be done for `makefile.gcc'.
make: *** No rule to make target `libpng.a'.  Stop.

我还没有修改原来的makefile.gcc。

我认为

这是因为您没有调用./config脚本。协调这个维基,你需要在msys shell中运行:

wget http://sourceforge.net/projects/libpng/files/libpng15/older-releases/1.5.16/libpng-1.5.16.tar.xz/download
tar xvfJ libpng-1.5.16.tar.xz
cd libpng-1.5.16
mv INSTALL INSTALL.txt
./configure
make install