Build not working in SFDK
To build in the SFDK a modification to build.rs is needed:
diff --git a/qmetaobject/build.rs b/qmetaobject/build.rs
index 13722d5..c7c97b1 100644
--- a/qmetaobject/build.rs
+++ b/qmetaobject/build.rs
@@ -26,7 +26,7 @@ fn qmake_query(var: &str) -> String {
let qmake = std::env::var("QMAKE").unwrap_or("qmake".to_string());
String::from_utf8(
Command::new(qmake)
- .env("QT_SELECT", "qt5")
+ .env("QT_SELECT", "5")
.args(&["-query", var])
.output()
.expect("Failed to execute qmake. Make sure 'qmake' is in your path")
The reason could be that qtchooser reports:
$ qtchooser -list-versions
5
4
default
Strange is, that upstream of qmetaobject is also using qt5
Hint:
- Use docker sfdk
- install cargo, rust with:
sfdk tools target package-install SailfishOS-3.4.0.24-armv7hl rust cargo
- https://forum.sailfishos.org/t/rust-howto-request/3187 might be usefull
- I created a fork with this change that can be used to build: https://gitlab.com/thigg/qmetaobject-sfos-rs.git
Edited by thigg