You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to build raylib-rs master (5.0.0) for armv7-unknown-linux-gnueabihf. The build fails due to type mismatch between u8 and i8. I guess this is the same issue as described here: rust-lang/rust#60226. There are several patches from projects linked that had the same problem.
FROM ghcr.io/cross-rs/armv7-unknown-linux-gnueabihf:latest
RUN dpkg --add-architecture armhf
RUN apt-get update -y
RUN apt-get install -y libx11-dev:armhf
RUN apt-get install -y xorg-dev clang libclang1-5.0
The problem with the platform detection is in raylib-sys/build.rs:359-360. There it is assumed that the target armv7-unknown-linux implies that the platform is "Raspberry Pi". Commenting the two lines, compilation and linking is successful.
While the fix i8→::std::os::raw::c_char should be portable, of course, for the platform detection one would need something more sophisticated to detect the RPI. Personally, I'd be happy with a build option to specify the platform.
I'm trying to build raylib-rs master (5.0.0) for armv7-unknown-linux-gnueabihf. The build fails due to type mismatch between u8 and i8. I guess this is the same issue as described here: rust-lang/rust#60226. There are several patches from projects linked that had the same problem.
Build log is attached: build.log
How to reproduce
Dockerfile:
podman build -t raylib_rs_env .
Cross.toml:
(edit: removed packages from Dockerfile which are not needed to build a small example; added libx11-dev:armhf)
The text was updated successfully, but these errors were encountered: