You need to connect the package to the project on Go.

Compiled zlib then libpng using this answer

With the go get command, github.com/go-vgo/robotgo gives the following error:

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> 

Those. libpng he never sees. Found a similar situation , but for os x

Question: how to connect similar packages in Golang? How to show go get that libpng exists?

  • 2
    Apparently, you need to deflate libpng-dev - Egor Smolyakov
  • What will it give? He swears at the absence of a file, and not at its correctness. - hitakiri
  • one
    Did you try to put all libpng headers in the folder ./bitmap/../base/ ? - zed

0