-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Failing to cross-compile to Window target x86_64-pc-windows-gnu #161
Comments
Same issue here |
@fpagliughi with release v0.12.0 this was fixed? |
Honestly, I have no idea. I've been trying to figure out MinGW on Windows for another open-source C++ library, and am having no luck with it at all! |
I tried the fix found here without any success.
|
What worked for me: In my library
In
Then |
I'm using cross-rs and I have the same issue. |
Same issue for me |
Appears to be related to these two issues. eclipse-paho/paho.mqtt.cpp#123 As it currently stands, there isn't a cygwin rust target (rust-lang/rust#79854) so were stuck here until paho.mqtt.cpp or rust gets patched |
For others finding this and not having a solution, I would recommend instead targeting |
This doesn't look like Rust issue. Seems like there is a bug in mqtt making it not build with MinGW. |
Before
paho.mqtt.rust
repository and update the cmake intopaho-mqtt-sys/Cargo.toml
but with the same result belowSteps:
My Cargo.toml
My
./.cargo/config
fileOutput Errors:
With cargo build
Error output with cargo build --target ...
With cargo build
~/.asdf/installs/rust/1.60.0/bin/cross build --target x86_64-pc-windows-gnu --release
Error output with cross
The text was updated successfully, but these errors were encountered: