-
Notifications
You must be signed in to change notification settings - Fork 22
Compiling wlroots-rs on ARM #205
Comments
Is this a signed vs unsigned char thing? |
It sounds like it should be cast as |
I'm happy to work on this (experienced Rust dev, very inexperienced ARM dev), if someone can point me to a place with similar idiomatic cross-architecture code? My first impulse would be lots of |
The majority (all?) of these are from the wlr log macro so can be fixed in one place. @ascent12 is correct @andrewcsmith, use libc::c_char which is automatically set to the correct type (so no need for ifcfg) |
Okay, thanks a lot all -- down to a few more, can't figure these ones out...sorry, I'm a wayland and arm noob, but I assume it's an issue with finding different headers. Is this small enough that I should do Compiling wlroots v0.0.0 (file:///home/alarm/way-cooler/wlroots-rs)
error[E0432]: unresolved import `wlroots_sys::__va_list_tag`
--> src/utils.rs:10:19
|
10 | use wlroots_sys::{__va_list_tag, wlr_log_init, wlr_edges};
| ^^^^^^^^^^^^^ no `__va_list_tag` in the root. Did you mean to use `__va_list`?
error[E0308]: mismatched types
--> src/types/output/output.rs:410:18
|
409 | pub fn set_gamma(&mut self, size: u32, mut r: u16, mut g: u16, mut b: u16) {
| - expected `()` because of default return type
410 | unsafe { wlr_output_set_gamma(self.output, size, &mut r, &mut g, &mut b) }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- help: try adding a semicolon: `;`
| |
| expected (), found bool
|
= note: expected type `()`
found type `bool`
error[E0308]: mismatched types
--> src/utils.rs:35:46
|
35 | wlr_log_init(verbosity, Some(log_callback));
| ^^^^^^^^^^^^ expected struct `wlroots_sys::__va_list`, found *-ptr
|
= note: expected type `unsafe extern "C" fn(wlroots_sys::wlr_log_importance, *const u8, wlroots_sys::__va_list)`
found type `unsafe extern "C" fn(wlroots_sys::wlr_log_importance, *const u8, *mut [type error]) {utils::log_callback}`
error: aborting due to 3 previous errors |
The va list thing is strange. Might need a cfg? Add the ; for set_gamma. |
Hey there, I'm following up (finally) on my reddit post from 3 months ago and it turns out that the Odroid's ARMv7 architecture (running Arch Linux ARM) is having some trouble with
i8
vsu8
sizes. 66 troubles, to be precise.Posting this below so that there's a checklist, but if this sounds like something that seems nominally interesting I can get to work. I'll just warn you that I haven't actually gotten any wayland compositor working yet on this thing, though I have run
glxgears
through X11 with OpenGL ES acceleration, so that definitely works.compilation errors
The text was updated successfully, but these errors were encountered: