https://github.com/aseprite/aseprite/blob/master/INSTALL.md
instructions taken from above, but a complete summary specifically for windows (in the right order) is below
- download cmake and install it
- download ninja and install it
- download Visual Studio Community 2022
- install Visual Studio Community 2022 with the "Desktop development with C++ item", ensuring "Windows 10.0.18362.0 SDK" is selected
- download latest pre-built skia library (aseprite branch)
- extract the skia library to a directory (e.g.
C:\deps\skia
) (make note of this directory*) - open a terminal (command prompt)
- in the terminal, run this command:
# the below line assumes you installed it to the default location `C:\Program Files (x86)\Microsoft Visual Studio\2022\Community`, otherwise replace with your install location
call "C:\Program Files (x86)\Microsoft Visual Studio\2022\Community\Common7\Tools\VsDevCmd.bat" -arch=x64
# `VsDevCmd.bat` sets the Visual Studio related environment variables that are necessary for compiling, linking and building applications on the command line.
- clone repo, create build directory, create the build files, build it, with these commands:
# clone the repository (assuming you have git installed)
git clone --recursive https://github.com/aseprite/aseprite.git
# open the repository
cd aseprite
# create a build directory
mkdir build
# open the build diretory
cd build
# create build files. NOTE: replace `C:\deps\skia` (3x) in the command below with the directory you created above*
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 ..
# build it
ninja aseprite