Error (?) when using Ninja Aseprite

Hello, first post here. I’m having a slight issue with trying to manually construct aseprite. i’ve been headbutting multiple issues and this is the closest i’ve gotten thus far even after following multiple guides and the linked installation guide on the github page.

Upon using ninja aseprite I get the following:

C:\aseprite\build>ninja aseprite
[1/1293] Building RC object third_party/curl/lib/CMakeFiles/libcurl.dir/libcurl.rc.res
FAILED: third_party/curl/lib/CMakeFiles/libcurl.dir/libcurl.rc.res
"C:\Program Files\CMake\bin\cmake.exe" -E cmake_llvm_rc C:/aseprite/third_party/curl/lib/libcurl.rc third_party/curl/lib/CMakeFiles/libcurl.dir/libcurl.rc.res.pp C:\deps\llvm\bin\clang.exe -DBUILDING_LIBCURL -DCMARK_STATIC_DEFINE -DCURL_HIDDEN_SYMBOLS -DHAVE_CONFIG_H -DNDEBUG -DPNG_NO_MMX_CODE -D_USRDLL -D_WIN32_WINNT=0x0600 -DRC_INVOKED -I C:/aseprite/third_party/zlib -I C:/aseprite/build/third_party/zlib -I C:/aseprite/third_party/libpng -I C:/aseprite/build/third_party/libpng -I C:/aseprite/third_party/tinyxml2 -I C:/aseprite/third_party/pixman/pixman -I C:/aseprite/build -I C:/aseprite/third_party/giflib -I C:/aseprite/third_party/jpeg -I C:/aseprite/third_party/curl/include -I C:/aseprite/third_party/simpleini -I C:/aseprite/third_party/. -I C:/aseprite/build/third_party/curl/lib/../include -I C:/aseprite/third_party/curl/lib/.. -I C:/aseprite/third_party/curl/lib/../include -I C:/aseprite/build/third_party/curl/lib/.. -I C:/aseprite/third_party/curl/lib -I C:/aseprite/build/third_party/curl/lib -DCURL_EMBED_MANIFEST -MD -MF third_party\curl\lib\CMakeFiles\libcurl.dir\libcurl.rc.res.d -x c -E -- C:/aseprite/third_party/curl/lib/libcurl.rc ++ C:\deps\llvm\bin\llvm-rc.exe -DBUILDING_LIBCURL -DCMARK_STATIC_DEFINE -DCURL_HIDDEN_SYMBOLS -DHAVE_CONFIG_H -DNDEBUG -DPNG_NO_MMX_CODE -D_USRDLL -D_WIN32_WINNT=0x0600 -I SOURCE_DIR -I C:/aseprite/third_party/zlib -I C:/aseprite/build/third_party/zlib -I C:/aseprite/third_party/libpng -I C:/aseprite/build/third_party/libpng -I C:/aseprite/third_party/tinyxml2 -I C:/aseprite/third_party/pixman/pixman -I C:/aseprite/build -I C:/aseprite/third_party/giflib -I C:/aseprite/third_party/jpeg -I C:/aseprite/third_party/curl/include -I C:/aseprite/third_party/simpleini -I C:/aseprite/third_party/. -I C:/aseprite/build/third_party/curl/lib/../include -I C:/aseprite/third_party/curl/lib/.. -I C:/aseprite/third_party/curl/lib/../include -I C:/aseprite/build/third_party/curl/lib/.. -I C:/aseprite/third_party/curl/lib -I C:/aseprite/build/third_party/curl/lib -DCURL_EMBED_MANIFEST -MD -MF third_party\curl\lib\CMakeFiles\libcurl.dir\libcurl.rc.res.d /fo third_party/curl/lib/CMakeFiles/libcurl.dir/libcurl.rc.res third_party/curl/lib/CMakeFiles/libcurl.dir/libcurl.rc.res.pp
llvm-rc: Error in VERSIONINFO statement (ID 1):
Non-ASCII 8-bit codepoint (169) can't occur in a non-Unicode string
[9/1293] Building CXX object laf/os/CMakeFiles/laf-os.dir/common/event_queue.cpp.obj
In file included from C:/aseprite/laf/os/common/event_queue.cpp:13:
C:/aseprite/laf\os/win/event_queue.h:24:8: warning: 'clearEvents' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]
   24 |   void clearEvents();
      |        ^
C:/aseprite/laf\os/event_queue.h:37:18: note: overridden virtual function is here
   37 |     virtual void clearEvents() = 0;
      |                  ^
1 warning generated.
[13/1293] Building CXX object laf/os/CMakeFiles/laf-os.dir/win/event_queue.cpp.obj
In file included from C:/aseprite/laf/os/win/event_queue.cpp:16:
C:/aseprite/laf\os/win/event_queue.h:24:8: warning: 'clearEvents' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]
   24 |   void clearEvents();
      |        ^
C:/aseprite/laf\os/event_queue.h:37:18: note: overridden virtual function is here
   37 |     virtual void clearEvents() = 0;
      |                  ^
1 warning generated.
[14/1293] Building CXX object laf/os/CMakeFiles/laf-os.dir/win/dnd.cpp.obj
In file included from C:/aseprite/laf/os/win/dnd.cpp:9:
C:/aseprite/laf\os/win/dnd.h:59:34: warning: extra qualification on member 'newDragEvent' [-Wmicrosoft-extra-qualification]
   59 |     DragEvent DragTargetAdapter::newDragEvent(POINTL* pt, DWORD* pdwEffect);
      |               ~~~~~~~~~~~~~~~~~~~^
C:/aseprite/laf/os/win/dnd.cpp:292:17: warning: enumeration value 'Paths' not handled in switch [-Wswitch]
  292 |         switch (type) {
      |                 ^~~~
2 warnings generated.
ninja: build stopped: subcommand failed.

i’ve looked up the failure and was sent to a single post saying to use -DENABLE_CCACHE=NO on the command prior to this one but this doesnt seem to have made a difference. I’ve tried re-installing CMake and alas nothing has changed, any help is greatly appreciated, thanks!

1 Like

This is the post i’m referring to:

Dang…gotta love when you solve an issue after asking about it. Sorry for bothering you all

What I did was run 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 .. as described in this guide then re-did ninja aseprite and it worked as intended! i must’ve missed this somewhre on the documentation, sorry about that.