我需要导入this包。
它需要zlib和libpng。
我用MinGW编译zlib和libpng (我的操作系统是Windows8.164)。
libpng.a现在位于MinGW库文件夹中,但没有任何更改,相同的错误:
In file included from ./bitmap/../base/io_c.h:4:0,
from ./bitmap/goBitmap.h:25,
from ..\github.com\go-vgo\robotgo\robotgo.go:26:
./bitmap/../base/png_io_c.h:4:17: fatal error: png.h: No such file or directory
#include <png.h>发布于 2017-06-11 22:36:02
使用以下步骤
从https://github.com/go-vgo/Mingw
scripts\makefile.gcc makefile.gcc 2) mingw32-make -f libpng.a复制到Mingw/lib
https://stackoverflow.com/questions/41151303
复制相似问题