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: linux build and instructions

Louis Beaumont7cbafe070341
diff --git a/content/docs/pages/docs/getting-started.mdx b/content/docs/pages/docs/getting-started.mdx
index 4c3e660ad..0b6986936 100644
--- a/content/docs/pages/docs/getting-started.mdx
+++ b/content/docs/pages/docs/getting-started.mdx
@@ -210,11 +210,23 @@ bun tauri build
1. install dependencies with the following commands:
```bash copy
-sudo apt-get install -y g++ ffmpeg tesseract-ocr cmake libavformat-dev libavfilter-dev libavdevice-dev libssl-dev libtesseract-dev libxdo-dev libsdl2-dev libclang-dev libxtst-dev
+sudo apt-get update
+sudo apt-get install -y g++ ffmpeg tesseract-ocr cmake pkg-config \
+ libavformat-dev libavfilter-dev libavdevice-dev libavcodec-dev libavutil-dev libswscale-dev \
+ libssl-dev libtesseract-dev libxdo-dev libsdl2-dev libclang-dev \
+ libxtst-dev build-essential libasound2-dev libdbus-1-dev \
+ libxcb1-dev libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev \
+ libx11-dev libxi-dev libxext-dev libxrandr-dev libxinerama-dev libxcursor-dev \
+ clang llvm-dev
+
+# set libclang path (for ubuntu/debian with llvm-14)
+export LIBCLANG_PATH=/usr/lib/llvm-14/lib
+
+# install rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
```
-2. install bun cli (required for building):
+2. install bun cli (required for pipes & building desktop app):
```bash copy
curl -fsSL https://bun.sh/install | bash
```
@@ -254,7 +266,6 @@ to enable cuda support, add the `--features cuda` flag when building:
```bash copy
cargo build --release --features cuda
```
-
##### intel mkl support
for intel cpu optimization, add the `--features mkl` flag:
```bash copy
@@ -296,3 +307,4 @@ you can use screenpipe in your business either by:
[book a demo with our team](https://cal.com/louis030195/screenpipe-for-businesses)
+
diff --git a/screenpipe-server/src/index.rs b/screenpipe-server/src/index.rs
index 74a6f2be0..fd8911b5d 100644
--- a/screenpipe-server/src/index.rs
+++ b/screenpipe-server/src/index.rs
@@ -1,7 +1,6 @@
use anyhow::Result;
use image::DynamicImage;
use regex::Regex;
-use screenpipe_vision::perform_ocr_tesseract;
use screenpipe_vision::utils::{compare_with_previous_image, OcrEngine};
#[cfg(target_os = "macos")]
@@ -10,7 +9,6 @@ use screenpipe_vision::perform_ocr_apple;
#[cfg(target_os = "windows")]
use screenpipe_vision::perform_ocr_windows;
-#[cfg(not(any(target_os = "macos", target_os = "windows")))]
use screenpipe_vision::perform_ocr_tesseract;
use serde_json::json;