Aseprite 源码编译记录

Posted by Pixel-Rabbit on Saturday, August 27, 2022

Aseprite 源码编译记录

Aseprite 源码地址:https://github.com/aseprite/aseprite 编译环境: image-20240813202754964

Compiling 编译

  1. Get Aseprite code, put it in a folder like C:\aseprite, and create a build directory inside to leave all the files that are result of the compilation process (.exe,.lib, .obj, .a, .o, etc).

     cd C:\aseprite
     mkdir build
    

    In this way, if you want to start with a fresh copy of Aseprite source code, you can remove the build directory and start again.

  2. Enter in the new directory and execute cmake:

     cd C:\aseprite\build
     cd 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
    
  3. After you have executed and configured cmake, you have to compile the project:

     cd C:\aseprite\build
     ninja aseprite
    
  4. When ninja finishes the compilation, you can find the executable inside C:\aseprite\build\bin\aseprite.exe.


编译完成的文件在群里 Tools>aseprite.zip


简中汉化包地址:https://gitee.com/J-11/Aseprite-Simplified-Chinese/blob/master/README.md

其他设置方法可以参考:https://zhuanlan.zhihu.com/p/462842368

初级教程可以参考:https://www.bilibili.com/video/av14603015/