Skip to content

Instantly share code, notes, and snippets.

@VermeilChan
Last active December 13, 2024 19:00
Show Gist options
  • Save VermeilChan/3fd0188afeb8d49f219efb008b612197 to your computer and use it in GitHub Desktop.
Save VermeilChan/3fd0188afeb8d49f219efb008b612197 to your computer and use it in GitHub Desktop.
Compile Aseprite from source code for Windows 11/10 x64

Prerequisites

Download and Set Up Visual Studio Community 2022

Get The Source Code

Download and Set Up CMake

  • Get CMake cmake-3.xx.x-windows-x86_64.msi

  • Choose the option Add CMake To The PATH For environment variable

Download and Set Up Ninja

  • Download Ninja Build System.

  • Extract ninja-win.zip and copy ninja.exe to C:\Program Files\CMake\bin.

Download Skia

  • Download Skia Skia-Windows-Release-x64.zip.

  • In the C:\ directory, create a folder named deps.

  • Inside the deps directory, create another folder named skia.

  • Extract the contents of Skia-Windows-Release-x64.zip into the skia folder.

Compiling

  • In the C:\ directory, create a folder named aseprite.

  • Extract the contents of Aseprite-v1.x-Source.zip into the aseprite folder.

  • Search Command Prompt

  • Execute the 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 ..
  • Now compile with Ninja Build System:
ninja aseprite
  • If CMake is unable to detect the C/C++ compiler:

    • Execute the following command instead:
    cmake -DCMAKE_CXX_COMPILER="C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.42.34433\bin\Hostx64\x64\cl.exe" -DCMAKE_C_COMPILER="C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.42.34433\bin\Hostx64\x64\cl.exe" -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 ..
  • The executable will be located at C:\aseprite\build\bin\aseprite.exe.

Tested With Aseprite v1.3.9.1

Please remember to support the creators of Aseprite. Only use this method to try the program or if you don't have access to funds or a credit card :)

@VermeilChan
Copy link
Author

Hi there, I see some people have already had the issue of ` when parsing string

C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\bin\Hostx64\x64\cl.exe

Invalid character escape '\P'.`

I saw you added this code to fix the issue: cmake -DCMAKE_CXX_COMPILER="C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\bin\Hostx64\x64\cl.exe" -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 ..

However I am still getting the issue regardless of which one i use.

Im clueless about this stuff so if you could help me i would really appreciate it.

I'm as clueless as you are I only know the basics too sorry :(

@kalmaguer
Copy link

Perfect instructions, worked with latest Aseprite v1.3.8.1 thank you!

I saw someone mention something about git. I'm not sure if it matters but I already had git installed.

@VermeilChan
Copy link
Author

Perfect instructions, worked with latest Aseprite v1.3.8.1 thank you!

I saw someone mention something about git. I'm not sure if it matters but I already had git installed.

u dont need git, unless you want to build a development build witch is unstable

@agajgjsa592586
Copy link

I feel like this.

-- Check for working C compiler: /c/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.40.33807/bin/HostX64/x64/cl.exe
-- Check for working C compiler: /c/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.40.33807/bin/HostX64/x64/cl.exe - broken
CMake Error at /opt/devkitpro/msys2/usr/share/cmake/Modules/CMakeTestCCompiler.cmake:70 (message):
The C compiler

"/c/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.40.33807/bin/HostX64/x64/cl.exe"

is not able to compile a simple test program.

It fails with the following output:

Change Dir: /c/aseprite/build/CMakeFiles/CMakeScratch/TryCompile-eKZVUg

Run Build Command(s):/c/Program Files/CMake/bin/ninja.exe cmTC_db81b && ninja: error: '/c/aseprite/build/CMakeFiles/CMakeScratch/TryCompile-eKZVUg/testCCompiler.c', needed by 'CMakeFiles/cmTC_db81b.dir/testCCompiler.c.o', missing and no known rule to make it

CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:23 (project)

-- Configuring incomplete, errors occurred!
See also "/c/aseprite/build/CMakeFiles/CMakeOutput.log".
See also "/c/aseprite/build/CMakeFiles/CMakeError.log".

is broken for me...

@VermeilChan
Copy link
Author

I feel like this.

-- Check for working C compiler: /c/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.40.33807/bin/HostX64/x64/cl.exe -- Check for working C compiler: /c/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.40.33807/bin/HostX64/x64/cl.exe - broken CMake Error at /opt/devkitpro/msys2/usr/share/cmake/Modules/CMakeTestCCompiler.cmake:70 (message): The C compiler

"/c/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.40.33807/bin/HostX64/x64/cl.exe"

is not able to compile a simple test program.

It fails with the following output:

Change Dir: /c/aseprite/build/CMakeFiles/CMakeScratch/TryCompile-eKZVUg

Run Build Command(s):/c/Program Files/CMake/bin/ninja.exe cmTC_db81b && ninja: error: '/c/aseprite/build/CMakeFiles/CMakeScratch/TryCompile-eKZVUg/testCCompiler.c', needed by 'CMakeFiles/cmTC_db81b.dir/testCCompiler.c.o', missing and no known rule to make it

CMake will not be able to correctly generate this project. Call Stack (most recent call first): CMakeLists.txt:23 (project)

-- Configuring incomplete, errors occurred! See also "/c/aseprite/build/CMakeFiles/CMakeOutput.log". See also "/c/aseprite/build/CMakeFiles/CMakeError.log".

is broken for me...

as much as i want to help you, i dont really much about CMake

@Roslam24
Copy link

i get this error

CMake Error at CMakeLists.txt:23 (project):
  Running

   'C:/deps/depot_tools/ninja' '--version'

  failed with:

   unknown error


CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!

if u guys problem with this. maybe, u should use different ninja version. i was use x64 version of ninja and didn't work, then try the x86 version and it works.
so if u fail in x64 version then try x86 version of ninja, or vice versa.

@charlesculp
Copy link

I am also struggling, here. I have utilized my "E:" instead of my "C:", but it is unable to find Perl, OpenSSL, LIBGCC, PCRE. I ran a repair on my cmake install, but that didn't seem to fix it. I did a reboot, and then the results are below.

What I have as my execute code:
call "E:\Visual Studio\IDE\Common7\Tools\VsDevCmd.bat" -arch=x64
cd E:\aseprite
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DLAF_BACKEND=skia -DSKIA_DIR=E:\deps\skia -DSKIA_LIBRARY_DIR=E:\deps\skia\out\Release-x64 -DSKIA_LIBRARY=E:\deps\skia\out\Release-x64\skia.lib -G Ninja ..
ninja aseprite

What the result is:
`
E:\aseprite\build>cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DLAF_BACKEND=skia -DSKIA_DIR=E:\deps\skia -DSKIA_LIBRARY_DIR=E:\deps\skia\out\Release-x64 -DSKIA_LIBRARY=E:\deps\skia\out\Release-x64\skia.lib -G Ninja ..
-- Could NOT find CCache (missing: CCache_EXECUTABLE)
CMake Deprecation Warning at third_party/libpng/CMakeLists.txt:33 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.

Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.

CMake Deprecation Warning at third_party/libpng/CMakeLists.txt:34 (cmake_policy):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.

Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.

-- curl version=[7.79.1-DEV]
-- Could NOT find Perl (missing: PERL_EXECUTABLE)
-- Enabled features: SSL IPv6 unixsockets libz AsynchDNS Largefile SSPI alt-svc HSTS SPNEGO Kerberos NTLM
-- Enabled protocols: DICT FILE FTP FTPS GOPHER GOPHERS HTTP HTTPS IMAP IMAPS LDAP MQTT POP3 POP3S RTSP SMB SMBS SMTP SMTPS TELNET TFTP
-- Enabled SSL backends: Schannel
-- Version: 10.2.0
-- Build type: RelWithDebInfo
CMake Deprecation Warning at third_party/libarchive/CMakeLists.txt:2 (CMAKE_MINIMUM_REQUIRED):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.

Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.

-- Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the system variable OPENSSL_ROOT_DIR (missing: OPENSSL_CRYPTO_LIBRARY OPENSSL_INCLUDE_DIR)
CMake Warning (dev) at E:/CMake/share/cmake-3.30/Modules/FindPackageHandleStandardArgs.cmake:441 (message):
The package name passed to find_package_handle_standard_args (LIBGCC)
does not match the name of the calling package (LibGCC). This can lead to
problems in calling code that expects find_package result variables
(e.g., _FOUND) to follow a certain pattern.
Call Stack (most recent call first):
third_party/libarchive/build/cmake/FindLibGCC.cmake:17 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
third_party/libarchive/CMakeLists.txt:1258 (FIND_PACKAGE)
This warning is for project developers. Use -Wno-dev to suppress it.

-- Could NOT find LIBGCC (missing: LIBGCC_LIBRARY)
-- Could NOT find PCREPOSIX (missing: PCREPOSIX_LIBRARY PCRE_INCLUDE_DIR)
CMake Warning (dev) at E:/CMake/share/cmake-3.30/Modules/FindPackageHandleStandardArgs.cmake:441 (message):
The package name passed to find_package_handle_standard_args (PCRE) does
not match the name of the calling package (PCREPOSIX). This can lead to
problems in calling code that expects find_package result variables
(e.g., _FOUND) to follow a certain pattern.
Call Stack (most recent call first):
third_party/libarchive/build/cmake/FindPCREPOSIX.cmake:23 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
third_party/libarchive/CMakeLists.txt:1263 (FIND_PACKAGE)
This warning is for project developers. Use -Wno-dev to suppress it.

-- Could NOT find PCRE (missing: PCRE_LIBRARY)
-- Extended attributes support: none
-- ACL support: none
-- laf backend: skia
-- laf zlib: zlibstatic
-- laf pixman: pixman
-- laf freetype: E:/deps/skia/out/Release-x64/freetype2.lib
-- laf harfbuzz: E:/deps/skia/out/Release-x64/harfbuzz.lib
-- skia dir: E:/deps/skia
-- skia library: E:/deps/skia/out/Release-x64/skia.lib
-- skia library dir: E:/deps/skia/out/Release-x64
-- aseprite libwebp: E:/deps/skia/out/Release-x64/libwebp.lib
-- Configuring done (0.9s)
-- Generating done (0.9s)
-- Build files have been written to: E:/aseprite/build
`

@Alex5lider
Copy link

I did everything and followed all the steps, it work or at least it told me it worked saying:
-- Build files have been written to: C:/aseprite/build
but when i looked in the files I couldn't find it. This is probably just me being dumb since this is the first time I do this kind of thing but any help would be appreciated.
Thank you in advance.

@VermeilChan
Copy link
Author

I did everything and followed all the steps, it work or at least it told me it worked saying: -- Build files have been written to: C:/aseprite/build but when i looked in the files I couldn't find it. This is probably just me being dumb since this is the first time I do this kind of thing but any help would be appreciated. Thank you in advance.

no its okay your not dumb i even said that in guide, you need to go inside the bin folder and you will the aseprite exe

@VermeilChan
Copy link
Author

I am also struggling, here. I have utilized my "E:" instead of my "C:", but it is unable to find Perl, OpenSSL, LIBGCC, PCRE. I ran a repair on my cmake install, but that didn't seem to fix it. I did a reboot, and then the results are below.

What I have as my execute code: call "E:\Visual Studio\IDE\Common7\Tools\VsDevCmd.bat" -arch=x64 cd E:\aseprite mkdir build cd build cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DLAF_BACKEND=skia -DSKIA_DIR=E:\deps\skia -DSKIA_LIBRARY_DIR=E:\deps\skia\out\Release-x64 -DSKIA_LIBRARY=E:\deps\skia\out\Release-x64\skia.lib -G Ninja .. ninja aseprite

What the result is: ` E:\aseprite\build>cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DLAF_BACKEND=skia -DSKIA_DIR=E:\deps\skia -DSKIA_LIBRARY_DIR=E:\deps\skia\out\Release-x64 -DSKIA_LIBRARY=E:\deps\skia\out\Release-x64\skia.lib -G Ninja .. -- Could NOT find CCache (missing: CCache_EXECUTABLE) CMake Deprecation Warning at third_party/libpng/CMakeLists.txt:33 (cmake_minimum_required): Compatibility with CMake < 3.5 will be removed from a future version of CMake.

Update the VERSION argument value or use a ... suffix to tell CMake that the project does not need compatibility with older versions.

CMake Deprecation Warning at third_party/libpng/CMakeLists.txt:34 (cmake_policy): Compatibility with CMake < 3.5 will be removed from a future version of CMake.

Update the VERSION argument value or use a ... suffix to tell CMake that the project does not need compatibility with older versions.

-- curl version=[7.79.1-DEV] -- Could NOT find Perl (missing: PERL_EXECUTABLE) -- Enabled features: SSL IPv6 unixsockets libz AsynchDNS Largefile SSPI alt-svc HSTS SPNEGO Kerberos NTLM -- Enabled protocols: DICT FILE FTP FTPS GOPHER GOPHERS HTTP HTTPS IMAP IMAPS LDAP MQTT POP3 POP3S RTSP SMB SMBS SMTP SMTPS TELNET TFTP -- Enabled SSL backends: Schannel -- Version: 10.2.0 -- Build type: RelWithDebInfo CMake Deprecation Warning at third_party/libarchive/CMakeLists.txt:2 (CMAKE_MINIMUM_REQUIRED): Compatibility with CMake < 3.5 will be removed from a future version of CMake.

Update the VERSION argument value or use a ... suffix to tell CMake that the project does not need compatibility with older versions.

-- Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the system variable OPENSSL_ROOT_DIR (missing: OPENSSL_CRYPTO_LIBRARY OPENSSL_INCLUDE_DIR) CMake Warning (dev) at E:/CMake/share/cmake-3.30/Modules/FindPackageHandleStandardArgs.cmake:441 (message): The package name passed to find_package_handle_standard_args (LIBGCC) does not match the name of the calling package (LibGCC). This can lead to problems in calling code that expects find_package result variables (e.g., _FOUND) to follow a certain pattern. Call Stack (most recent call first): third_party/libarchive/build/cmake/FindLibGCC.cmake:17 (FIND_PACKAGE_HANDLE_STANDARD_ARGS) third_party/libarchive/CMakeLists.txt:1258 (FIND_PACKAGE) This warning is for project developers. Use -Wno-dev to suppress it.

-- Could NOT find LIBGCC (missing: LIBGCC_LIBRARY) -- Could NOT find PCREPOSIX (missing: PCREPOSIX_LIBRARY PCRE_INCLUDE_DIR) CMake Warning (dev) at E:/CMake/share/cmake-3.30/Modules/FindPackageHandleStandardArgs.cmake:441 (message): The package name passed to find_package_handle_standard_args (PCRE) does not match the name of the calling package (PCREPOSIX). This can lead to problems in calling code that expects find_package result variables (e.g., _FOUND) to follow a certain pattern. Call Stack (most recent call first): third_party/libarchive/build/cmake/FindPCREPOSIX.cmake:23 (FIND_PACKAGE_HANDLE_STANDARD_ARGS) third_party/libarchive/CMakeLists.txt:1263 (FIND_PACKAGE) This warning is for project developers. Use -Wno-dev to suppress it.

-- Could NOT find PCRE (missing: PCRE_LIBRARY) -- Extended attributes support: none -- ACL support: none -- laf backend: skia -- laf zlib: zlibstatic -- laf pixman: pixman -- laf freetype: E:/deps/skia/out/Release-x64/freetype2.lib -- laf harfbuzz: E:/deps/skia/out/Release-x64/harfbuzz.lib -- skia dir: E:/deps/skia -- skia library: E:/deps/skia/out/Release-x64/skia.lib -- skia library dir: E:/deps/skia/out/Release-x64 -- aseprite libwebp: E:/deps/skia/out/Release-x64/libwebp.lib -- Configuring done (0.9s) -- Generating done (0.9s) -- Build files have been written to: E:/aseprite/build `

i dont really think i can help sorry

@charlesculp
Copy link

i dont really think i can help sorry

I appreciate you making these instructions and replying, I will try some more tonight.

@VermeilChan
Copy link
Author

i dont really think i can help sorry

I appreciate you making these instructions and replying, I will try some more tonight.

yeah im sorry, did you try in disk C? or you cant?

@charlesculp
Copy link

at almost 8 GB, Visual Studio takes up too much space to put it on my C:. I have over a terabyte free on my E:.
With that thought, I moved the aseprite folder to my C:. At minimum to see if I can get it to compile, or to try it out. This reminded me that the error log I showed was for a second build. I had to clear the build folder, and then I get different errors. It seems to be missing all sorts of includes. I am going to review this on my own, as it is doing some strange things when running.

@hpqbdy
Copy link

hpqbdy commented Oct 3, 2024

I did everything and followed all the steps, it work or at least it told me it worked saying: -- Build files have been written to: C:/aseprite/build but when i looked in the files I couldn't find it. This is probably just me being dumb since this is the first time I do this kind of thing but any help would be appreciated. Thank you in advance.

no its okay your not dumb i even said that in guide, you need to go inside the bin folder and you will the aseprite exe

I have the same issue. the bin folder is completely empty. I'm completely new to anything git related, python, etc. I also failed to get this ML tool to remove backgrounds from videos. Are there some other core components I might be missing from something like VSS or VSB?

@VermeilChan
Copy link
Author

I did everything and followed all the steps, it work or at least it told me it worked saying: -- Build files have been written to: C:/aseprite/build but when i looked in the files I couldn't find it. This is probably just me being dumb since this is the first time I do this kind of thing but any help would be appreciated. Thank you in advance.

no its okay your not dumb i even said that in guide, you need to go inside the bin folder and you will the aseprite exe

I have the same issue. the bin folder is completely empty. I'm completely new to anything git related, python, etc. I also failed to get this ML tool to remove backgrounds from videos. Are there some other core components I might be missing from something like VSS or VSB?

i mean i dont really understand, every time i want to build aseprite i use this guide and it works

@wilsonstreet
Copy link

For those who are not seeing the executable in C:/aseprite/build/bin
How I fixed it was enter in ninja aseprite
It'll take some time, but after it finished the exe file was in bin.

@VermeilChan
Copy link
Author

For those who are not seeing the executable in C:/aseprite/build/bin How I fixed it was enter in ninja aseprite It'll take some time, but after it finished the exe file was in bin.

there is no way ppl didnt compile it with ninja 😭 ITS THERE

@wilsonstreet
Copy link

For those who are not seeing the executable in C:/aseprite/build/bin How I fixed it was enter in ninja aseprite It'll take some time, but after it finished the exe file was in bin.

there is no way ppl didnt compile it with ninja 😭 ITS THERE

even when paired with the ending commands it didnt appear until separated

@VermeilChan
Copy link
Author

For those who are not seeing the executable in C:/aseprite/build/bin How I fixed it was enter in ninja aseprite It'll take some time, but after it finished the exe file was in bin.

there is no way ppl didnt compile it with ninja 😭 ITS THERE

even when paired with the ending commands it didnt appear until separated

okay in that case ill add a new section for it thank you vro :)

@Cledosvaldo
Copy link

Cledosvaldo commented Oct 13, 2024

Hello! I've been trying to compile Aseprite for the past few days, but nothing is working. So basically, I installed everything and put the files in their respective folders, but when I tried compiling it, it started good, but then...:

-- The C compiler identification is MSVC 19.41.34123.0
-- The CXX compiler identification is MSVC 19.41.34123.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Check for working C compiler: /c/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.41.34120/bin/HostX64/x64/cl.exe
-- Check for working C compiler: /c/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.41.34120/bin/HostX64/x64/cl.exe - broken
CMake Error at /opt/devkitpro/msys2/usr/share/cmake/Modules/CMakeTestCCompiler.cmake:67 (message):
The C compiler

"/c/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.41.34120/bin/HostX64/x64/cl.exe"

is not able to compile a simple test program.

It fails with the following output:

Change Dir: '/c/aseprite/build/CMakeFiles/CMakeScratch/TryCompile-a9HHZB'

Run Build Command(s): "/c/Program Files/CMake/bin/ninja.exe" -v cmTC_a0313
ninja: error: '/c/aseprite/build/CMakeFiles/CMakeScratch/TryCompile-a9HHZB/testCCompiler.c', needed by 'CMakeFiles/cmTC_a0313.dir/testCCompiler.c.o', missing and no known rule to make it

CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:23 (project)

-- Configuring incomplete, errors occurred!

Then I tried again but using the command that is used in case CMake is unable to detect the C/C++ compiler, and this happened:

CMake Error at build/CMakeFiles/3.30.1/CMakeCCompiler.cmake:2 (set):
Syntax error in cmake code at

/c/aseprite/build/CMakeFiles/3.30.1/CMakeCCompiler.cmake:2

when parsing string

C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\bin\Hostx64\x64\cl.exe

Invalid character escape '\P'.
Call Stack (most recent call first):
CMakeLists.txt:23 (project)

And now for some reason, even when using the normal command, it also does this second error, any idea on why this is happening?

@VermeilChan
Copy link
Author

Hello! I've been trying to compile Aseprite for the past few days, but nothing is working. So basically, I installed everything and put the files in their respective folders, but when I tried compiling it, it started good, but then...:

-- The C compiler identification is MSVC 19.41.34123.0
-- The CXX compiler identification is MSVC 19.41.34123.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Check for working C compiler: /c/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.41.34120/bin/HostX64/x64/cl.exe
-- Check for working C compiler: /c/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.41.34120/bin/HostX64/x64/cl.exe - broken
CMake Error at /opt/devkitpro/msys2/usr/share/cmake/Modules/CMakeTestCCompiler.cmake:67 (message):
The C compiler

"/c/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.41.34120/bin/HostX64/x64/cl.exe"

is not able to compile a simple test program.
It fails with the following output:

Change Dir: '/c/aseprite/build/CMakeFiles/CMakeScratch/TryCompile-a9HHZB'

Run Build Command(s): "/c/Program Files/CMake/bin/ninja.exe" -v cmTC_a0313
ninja: error: '/c/aseprite/build/CMakeFiles/CMakeScratch/TryCompile-a9HHZB/testCCompiler.c', needed by 'CMakeFiles/cmTC_a0313.dir/testCCompiler.c.o', missing and no known rule to make it

CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:23 (project)
-- Configuring incomplete, errors occurred!

Then I tried again but using the command that is used in case CMake is unable to detect the C/C++ compiler, and this happened:

CMake Error at build/CMakeFiles/3.30.1/CMakeCCompiler.cmake:2 (set):
Syntax error in cmake code at

/c/aseprite/build/CMakeFiles/3.30.1/CMakeCCompiler.cmake:2

when parsing string

C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\bin\Hostx64\x64\cl.exe

Invalid character escape '\P'.
Call Stack (most recent call first):
CMakeLists.txt:23 (project)

And now for some reason, even when using the normal command, it also does this second error, any idea on why this is happening?

i just tested it the other day, everything is fine so im not really sure whats the problem here

@Cledosvaldo
Copy link

Hello! I've been trying to compile Aseprite for the past few days, but nothing is working. So basically, I installed everything and put the files in their respective folders, but when I tried compiling it, it started good, but then...:

-- The C compiler identification is MSVC 19.41.34123.0
-- The CXX compiler identification is MSVC 19.41.34123.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Check for working C compiler: /c/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.41.34120/bin/HostX64/x64/cl.exe
-- Check for working C compiler: /c/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.41.34120/bin/HostX64/x64/cl.exe - broken
CMake Error at /opt/devkitpro/msys2/usr/share/cmake/Modules/CMakeTestCCompiler.cmake:67 (message):
The C compiler

"/c/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.41.34120/bin/HostX64/x64/cl.exe"

is not able to compile a simple test program.
It fails with the following output:

Change Dir: '/c/aseprite/build/CMakeFiles/CMakeScratch/TryCompile-a9HHZB'

Run Build Command(s): "/c/Program Files/CMake/bin/ninja.exe" -v cmTC_a0313
ninja: error: '/c/aseprite/build/CMakeFiles/CMakeScratch/TryCompile-a9HHZB/testCCompiler.c', needed by 'CMakeFiles/cmTC_a0313.dir/testCCompiler.c.o', missing and no known rule to make it

CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:23 (project)
-- Configuring incomplete, errors occurred!

Then I tried again but using the command that is used in case CMake is unable to detect the C/C++ compiler, and this happened:

CMake Error at build/CMakeFiles/3.30.1/CMakeCCompiler.cmake:2 (set):
Syntax error in cmake code at

/c/aseprite/build/CMakeFiles/3.30.1/CMakeCCompiler.cmake:2

when parsing string

C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\bin\Hostx64\x64\cl.exe

Invalid character escape '\P'.
Call Stack (most recent call first):
CMakeLists.txt:23 (project)

And now for some reason, even when using the normal command, it also does this second error, any idea on why this is happening?

i just tested it the other day, everything is fine so im not really sure whats the problem here

Just tried using AsepriteTool but still the same error appeared. :/

@themonkeys42
Copy link

thank you, worked like a charm.

@VermeilChan
Copy link
Author

thank you, worked like a charm.

1009875045105029160

@VermeilChan
Copy link
Author

Hello! I've been trying to compile Aseprite for the past few days, but nothing is working. So basically, I installed everything and put the files in their respective folders, but when I tried compiling it, it started good, but then...:

-- The C compiler identification is MSVC 19.41.34123.0
-- The CXX compiler identification is MSVC 19.41.34123.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Check for working C compiler: /c/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.41.34120/bin/HostX64/x64/cl.exe
-- Check for working C compiler: /c/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.41.34120/bin/HostX64/x64/cl.exe - broken
CMake Error at /opt/devkitpro/msys2/usr/share/cmake/Modules/CMakeTestCCompiler.cmake:67 (message):
The C compiler

"/c/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.41.34120/bin/HostX64/x64/cl.exe"

is not able to compile a simple test program.
It fails with the following output:

Change Dir: '/c/aseprite/build/CMakeFiles/CMakeScratch/TryCompile-a9HHZB'

Run Build Command(s): "/c/Program Files/CMake/bin/ninja.exe" -v cmTC_a0313
ninja: error: '/c/aseprite/build/CMakeFiles/CMakeScratch/TryCompile-a9HHZB/testCCompiler.c', needed by 'CMakeFiles/cmTC_a0313.dir/testCCompiler.c.o', missing and no known rule to make it

CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:23 (project)
-- Configuring incomplete, errors occurred!

Then I tried again but using the command that is used in case CMake is unable to detect the C/C++ compiler, and this happened:

CMake Error at build/CMakeFiles/3.30.1/CMakeCCompiler.cmake:2 (set):
Syntax error in cmake code at

/c/aseprite/build/CMakeFiles/3.30.1/CMakeCCompiler.cmake:2

when parsing string

C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\bin\Hostx64\x64\cl.exe

Invalid character escape '\P'.
Call Stack (most recent call first):
CMakeLists.txt:23 (project)

And now for some reason, even when using the normal command, it also does this second error, any idea on why this is happening?

i just tested it the other day, everything is fine so im not really sure whats the problem here

Just tried using AsepriteTool but still the same error appeared. :/

well ig i cant do much about it, and uhh AsepriteTool didnt get updated since 2022

@YodelingYoda
Copy link

Followed all instructions and it worked perfectly with v. 1.3.9.1

@VermeilChan
Copy link
Author

Followed all instructions and it worked perfectly with v. 1.3.9.1

yayyy

@Baderzzz
Copy link

Baderzzz commented Dec 5, 2024

Hello! I've been trying to compile Aseprite for the past few days, but nothing is working. So basically, I installed everything and put the files in their respective folders, but when I tried compiling it, it started good, but then...:

-- The C compiler identification is MSVC 19.41.34123.0
-- The CXX compiler identification is MSVC 19.41.34123.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Check for working C compiler: /c/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.41.34120/bin/HostX64/x64/cl.exe
-- Check for working C compiler: /c/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.41.34120/bin/HostX64/x64/cl.exe - broken
CMake Error at /opt/devkitpro/msys2/usr/share/cmake/Modules/CMakeTestCCompiler.cmake:67 (message):
The C compiler

"/c/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.41.34120/bin/HostX64/x64/cl.exe"

is not able to compile a simple test program.
It fails with the following output:

Change Dir: '/c/aseprite/build/CMakeFiles/CMakeScratch/TryCompile-a9HHZB'

Run Build Command(s): "/c/Program Files/CMake/bin/ninja.exe" -v cmTC_a0313
ninja: error: '/c/aseprite/build/CMakeFiles/CMakeScratch/TryCompile-a9HHZB/testCCompiler.c', needed by 'CMakeFiles/cmTC_a0313.dir/testCCompiler.c.o', missing and no known rule to make it

CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:23 (project)
-- Configuring incomplete, errors occurred!

Then I tried again but using the command that is used in case CMake is unable to detect the C/C++ compiler, and this happened:

CMake Error at build/CMakeFiles/3.30.1/CMakeCCompiler.cmake:2 (set):
Syntax error in cmake code at

/c/aseprite/build/CMakeFiles/3.30.1/CMakeCCompiler.cmake:2

when parsing string

C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\bin\Hostx64\x64\cl.exe

Invalid character escape '\P'.
Call Stack (most recent call first):
CMakeLists.txt:23 (project)

And now for some reason, even when using the normal command, it also does this second error, any idea on why this is happening?

Heyyy its probably too late but just for anyones future reference, peep this line:
" CMake Error at /opt/devkitpro/msys2/usr/share/cmake/Modules/CMakeTestCCompiler.cmake:67 (message):"
It seems you have devkitpro installed, and it seems to conflict with aseprite with some reason. The solution I found was to exclude it from the windows PATH variable, you can also try uninstalling it.

Cheers!

@Cledosvaldo
Copy link

Hello! I've been trying to compile Aseprite for the past few days, but nothing is working. So basically, I installed everything and put the files in their respective folders, but when I tried compiling it, it started good, but then...:

-- The C compiler identification is MSVC 19.41.34123.0
-- The CXX compiler identification is MSVC 19.41.34123.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Check for working C compiler: /c/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.41.34120/bin/HostX64/x64/cl.exe
-- Check for working C compiler: /c/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.41.34120/bin/HostX64/x64/cl.exe - broken
CMake Error at /opt/devkitpro/msys2/usr/share/cmake/Modules/CMakeTestCCompiler.cmake:67 (message):
The C compiler

"/c/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.41.34120/bin/HostX64/x64/cl.exe"

is not able to compile a simple test program.
It fails with the following output:

Change Dir: '/c/aseprite/build/CMakeFiles/CMakeScratch/TryCompile-a9HHZB'

Run Build Command(s): "/c/Program Files/CMake/bin/ninja.exe" -v cmTC_a0313
ninja: error: '/c/aseprite/build/CMakeFiles/CMakeScratch/TryCompile-a9HHZB/testCCompiler.c', needed by 'CMakeFiles/cmTC_a0313.dir/testCCompiler.c.o', missing and no known rule to make it

CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:23 (project)
-- Configuring incomplete, errors occurred!

Then I tried again but using the command that is used in case CMake is unable to detect the C/C++ compiler, and this happened:

CMake Error at build/CMakeFiles/3.30.1/CMakeCCompiler.cmake:2 (set):
Syntax error in cmake code at

/c/aseprite/build/CMakeFiles/3.30.1/CMakeCCompiler.cmake:2

when parsing string

C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\bin\Hostx64\x64\cl.exe

Invalid character escape '\P'.
Call Stack (most recent call first):
CMakeLists.txt:23 (project)

And now for some reason, even when using the normal command, it also does this second error, any idea on why this is happening?

Heyyy its probably too late but just for anyones future reference, peep this line: " CMake Error at /opt/devkitpro/msys2/usr/share/cmake/Modules/CMakeTestCCompiler.cmake:67 (message):" It seems you have devkitpro installed, and it seems to conflict with aseprite with some reason. The solution I found was to exclude it from the windows PATH variable, you can also try uninstalling it.

Cheers!

It's not too late, I was still trying to figure this out, thanks a lot!! Gonna try out soon!!! :D

@Cledosvaldo
Copy link

Hello! I've been trying to compile Aseprite for the past few days, but nothing is working. So basically, I installed everything and put the files in their respective folders, but when I tried compiling it, it started good, but then...:

-- The C compiler identification is MSVC 19.41.34123.0
-- The CXX compiler identification is MSVC 19.41.34123.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Check for working C compiler: /c/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.41.34120/bin/HostX64/x64/cl.exe
-- Check for working C compiler: /c/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.41.34120/bin/HostX64/x64/cl.exe - broken
CMake Error at /opt/devkitpro/msys2/usr/share/cmake/Modules/CMakeTestCCompiler.cmake:67 (message):
The C compiler

"/c/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.41.34120/bin/HostX64/x64/cl.exe"

is not able to compile a simple test program.
It fails with the following output:

Change Dir: '/c/aseprite/build/CMakeFiles/CMakeScratch/TryCompile-a9HHZB'

Run Build Command(s): "/c/Program Files/CMake/bin/ninja.exe" -v cmTC_a0313
ninja: error: '/c/aseprite/build/CMakeFiles/CMakeScratch/TryCompile-a9HHZB/testCCompiler.c', needed by 'CMakeFiles/cmTC_a0313.dir/testCCompiler.c.o', missing and no known rule to make it

CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:23 (project)
-- Configuring incomplete, errors occurred!

Then I tried again but using the command that is used in case CMake is unable to detect the C/C++ compiler, and this happened:

CMake Error at build/CMakeFiles/3.30.1/CMakeCCompiler.cmake:2 (set):
Syntax error in cmake code at

/c/aseprite/build/CMakeFiles/3.30.1/CMakeCCompiler.cmake:2

when parsing string

C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\bin\Hostx64\x64\cl.exe

Invalid character escape '\P'.
Call Stack (most recent call first):
CMakeLists.txt:23 (project)

And now for some reason, even when using the normal command, it also does this second error, any idea on why this is happening?

Heyyy its probably too late but just for anyones future reference, peep this line: " CMake Error at /opt/devkitpro/msys2/usr/share/cmake/Modules/CMakeTestCCompiler.cmake:67 (message):" It seems you have devkitpro installed, and it seems to conflict with aseprite with some reason. The solution I found was to exclude it from the windows PATH variable, you can also try uninstalling it.

Cheers!

So, now that there's no devkitpro, a totally different result happened, any idea what does it mean?
https://pastebin.com/DhrsSfbU (Password: HR7YMCgRKA)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment