Skip to content

map-generator does not compile #4871

Closed

Description

@FeldrinH

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:

  1. Run the steps under https://github.com/openfrontio/OpenFrontIO/tree/main/map-generator#installation.
  2. 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

Activity

  1. github-actions commented on Aug 4, 2026

    @github-actions
    Contributor

    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.

  2. evanpelle commented on Aug 4, 2026

    @evanpelle
    Collaborator

    I think you need to install the required libraries first.

  3. FeldrinH commented on Aug 5, 2026

    @FeldrinH
    ContributorAuthor

    I think you need to install the required libraries first.

    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?

  4. FloPinguin commented on Aug 5, 2026

    @FloPinguin
    Contributor

    I think you need to install the required libraries first.

    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?

    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

  5. FeldrinH commented on Aug 5, 2026

    @FeldrinH
    ContributorAuthor

    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?

  6. FloPinguin commented on Aug 5, 2026

    @FloPinguin
    Contributor

    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?

    Thats a good PR idea, I think it would get merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    not-approvedThis issue has NOT been approved by the maintainers.

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions