Closed Jugulaire closed 4 years ago
Same issue here
A cargo.lock file would help a lot
Hey, sorry for the delay in my response here. I'm pretty swamped with work right now so I don't have a lot of time to look into this, but my understanding here is that I've basically just stalled on keeping maschine.rs up-to-date relative to mio (and old mio doesn't build with current rustc).
I have some grander long-term plans relative to platform-independent USB HID access, but, for the time being, since maschine.rs depends on other Linux-specific interfaces (ALSA, mostly), I have a branch that just uses poll()
for eventing, and that builds fine on my machine (rustc 1.28.0). I don't have any devices with me right now to test with, so if you could report back and let me know, I'd appreciate that.
Relevant branch is just-use-poll
: https://github.com/wrl/maschine.rs/tree/just-use-poll
@wrl Thanks for the guidance! I managed to compile just-use-poll
branch although I had to edit the bitflags parts (changed syntax). Unfortunately simply running the program didn't work, and handler.pad_pressed
seemed to only fire on the very first event loop run.
But the pressure readings on the pads are working correctly in the loop, so I will have to look some more into the code tomorrow.
Also I must mention this is my first ever interaction with the Rust language, so it is possible that I may have missed something obvious!
@hyperparsa Alright, sounds good. As mentioned, I have no device to test with right now, so I can't be of as much help as I'd like, but I can hopefully provide help if you have any more questions about the code.
Good luck!
Pinned some versions, cleaned up some obsolete syntax. Clean compile on rustc 1.44.1.
Hey,
I'm trying to compile your work on Ubuntu 18.04. I've installed the following package : build-essential caro rustc. I've run cargo build --release and here is what i got :
Could you help me ?