Closed
Labels
not-approvedThis issue has NOT been approved by the maintainers.This issue has NOT been approved by the maintainers.
Description
Describe the bug
I tried to update map data and run the map generator tool. It produced compile errors and did not run.
To Reproduce
Steps to reproduce the behavior:
- Run the steps under https://github.com/openfrontio/OpenFrontIO/tree/main/map-generator#installation.
- The following output is produced for
go run .:
# github.com/chai2010/webp
..\..\..\..\go\pkg\mod\github.com\chai2010\webp@v1.4.0\webp.go:22:9: undefined: webpGetInfo
..\..\..\..\go\pkg\mod\github.com\chai2010\webp@v1.4.0\webp.go:26:20: undefined: webpDecodeGray
..\..\..\..\go\pkg\mod\github.com\chai2010\webp@v1.4.0\webp.go:39:20: undefined: webpDecodeRGB
..\..\..\..\go\pkg\mod\github.com\chai2010\webp@v1.4.0\webp.go:52:20: undefined: webpDecodeRGBA
..\..\..\..\go\pkg\mod\github.com\chai2010\webp@v1.4.0\webp.go:68:14: undefined: webpDecodeGrayToSize
..\..\..\..\go\pkg\mod\github.com\chai2010\webp@v1.4.0\webp.go:82:14: undefined: webpDecodeRGBToSize
..\..\..\..\go\pkg\mod\github.com\chai2010\webp@v1.4.0\webp.go:96:14: undefined: webpDecodeRGBAToSize
..\..\..\..\go\pkg\mod\github.com\chai2010\webp@v1.4.0\webp.go:109:7: undefined: toGrayImage
..\..\..\..\go\pkg\mod\github.com\chai2010\webp@v1.4.0\webp.go:110:14: undefined: webpEncodeGray
..\..\..\..\go\pkg\mod\github.com\chai2010\webp@v1.4.0\webp.go:119:14: undefined: webpEncodeRGB
..\..\..\..\go\pkg\mod\github.com\chai2010\webp@v1.4.0\webp.go:119:14: too many errors
Expected behavior
Map generator should compile and run without errors.
Desktop (please complete the following information):
- OS: Windows 10
- Go version: 1.26.1 windows/amd64
- Browser: N/A
- Version: latest master branch
Assignment
- I'd like to be assigned to this issue and work on it myself
Metadata
Metadata
Assignees
Labels
not-approvedThis issue has NOT been approved by the maintainers.This issue has NOT been approved by the maintainers.
Type
Projects
- StatusShow more project fieldsComplete
Activity
github-actions commentedon Aug 4, 2026
Hi @FeldrinH, thanks for opening this issue. It hasn't been approved by a maintainer yet — we'll get back to you shortly to either milestone it (approval) or close it.
— Automated. See CONTRIBUTING.md.
evanpelle commentedon Aug 4, 2026
I think you need to install the required libraries first.
FeldrinH commentedon Aug 5, 2026
What do you mean by this? I followed all the steps in the installation section of the readme. Are there other external libraries I need to install?
FloPinguin commentedon Aug 5, 2026
Did you follow "3. Install dependencies:
go mod download"?You dont seem to have the depdendency github.com/chai2010/webp installed
Or maybe you are missing a C compiler, have a look at this PR I just opened: #4877
FeldrinH commentedon Aug 5, 2026
I am indeed missing a C compiler. That make the installation a lot more convoluted on Windows. Would you accept a PR that replaces the webp library with one that doesn't require a C compiler?
FloPinguin commentedon Aug 5, 2026
Thats a good PR idea, I think it would get merged
Switch map generator webp library to avoid C compiler requirement (#4879