Open slimsag opened 8 years ago
From @shurcooL on July 2, 2015 17:48
Could you cross-compile from your development machine to ARM? Is something preventing that?
From @nubunto on July 3, 2015 12:50
Yes, compilation failed on my machine. Later I'll post the exact error, but it had something to do with a C dependency. Azul3d works fine on my machine though (x64 Lubuntu)
From @nubunto on July 3, 2015 21:36
Command used to cross-compile (in folder $GOPATH/src/azul3d.org/examples.v1/azul3d_clearing
):
GOARCH=arm GOARM=7 go build azul3d_clearing.go
Message:
# azul3d.org/gfx/window.v2
../../gfx/window.v2/window.go:158: undefined: doRun
Same message for differente GOARM
numbers (5 and 6)
From @shurcooL on July 3, 2015 21:37
Ah, I see. If there are C depdenencies, then cross compilation will not be possible. Cross compilation does not support cgo
being enabled at this time.
From @nubunto on July 2, 2015 12:57
It would be awesome to use Azul3d to build games that cross compile to embedded devices, like the raspberry pi. While Azul3d may work on Raspberry Pi, I have to move the Go code and install dependencies directly on my Raspberry, and build the code there. Compile a single binary on my computer and move it with
scp
would be a great and smooth experience.Copied from original issue: azul3d/oldissues#39