Error for Linux Build
- Dominant language
- Go
- Stars
- 723
- Forks
- 113
- PR merge metrics
- No merged PRs in 30d
Description
Hi! My params for Linux release.
set GOARCH=amd64
set GOOS=linux
go build -ldflags "-s -w"
Output:
C:\Users\admin\go\pkg\mod\github.com\chai2010\webp@v1.1.1\webp.go:22:9: undefined: webpGetInfo
C:\Users\admin\go\pkg\mod\github.com\chai2010\webp@v1.1.1\webp.go:26:20: undefined: webpDecodeGray
C:\Users\admin\go\pkg\mod\github.com\chai2010\webp@v1.1.1\webp.go:39:20: undefined: webpDecodeRGB
C:\Users\admin\go\pkg\mod\github.com\chai2010\webp@v1.1.1\webp.go:52:20: undefined: webpDecodeRGBA
C:\Users\admin\go\pkg\mod\github.com\chai2010\webp@v1.1.1\webp.go:68:14: undefined: webpDecodeGrayToSize
C:\Users\admin\go\pkg\mod\github.com\chai2010\webp@v1.1.1\webp.go:82:14: undefined: webpDecodeRGBToSize
C:\Users\admin\go\pkg\mod\github.com\chai2010\webp@v1.1.1\webp.go:96:14: undefined: webpDecodeRGBAToSize
C:\Users\admin\go\pkg\mod\github.com\chai2010\webp@v1.1.1\webp.go:109:7: undefined: toGrayImage
C:\Users\admin\go\pkg\mod\github.com\chai2010\webp@v1.1.1\webp.go:110:14: undefined: webpEncodeGray
C:\Users\admin\go\pkg\mod\github.com\chai2010\webp@v1.1.1\webp.go:119:14: undefined: webpEncodeRGB
C:\Users\admin\go\pkg\mod\github.com\chai2010\webp@v1.1.1\webp.go:119:14: too many errors
Installed TDM-GCC
OS Windows 10.
Golang version 1.18.4
How can I compile for Linux? When building for Windows, there are no errors. Thanks!
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the reported `go build -ldflags "-s -w"` command and the dependency file `github.com/chai2010/webp@v1.1.1/webp.go`, then compare the Windows build configuration with the Linux cross-build configuration. Done means the project builds successfully for Linux without the listed undefined-symbol errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100