This repository can be built on native Windows with the MSVC Rust toolchain. The steps below are the reference setup for building both the Rust engine and the Tauri Studio application without WSL.
- Windows 10 or Windows 11, x64
- Rust stable with the
x86_64-pc-windows-msvctarget - Visual Studio 2022 Build Tools
- Windows 11 SDK
10.0.22621.0or newer - LLVM for
libclang.dll - Node.js 20+ with
npm.cmd
Install Visual Studio 2022 Build Tools with these components:
Microsoft.VisualStudio.Workload.VCToolsMicrosoft.VisualStudio.Component.VC.Tools.x86.x64Microsoft.VisualStudio.Component.Windows11SDK.22621Microsoft.VisualStudio.Component.VC.CoreBuildTools
Install LLVM so that libclang.dll is available, for example under C:\Program Files\LLVM\bin\libclang.dll.
The Rust build depends on two pieces of native Windows tooling:
- MSVC and the Windows SDK, which provide
cl.exe,link.exe, and system libraries such askernel32.lib - LLVM, which provides
libclang.dllfor crates that usebindgen
If those tools are installed but not active in the current shell, Cargo may fail with errors such as:
link.exe not foundkernel32.libnot foundUnable to find libclang
Open cmd.exe or PowerShell and run the build from a Visual Studio developer environment.
call "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\Build\vcvars64.bat"
set "LIBCLANG_PATH=C:\Program Files\LLVM\bin"
%USERPROFILE%\.cargo\bin\cargo.exe build --release --bin open-ontologiesExpected output:
target\release\open-ontologies.exe
Use the real Node.js installation, not the Windows app execution alias. On some systems node.exe may resolve to a packaged app path under WindowsApps, while npm is missing from PATH. If that happens, prepend C:\Program Files\nodejs to PATH before running npm.cmd.
set "PATH=C:\Program Files\nodejs;%PATH%"
cd studio
npm.cmd install
npm.cmd run buildThe build step also runs npm run prepare-engine, which copies:
target\release\open-ontologies.exe
to:
studio\src-tauri\binaries\open-ontologies-x86_64-pc-windows-msvc.exe
From the same shell, with MSVC and LLVM already configured:
call "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\Build\vcvars64.bat"
set "LIBCLANG_PATH=C:\Program Files\LLVM\bin"
set "PATH=C:\Program Files\nodejs;%USERPROFILE%\.cargo\bin;%PATH%"
cd studio
npm.cmd run tauri buildExpected outputs:
studio\src-tauri\target\release\open-ontologies-studio.exestudio\src-tauri\target\release\bundle\msi\open-ontologies-studio_0.1.0_x64_en-US.msistudio\src-tauri\target\release\bundle\nsis\open-ontologies-studio_0.1.0_x64-setup.exe
serve-unixis intentionally unavailable on Windows. Useserveorserve-httpinstead.~path expansion uses%USERPROFILE%on Windows.- The Studio backend no longer depends on
sh,lsof, or Homebrew-specific paths when running on Windows.
The Visual Studio Build Tools installation is incomplete, or vcvars64.bat was not called in the current shell.
LLVM is not installed, or LIBCLANG_PATH does not point to the directory containing libclang.dll.
Install Node.js from the standard Windows installer and ensure C:\Program Files\nodejs is on PATH. If a WindowsApps alias shadows Node, explicitly prepend the Node.js installation directory before running npm.cmd.
Build the engine first with:
%USERPROFILE%\.cargo\bin\cargo.exe build --release --bin open-ontologies