Qt 无法为qmlrs运行自定义生成命令
我试图使用qmlsrust绑定到Qt,但无法编译。我已经安装了所有依赖项Qt 无法为qmlrs运行自定义生成命令,qt,rust,rust-cargo,Qt,Rust,Rust Cargo,我试图使用qmlsrust绑定到Qt,但无法编译。我已经安装了所有依赖项 锈1.9.0 每夜货运量0.10.0(10ddd7d 2016-04-08) 货物建造日志: error: failed to run custom build command for `qmlrs v0.1.1` Process didn't exit successfully: `/home/pedro/Documents/repositories /rust-sample/target/debug/build/
- 锈1.9.0
- 每夜货运量0.10.0(10ddd7d 2016-04-08)
error: failed to run custom build command for `qmlrs v0.1.1`
Process didn't exit successfully: `/home/pedro/Documents/repositories
/rust-sample/target/debug/build/qmlrs-e7d90e9b9c603e6f/build-script-
build` (exit code: 101)
--- stdout
cargo:rustc-link-lib=static=qmlrswrapper
cargo:rustc-link-lib=dylib=stdc++
cargo:rustc-link-search=native=/home/pedro/.cargo/registry/src/github.com-
88ac128001ac3a9a/qmlrs-0.1.1/ext/libqmlrswrapper/build
--- stderr
thread '<main>' panicked at 'called `Result::unwrap()` on an `Err` value:
"`\"pkg-config\" \"--libs\" \"--cflags\" \"Qt5Core Qt5Gui Qt5Qml
Qt5Quick\"` did not exit successfully: exit code: 1\n--- stdout\nPackage
Qt5Qml was not found in the pkg-config search path.\nPerhaps you should
add the directory containing `Qt5Qml.pc\'\nto the PKG_CONFIG_PATH
environment variable\nNo package \'Qt5Qml\' found\nPackage Qt5Quick was
not found in the pkg-config search path.\nPerhaps you should add the
directory containing `Qt5Quick.pc\'\nto the PKG_CONFIG_PATH environment
variable\nNo package \'Qt5Quick\' found\n"', ../src/libcore/result.rs:746
note: Run with `RUST_BACKTRACE=1` for a backtrace.
错误:无法为`qmlrs v0.1.1运行自定义生成命令`
进程未成功退出:`/home/pedro/Documents/repositories
/rust样本/目标/调试/构建/qmlrs-e7d90e9b9c603e6f/构建脚本-
生成“”(退出代码:101)
---stdout
货物:rustc链接库=静态=qmlrswrapper
货物:rustc-link-lib=dylib=stdc++
cargo:rustc link search=native=/home/pedro/.cargo/registry/src/github.com-
88ac128001ac3a9a/qmlrs-0.1.1/ext/libqmlrswrapper/build
---斯特德尔
线程“”在一个`Err`值上调用`Result::unwrap()`时惊慌失措:
“`pkg config\\''--libs\''--cflags\'\'\'Qt5Core Qt5Gui Qt5Qml
Qt5Quick\“`未成功退出:退出代码:1\n---stdout\n包
在pkg配置搜索路径中找不到Qt5Qml。\n或者您应该
将包含“Qt5Qml.pc\”的目录添加到PKG_CONFIG_路径
环境变量\n未找到任何包\Qt5Qml\ \n未找到包Qt5Quick
在pkg配置搜索路径中找不到。\n或者您应该添加
包含'Qt5Quick.pc\'到PKG\u CONFIG\u路径环境的目录
变量\n没有包'Qt5Quick\'found\n',../src/libcore/result.rs:746
注意:使用'RUST_BACKTRACE=1'运行回溯跟踪。
您应该安装提供该文件的Qt的-dev
包。如何使用apt文件找到相关包(如果您使用的是Debian派生发行版)。
在您的情况下,错误消息显示
也许您应该添加包含Qt5Qml.pc的目录
,以便:
$ sudo apt install apt-file && sudo apt update
$ apt-file search Qt5Qml.pc
>>> qtdeclarative5-dev: /usr/lib/x86_64-linux-gnu/pkgconfig/Qt5Qml.pc
$ sudo apt install qtdeclarative5-dev
您在系统上安装了Qt吗?
qmlrs
板条箱只是一个绑定,库仍然需要安装。您是否按照错误消息中的说明操作?也许你应该加上。。。