bounty将在7天后过期。回答此问题可获得+100声望奖励。royB希望引起更多人对此问题的关注:寻找比我找到的更好的解决方案(并作为答案添加)
尝试运行gstreamer-rs的教程
获取错误dyld[62967]: Library not loaded:... @rpath/libgobject-2.0.0.dylib '/usr/lib/libgobject-2.0.0.dylib' (no such file, not in dyld cache)
库对象-2.0.dylib是**/库/框架/GStreamer.框架/版本/1.0/库的一部分**
- 货物.吨 *
[package]
name = "gstreamerDemo"
version = "0.1.0"
edition = "2021"
[dependencies]
glib = { git = "https://github.com/gtk-rs/gtk-rs-core" }
gdk = { git = "https://github.com/gtk-rs/gtk3-rs", optional = true }
gtk = { git = "https://github.com/gtk-rs/gtk3-rs", optional = true }
gst = { version = "0.20.2", package = "gstreamer" }
[target.'cfg(target_os = "macos")'.dependencies]
cocoa = "0.24"
objc = "0.2.7"
- 代码 *(最小值)
#[path = "../common.rs"]
mod tutorials_common;
fn tutorial_main() {
// Initialize GStreamer
gst::init().unwrap();
...
}
1条答案
按热度按时间suzh9iv81#
在
/Library/Frameworks/GStreamer.framework/Versions/1.0/lib
下添加一个指向文件的符号链接,其效果如下:我更喜欢一个更好的解决方案,如动态链接,如果有人可以张贴一个工作的例子,我会接受作为一个解决方案