Skip to content

Instantly share code, notes, and snippets.

@Mitra-88
Forked from veganaize/Aseprite-build-linux.md
Last active March 15, 2025 12:44
Show Gist options
  • Save Mitra-88/4ae1bff376df819391e5b74a31a9e474 to your computer and use it in GitHub Desktop.
Save Mitra-88/4ae1bff376df819391e5b74a31a9e474 to your computer and use it in GitHub Desktop.
Compile Aseprite from source code for GNU/Linux

Prerequisites

Install dependencies

on Ubuntu/Debian:

sudo apt install g++ clang libc++-dev libc++abi-dev cmake ninja-build libx11-dev libxcursor-dev libxi-dev libgl1-mesa-dev libfontconfig1-dev curl unzip -y

On Fedora:

sudo dnf install gcc-c++ clang libcxx-devel cmake ninja-build libX11-devel libXcursor-devel libXi-devel mesa-libGL-devel fontconfig-devel curl unzip -y

On Arch Linux:

sudo pacman -S gcc clang libc++ cmake ninja libx11 libxcursor mesa-libgl fontconfig curl unzip --noconfirm

On OpenSUSE:

sudo zypper -n install gcc-c++ clang libc++-devel libc++abi-devel cmake ninja libX11-devel libXcursor-devel libXi-devel Mesa-libGL-devel fontconfig-devel unzip curl

Create folders

mkdir -p ~/src/aseprite/build ~/src/deps/skia

Download & extract Aseprite source

cd ~/src/aseprite
curl --proto '=https' --tlsv1.3 -LsSf https://github.com/aseprite/aseprite/releases/download/v1.3.9.1/Aseprite-v1.3.9.1-Source.zip
unzip Aseprite-v1.3.9.1-Source.zip

Download & extract Skia

cd ~/src/deps/skia
curl --proto '=https' --tlsv1.3 -LsSf https://github.com/aseprite/skia/releases/download/m102-861e4743af/Skia-Linux-Release-x64-libc++.zip
unzip Skia-Linux-Release-x64-libc++.zip

Build Aseprite

cd ~/src/aseprite/build
export CC=clang
export CXX=clang++
cmake \
  -DCMAKE_BUILD_TYPE=RelWithDebInfo \
  -DCMAKE_CXX_FLAGS:STRING=--stdlib=libc++ \
  -DCMAKE_EXE_LINKER_FLAGS:STRING=--stdlib=libc++ \
  -DLAF_BACKEND=skia \
  -DSKIA_DIR=$HOME/src/deps/skia \
  -DSKIA_LIBRARY_DIR=$HOME/src/deps/skia/out/Release-x64 \
  -DSKIA_LIBRARY=$HOME/src/deps/skia/out/Release-x64/libskia.a \
  -G Ninja ..
ninja aseprite

Install program

mkdir ~/opt
mv -T bin ~/opt/aseprite

To run Aseprite, execute the following command:

~/opt/aseprite/aseprite

Tested With Aseprite v1.3.9.1

Please remember to support the creators of Aseprite. Only use this method to try the program or if you don't have access to funds or a credit card :)

@Mitra-88
Copy link
Author

when will the guide be updated for the latest version

will do some time later, u dont for it to be updated just change the urls to the latest version

@aurora-1-2-3
Copy link

tried, didnt work. Got stuck at the last part ninja aseprite

@Mitra-88
Copy link
Author

tried, didnt work. Got stuck at the last part ninja aseprite

same maybe its because im using arch ill try it on ubnutu, older releases seems to be working just fine

@Mitra-88
Copy link
Author

Mitra-88 commented Mar 13, 2025

tried, didnt work. Got stuck at the last part ninja aseprite

okay i tried Skia-m124 i was able to compile it but it fails at the end so its pointless, i followed the official guide and it seems like im not the only one having this issue hopefully it gets fixed soon

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