Build guide
Building on Windows
First, install the required GTK-related dependencies:
- Install MinGW64 via MSYS2
- From the MinGW64 terminal, run pacman -S mingw-w64-x86_64-libadwaita mingw-w64-x86_64-webp-pixbuf-loader
Pinta can then be built by opening Pinta.sln
in Visual Studio.
Ensure that .NET 8 is installed via the Visual Studio installer.
For building on the command line:
- Install the .NET 8 SDK.
- Build:
- dotnet build
- Run:
- dotnet run --project Pinta
Building on macOS
- Install .NET 8 and GTK4
brew install dotnet-sdk libadwaita adwaita-icon-theme gettext webp-pixbuf-loader
- For Apple Silicon, set
DYLD_LIBRARY_PATH=/opt/homebrew/lib
in the environment so that Pinta can load the GTK libraries - For Intel, you may need to set
DYLD_LIBRARY_PATH=/usr/local/lib
when using .NET 9 or higher - Build:
dotnet build
- Run:
dotnet run --project Pinta
Building on Linux
- Install .NET 8 following the instructions for your Linux distribution.
- Install other dependencies (instructions are for Ubuntu 22.10, but should be similar for other distros):
sudo apt install autotools-dev autoconf-archive gettext intltool libadwaita-1-dev
- Minimum library versions:
gtk
>= 4.12 andlibadwaita
>= 1.4 - Optional dependencies:
webp-pixbuf-loader
- Build (option 1, for development and testing):
dotnet build
dotnet run --project Pinta
- Build (option 2, for installation):
./autogen.sh
- If building from a tarball, run
./configure
instead. - Add the
--prefix=<install directory>
argument to install to a directory other than/usr/local
- If building from a tarball, run
make install