

Download the latest version of asprite/skia - windows x86 (link) and extract it to 'C:\deps\skia' (Again, beware of double folders)įrom the start menu, open Developer Command Prompt for VS 20XX depot_tools should be the only folder in 'C:\deps' at this point)ĭownload the latest ninja-win (link) and extract the exe to 'C:\Program Files\CMake\bin' (It should now be C:\Program Files\CMake\bin\ninja.exe)ġ.

Aseprite github zip#
The path should be 'C:\deps'ĭownload depot tools (link) and extract the contents of the zip to 'C:\deps\depot_tools' (Make sure you don't end up creating 'C:\deps\depot_tools\depot_tools'. To make sure everything is configured, create a new project with the 'Empty Project' template and click green play button (should say 'Local Windows Debugger'Ĭreate a folder on the C drive called 'deps'. (4a) Open Visual Studio Community to complete install.
Aseprite github install#
Install the latest Visual Studio Community (requires restart) Download Page 10.0.0 (Direct download) Download page for newer versionsĭownload and install the latest CMake 3.18.1-win64 (Direct download) Download page for newer versions Install git Download page, use windows setupĭownload LLVM and run the exe to install. Its still a fairly involved process, so make sure to read through things carefully. This guide is for windows and is intended to be as easy as possible. You can pay $20 for a ready to use copy with support and free updates, or you can build it from source yourself and use it completely free. When I link the DEBUG-build libs into a RELEASE-build project in VS, it builds and runs without errors, suggesting that VS2020 sees the DEBUG-build libs as RELEASE-build libs, despite the changes listed above.Aseprite is open(ish) source. However, when statically linking them into a DEBUG-build project in VS2020, I get lots of this error: LNK2038 - mismatch detected for 'RuntimeLibrary': value 'MTd_StaticDebug' doesn't match value 'MT_StaticRelease' It builds fine, and the lib files are notably bigger, suggesting that they contain debug info. output directory "Release-圆4" to "Debug-圆4"."is_official_build=true" to "is_official_build=false".To: gn gen out/Debug-圆4 -args="is_debug=true is_official_build=false skia_use_system_expat=false skia_use_system_icu=false skia_use_system_libjpeg_turbo=false skia_use_system_libpng=false skia_use_system_libwebp=false skia_use_system_zlib=false skia_use_sfntly=false skia_use_freetype=true skia_use_harfbuzz=true skia_pdf_subset_harfbuzz=true skia_use_system_freetype2=false skia_use_system_harfbuzz=false target_cpu=""圆4"" cc=""clang"" cxx=""clang++"" clang_win=""c:\dev\llvm"" win_vc=""C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC"" extra_cflags=" I changed them from: gn gen out/Release-圆4 -args="is_debug=false is_official_build=true skia_use_system_expat=false skia_use_system_icu=false skia_use_system_libjpeg_turbo=false skia_use_system_libpng=false skia_use_system_libwebp=false skia_use_system_zlib=false skia_use_sfntly=false skia_use_freetype=true skia_use_harfbuzz=true skia_pdf_subset_harfbuzz=true skia_use_system_freetype2=false skia_use_system_harfbuzz=false target_cpu=""圆4"" cc=""clang"" cxx=""clang++"" clang_win=""c:\deps\llvm"" win_vc=""C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC"" extra_cflags="

So I changed the final commands to try and compile a DEBUG-build.
Aseprite github how to#
The problem is that the instructions only say how to compile RELEASE-build libs, whereas I need to compile DEBUG-build libs so that I can use the debugger in VS2020.

Afterwards they work just fine when linked to a project in Visual Studio 2020 (my main IDE). The instructions have you compile the libs using LLVM/CLANG and the Ninja build system. I'm following the windows compilation instructions written up in the git repo's readme. Specifically, the Skia-for-Aseprite libs (link is to the github page). I'm building static C++ libs off of github.
