Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

fix: build issue

Louis Beaumont51ac130bc23b
diff --git a/screenpipe-vision/build.rs b/screenpipe-vision/build.rs
index e128489e7..2f6de66aa 100644
--- a/screenpipe-vision/build.rs
+++ b/screenpipe-vision/build.rs
@@ -1,9 +1,16 @@
+use std::env;
+use std::path::PathBuf;
+
#[cfg(target_os = "macos")]
fn main() {
println!("cargo:rustc-link-lib=dylib=screenpipe");
+ // Get the package root directory
+ let manifest_dir = env::var("CARGO_MANIFEST_DIR").unwrap();
+ let lib_path = PathBuf::from(manifest_dir).join("lib");
+
// Add the library search path
- println!("cargo:rustc-link-search=native=screenpipe-vision/lib");
+ println!("cargo:rustc-link-search=native={}", lib_path.display());
}
#[cfg(not(target_os = "macos"))]