Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error #cgo windows,amd64 LDFLAGS: -L${SRCDIR}/cdeps/win64 -lpng -lz #278

Closed
jairforero opened this issue Jul 6, 2020 · 1 comment
Closed
Labels
Milestone

Comments

@jairforero
Copy link

Please help to clone package with go get github.com/go-vgo/robotgo
Return Error

github.com/go-vgo/robotgo

C:/TDM-GCC-64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lz

This error y for flag in robotgo.go in line 39
#cgo windows,amd64 LDFLAGS: -L${SRCDIR}/cdeps/win64 -lpng -lz

Please help

@vcaesar
Copy link
Member

vcaesar commented Aug 23, 2021

Closed because of duplicates, #100. All code tests and C dependencies use MinGw-64, TDM-GCC has not been tested.
But you can compile lpng and lzib yourself, and you can download https://sourceforge.net/projects/mingw-w64/files/ x86_64-posix.

@vcaesar vcaesar closed this as completed Aug 23, 2021
@vcaesar vcaesar added this to the v0.100.0 milestone Aug 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants