-
Notifications
You must be signed in to change notification settings - Fork 102
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
Can not build Rust Project with paho-mqtt-sys library on Mac os Apple M1 Pro #174
Comments
Interestingly the generated libpaho-mqtt3as.a is a
Could that be the issue? |
there was a recent PR merged in rust... rust-lang/rust#98736. Looks like it is targeted for the 1.66 release of the rust toolchain |
checked it with the beta toolchain just now. it builds for both architectures on my M1 :) |
good news!, I will try it @appelgriebsch |
I tried to these instructions set and I can compile. thank you @appelgriebsch
|
instead of making the
|
You can then use the
Benefit: this universal binary works for both architectures. |
Hey! Thanks for the work on this. I don't have access to an M1 to help or try any of it out, but do you think there is something here we should add to the README.md? Maybe make a Mac/M1 section? |
Hi @fpagliughi , yes it can be nice, I can add if you want. but I don't know which one is the best. I think @appelgriebsch knows better than me. |
Sorry for radio silence. Was a bit busy lately. Will provide a PR for the README update on the coming weekend. |
Hi all,
I am developing a rust web project using the M1 pro chipset. I installed mosquitto with brew and paho.mqtt.c with macports. I added paho-mqtt-sys and paho-mqtt. Before that, application can be built. However if I add paho-mqtt libraries, It gives an error when I call cargo build --target x86_64-apple-darwin.
What should I do to fix the error?
Error:
The text was updated successfully, but these errors were encountered: