Closed EtienneBruines closed 9 years ago
@EtienneBruines
The current webp is based on cgo
. If cgo
is disabled, it will cause error.
I will merge a puro go version to fix this issue when cgo
is disabled.
thanks for your feedback.
@EtienneBruines
https://github.com/chai2010/webp/commit/e5bfb994b5ca7a67f64aa3ba0f7c66d154b03faa
Fix the build error if cgo
is disabled.
But the go test
will fail.
I will close this issue.
PS:
Just for webp
, cgo
use static link, output is one static binary file.
@chai2010 Perfect! Thank you for the rapid response. Good to know that I shouldn't use CGO_ENABLED=0
and webp
together.
@EtienneBruines
Fix the build error if
cgo
is disabled. But thego test
will fail.I will close this issue.
PS: Just for
webp
,cgo
use static link, output is one static binary file.
how about the go test
In case anyone else stumbles upon this; I had the same issue when I tried compiling this package on Alpine linux. The outcome is the same as CGO_ENABLED=0
disables CGo (which this package needs), and Alpine linux is based on an incompatible C library (I used an ubuntu-based docker image instead)
I'm trying to compile my Go project to one static binary file, without linking to external libraries.
I am doing so by using this command:
This however produces the following errors:
Which is strange, because (for instance)
maxWebpHeaderSize
is declared incapi.go
Extra info:
Any thoughts?
Thanks in advance.