Open gucio321 opened 2 years ago
okey, I forgot to enable CGO, now the error is diffrent:
[examples (2) ]$ CGO_ENABLED=1 GOOS="js" GOARCH="wasm" go build -o main.wasm main.go
# runtime/cgo
cgo: unknown ptrSize for $GOARCH "wasm"
well, two years ago it was this way: https://github.com/golang/go/issues/40543
I found this one; maybe it could be used to compile C code into webgl? https://emscripten.org/docs/introducing_emscripten/about_emscripten.html
well, so emscripten is able to compile DearImGui. the next step is, to enable this feature in CGO: https://github.com/golang/go/issues/55351
ok, so I'm done with researches for today :smile: waiting for any feedback
@gucio321 Hah, WebGL is out of my knowledge scope... But, I will do some research!
@gucio321 I spent two days but sadly saying I didn't find a way. Sign...
@AllenDang takie a look on this one: https://github.com/golang/go/issues/55351
This issue needs to wait for a new go release
Hey @gucio321 do you have any news or alternatives on this? I'm also interested in using webgl, but I think it is still frozen due to the "cgo and wasm" issue, isn't it?
Hi there! IT IS AWESOME!!!!!!! Finally there is some imgui wrapper that is 100% automatic ;-)
What should be done to support WebGl? for now, the build output looks as follows:
let me know if I can help ;-)