Skip to content

Instantly share code, notes, and snippets.

@tigregalis
Last active January 30, 2024 18:08
Show Gist options
  • Star 8 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tigregalis/8bba66b72e876f893d69c0d176afefb6 to your computer and use it in GitHub Desktop.
Save tigregalis/8bba66b72e876f893d69c0d176afefb6 to your computer and use it in GitHub Desktop.
building aseprite on windows

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

  1. download cmake and install it
  2. download ninja and install it
  3. download Visual Studio Community 2022
  4. install Visual Studio Community 2022 with the "Desktop development with C++ item", ensuring "Windows 10.0.18362.0 SDK" is selected
  5. download latest pre-built skia library (aseprite branch)
  6. extract the skia library to a directory (e.g. C:\deps\skia) (make note of this directory*)
  7. open a terminal (command prompt)
  8. 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.
  1. 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
  1. open the aseprite executable in the bin folder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment