Compile Aseprite in Windows

Aseprite is a open source pixel art creating/editing tool. You can compile it from source and use it for free.

Author Avatar
Shivang Rathore Published 17-Nov-2024 2 min read


If you are here from youtube video and ran into some issues kindly check issues and possible fixes

Getting the source code

You can download the source zip from release page Alt text for the image

Method 2: Clone from github
git clone --recursive https://github.com/aseprite/aseprite.git

Dependencies

  1. Cmake (3.16 or higher)
  2. Ninja Build System
  3. Skia Prebuilt binaries

Installing/Setting-Up Dependencies

# File tree should look like this
C:/
└── deps
    └── skia
        ├── include
        ├── modules
        ├── out
        ├── src
        └── third_party

Windows Dependencies

  1. Windows 10 or higher
  2. Visual Studio Community
  3. The Desktop development with C++ item + Windows 10/11 SDK from the Visual Studio installer Example Image

Building

Extract aseprite code in c:/aseprite
Open command prompt and run following commands.

call "C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\Tools\VsDevCmd.bat" -arch=x64
cd c:\aseprite
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DLAF_BACKEND=skia -DSKIA_DIR=C:\deps\skia -DSKIA_LIBRARY_DIR=C:\deps\skia\out\Release-x64 -DSKIA_LIBRARY=C:\deps\skia\out\Release-x64\skia.lib -G Ninja ..
ninja aseprite

Issues and Possible Fixes

’hb.h’: No such file or directory

hb (HarfBuzz) is text shaping library that puts together characters into words/sentences
So, in order to compile properly you have to change system language.

Video Tutorial