Skip to content

Instantly share code, notes, and snippets.

@pixeldj
Created August 22, 2024 14:24
Show Gist options
  • Save pixeldj/6b03b84ecca56b8c3a5b9a204f62fcfa to your computer and use it in GitHub Desktop.
Save pixeldj/6b03b84ecca56b8c3a5b9a204f62fcfa to your computer and use it in GitHub Desktop.
Building screenpipe for Windows

Building for Windows

Note

These are the steps I used to build screenpipe for Windows. I already had the CUDA Toolkit installed and the CUDA_PATH set to my CUDA v12.6 folder. Replace V:\projects and V:\packages with your own folders.

  • Install chocolatey
  • Install git
  • Install CUDA Toolkit (if using NVIDIA and building with cuda)
  • Install MS Visual Studio Build Tools (below are the components I have installed)
    • Desktop development with C++
      • MSVC v143
      • Windows 11 SDK
      • C++ Cmake tools for Windows
      • Testing tools core features - Build tools
      • C++ AddressSanitizer
      • C++ ATL for latest v143
    • Individual components
      • C++ ATL for latest v143 build tools (x86 & x64)
      • MSBuild support for LLVM (clang-c) toolset
      • C++ Clang Compiler for Windows
choco install ffmpeg pkgconfiglite rust
cd V:\projects
git clone https://github.com/louis030195/screen-pipe
cd V:\packages
git clone https://github.com/microsoft/vcpkg.git
cd vcpkg
bootstrap-vcpkg.bat -disableMetrics
vcpkg.exe integrate install --disable-metrics
vcpkg.exe install ffmpeg

SET PKG_CONFIG_PATH=V:\packages\vcpkg\packages\ffmpeg_x64-windows\lib\pkgconfig
SET VCPKG_ROOT=V:\packages\vcpkg
SET LIBCLANG_PATH=C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\Llvm\x64\bin
cd V:\projects\screen-pipe

cargo build --release --features cuda
@pixeldj
Copy link
Author

pixeldj commented Aug 22, 2024

It did, but I have both 12.6 and 11.8 installed. CUDA_PATH is pointed to C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.6 but you could install 11.8 and change CUDA_PATH to that and see if it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment