-
Notifications
You must be signed in to change notification settings - Fork 123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add supported architecture #138
Comments
Hello @deid84, I'm glad to hear that you are successfully using serialport-rs.
We could add this target but this would not change anything for your use case. I bet we have enabled using udev on Linux by default because this is a sensible default for people using serialport-rs on a desktop system as they usually do not have the background with such such details as people working with embedded systems do.
I have to admit that I have neither cross compiled with libudev manually. Because either Yocto has taken care of the build environment for me or I got annoyed before reaching the finish line. Building for libudev by default is even a sensible default for cross compiling with Yocto. What's wrong for you with disabling the default features? On the other hand, cross compiling without libudev selects a Sysfs backend for enumerating serial ports. Did you give it a try on your target? For example with our Would some additional words about it in
How does your build setup looks like? And what error are you getting there? Best regards! |
Hello @sirhcel , sorry for my late reply. I have to admit that once compiled disabling "default-features" everything worked fine for me. My question is just in case someone needs a port enumeration also in a armv7 cross-compiled solution. I think that your idea about giving more information on readme.md would be great, but unfortunately I don't know exactly how to help you to write some additional info. Please let me know if it could be helpful for you if I try to better describe my build setup or something else ok? Best Regards! |
tks, this solved my problem |
Hello, i'm succesfully using from few weeks this crate within my STM32MP1 that has an armv7 onboard.
Do you think could be useful to add armv7-unknown-linux-gnueabihf to the supported architectures? The only difference i saw is that i need to configure my cargo toml in this way:
serialport = {version = "4.2.2", default-features = false}
in order to be able to cross-compile without having error on libudev library, that's a minor issue for me 'cause i don't need to list serial ports on my software.
Maybe you have some ideas about how to cross-compile succesfully with default features enabled
thank you!
The text was updated successfully, but these errors were encountered: