-
Notifications
You must be signed in to change notification settings - Fork 18
MacOS Linker failure #42
Comments
Same problem here. First I thought, that Qt5 could not be found because the brew qt5 formula is keg-only and all the symlinks are missing. But a By the way.. I read the same tutorial 😆 . |
Okay, I found a solution for this (see this SO answer). You can create a build script which customizes the build procedure. In my case a fn main() {
println!("cargo:rustc-link-search=framework=/usr/local/opt/qt5/Frameworks");
} in it and a line in the [package]
…
build = "build.rs" was sufficient. |
Seems that additionally libc++ needs to be linked. This additional line in println!("cargo:rustc-link-lib=c++"); |
Awesome! Well found. I could close this issue. However do we need something in the Readme for the future hipster trying to use this project on his/her Mac? |
Maybe this would be helpfull, yes. Is this not needed in Windows/Linux? |
Trying to follow vandenoever's tutorial. Running Qt 5.8 on Sierra and rust 1.15.1, cmake 3.7.2
Even after setting the QTDIR64 dir to /usr/local/opt/qt5
running a cargo build gives :
Also tried with a binary installation of qt 5.8, no joy there either.
The text was updated successfully, but these errors were encountered: