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 ONNX linking issues (#991)

Neptune1104c5af74f9
diff --git a/screenpipe-server/build.rs b/screenpipe-server/build.rs
new file mode 100644
index 000000000..6b38c418d
--- /dev/null
+++ b/screenpipe-server/build.rs
@@ -0,0 +1,11 @@
+#[cfg(target_os = "windows")]
+fn link_onnx() {
+ println!("cargo:rustc-link-search=native=../screenpipe-app-tauri/src-tauri/onnxruntime-win-x64-gpu-1.19.2/lib");
+}
+
+fn main() {
+ #[cfg(target_os = "windows")]
+ {
+ link_onnx();
+ }
+}