Compilation Guide
-
Clone Repository with nested submodules
git clone --recurse-submodules -j8 https://github.com/PixiEditor/PixiEditor.gitor if cloned already, init submodules with
cd PixiEditorgit submodule update --init --recursive -
Download Wasi-sdk release for your system
-
Extract downloaded sdk
-
Set
WASI_SDK_PATHenviroment variable to extracted directory -
Install wasi-experimental workload
Open terminal and run the following command:
dotnet workload install wasi-experimental -
Run PixiEditor.Desktop project
This is how the repo structure looks like after cloning:
DirectoryPixiEditor
Directorysrc
- PixiEditor.sln < — Source code solution file
DirectoryPixiEditor.Desktop
- PixiEditor.Desktop.csproj < — run it to start PixiEditor
DirectoryPixiEditor
- PixiEditor.csproj < — Main project, contains most of the code
Directorytests
- PixiEditorTests.sln
Directorysamples
- PixiEditorExtensionSamples.sln < — Solution containing sample extensions for PixiEditor
- Sample1_HelloWorld.csproj
- Sample2_LocalizationSample.csproj
Either open
PixiEditor/src/PixiEditor.slnin your IDE of choice or run the following command in terminal:dotnet run --project src/PixiEditor.Desktop/PixiEditor.Desktop.csproj -r win-x64dotnet run --project src/PixiEditor.Desktop/PixiEditor.Desktop.csproj -r linux-x64dotnet run --project src/PixiEditor.Desktop/PixiEditor.Desktop.csproj -r osx-arm64Replace
osx-arm64withosx-x64if you are on Intel Mac.Make sure to run the commands above from root repo directory (the one contaning
srcfolder)
Known issues and solutions
Section titled “Known issues and solutions”Class X_Action not found
Section titled “Class X_Action not found”It means that code generators did not run correctly. This happens on .NET versions below 8.0.405. Ensure that you have .NET SDK 8.0.405 or higher installed.
Do not run PixiEditor with .NET 9, wasi-experimental workload is not compatible with .NET 9.
wasm-tools workload is not installed
Section titled “wasm-tools workload is not installed”This error can be ignored, since it only applies to PixiEditor.Browser project, which is not currently supported.
All of our content is carefully written by hand, no AI was involved during the process.