Compilation Guide
-
Clone Repository with nested submodules
git clone --recurse-submodules -j8 https://github.com/PixiEditor/PixiEditor.git
or 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_PATH
enviroment 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
- PixiEditor.Desktop.csproj < — run it to start PixiEditor
- 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.sln
in your IDE of choice or run the following command in terminal:dotnet run src/PixiEditor.Desktop/ -r win-x64dotnet run src/PixiEditor.Desktop/ -r linux-x64dotnet run src/PixiEditor.Desktop/ -r osx-arm64Replace
osx-arm64
withosx-x64
if you are on Intel Mac.
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.