Open w4tson opened 7 years ago
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 brew link qt5 --force
did not help.
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 build.rs
file in the project root directory with
fn main() {
println!("cargo:rustc-link-search=framework=/usr/local/opt/qt5/Frameworks");
}
in it and a line in the Cargo.toml
file
[package]
…
build = "build.rs"
was sufficient.
Seems that additionally libc++ needs to be linked. This additional line in build.rs
fixes it:
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.