1

Trying to port my raylib game (written in Golang) to C to compile to web. When I add raylib to /usr/ it somehow fucked up the Go game and now I cannot run the original game.

Comments
  • 0
    You are probably using an filename that is used by another lib.
    Go has has wasm output, so you can save time by using that target.
  • 0
    @stop The Golang version of Raylib doesn't support web build (which is why I want to port it) and I tried to compile it to Wasm using tinygo but no result.
  • 0
    if this is the lib:
    https://pkg.go.dev/github.com/...
    Then its natural that it fails. The lib wants to load an binary that isn't available. The lib is just an link from golang to an (probably) compiled c lib. if you want to have wasm and raylib, you need an replacement that works only in the browser or an wrapper for it. Then you can use buildswitches to use the wasm replacement for web and the normal for all others.
Add Comment