Any @rustlang/@PistonDeveloper folks have any idea what I need to do to make my Piston app run on a Raspberry Pi (without panicing): https://discourse.piston.rs/t/piston-application-panics-on-raspberry-pi/156 …
-
-
Did you get the chance to test it out? Any news on the front?
1 reply 0 retweets 0 likes -
Yes. I did more research and concluded the Pi only supports OpenGL ES. From what I can tell getting Piston to do EGL is not straightforward so I swapped to the SDL backend. This broke my cross-compiliation workflow so I ended up building on the Pi itself. 1/2
1 reply 0 retweets 1 like -
This version runs! However the colors are all messed up so I have further investigations to do. Thanks for your help. 2/2
1 reply 0 retweets 1 like -
You should be able to compile on your Dev machine, but targeting arm architectures. Unless you have to do something particular with sdl. Regarding weird colors, could it be the color mem layout? R8g8b8 etc?
1 reply 0 retweets 0 likes -
Replying to @pabloo84
Yes I suspect the colours are a layout issue or similar. More research needed. I can’t cross compile directly on my machine because my armv7 libc is too new for the Pi.
1 reply 0 retweets 1 like
I was using cross, which is great but to make it work with SDL I’ll need to make a custom docker image. That’s doable but just requires some more time. https://github.com/japaric/rust-cross …
-
-
Replying to @wezm
Excellent. Will take a closer look. Thanks for the data!
0 replies 0 retweets 0 likesThanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.