aseprite / aseprite

Animated sprite editor & pixel art tool (Windows, macOS, Linux)

Home Page:https://www.aseprite.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ninja: build stopped: subcommand failed

Jayasaki0305 opened this issue · comments

my cmake compiled fine with some warnings but ninja failed. see code. There's more "FAILED: laf/os/CMakeFiles/laf-os.dir/skia/skia_window_win.cpp.obj", I am new to this so I really don't know much.

FAILED: laf/os/CMakeFiles/laf-os.dir/skia/skia_window_win.cpp.obj
C:\PROGRA~1\MICROS~4\2022\COMMUN~1\VC\Tools\MSVC\1439~1.335\bin\Hostx64\x64\cl.exe  /nologo /TP -DCMARK_STATIC_DEFINE -DHAVE_CONFIG_H -DHAVE_CONFIG_OVERRIDE_H=1 -DLAF_FREETYPE -DLAF_SKIA -DLAF_WINDOWS -DLAF_WITH_REGION -DNDEBUG -DPNG_NO_MMX_CODE -DSK_ALLOW_STATIC_GLOBAL_INITIALIZERS=1 -DSK_BUILD_FOR_WIN -DSK_ENABLE_SKSL=1 -DSK_GAMMA_APPLY_TO_A8 -DSK_GAMMA_SRGB -DSK_GL=1 -DSK_INTERNAL -DSK_SCALAR_TO_FLOAT_EXCLUDED -DSK_SUPPORT_GPU=1 -DUNICODE -DWINVER=0x0A00 -D_CRT_SECURE_NO_WARNINGS -D_UNICODE -D_WIN32_WINNT=0x0A00 -IC:\aseprite\third_party\zlib -IC:\aseprite\build\third_party\zlib -IC:\aseprite\third_party\libpng -IC:\aseprite\build\third_party\libpng -IC:\aseprite\third_party\tinyxml -IC:\aseprite\third_party\pixman\pixman -IC:\aseprite\build -IC:\aseprite\third_party\giflib -IC:\aseprite\third_party\jpeg -IC:\aseprite\third_party\curl\include -IC:\aseprite\third_party\simpleini -IC:\aseprite\laf\os\..\third_party -IC:\aseprite\laf -IC:\aseprite\build\laf -IC:\aseprite\src -IC:\deps\skia -IC:\deps\skia\third_party\externals\freetype\include -IC:\deps\skia\third_party\externals\harfbuzz\src /DWIN32 /D_WINDOWS /GR /EHsc /MT /Zi /O2 /Ob1 /D NDEBUG -std:c++17 -MT -DNOMINMAX /showIncludes /Folaf\os\CMakeFiles\laf-os.dir\skia\skia_window_win.cpp.obj /Fdlaf\os\CMakeFiles\laf-os.dir\laf-os.pdb /FS -c C:\aseprite\laf\os\skia\skia_window_win.cpp
C:\aseprite\laf\os/skia/paint.h(73): error C2027: use of undefined type 'SkBlendMode'
C:\deps\skia\include/core/SkPaint.h(31): note: see declaration of 'SkBlendMode'
C:\aseprite\laf\os/skia/paint.h(73): error C2065: 'kClear': undeclared identifier
C:\aseprite\laf\os/skia/paint.h(74): error C2027: use of undefined type 'SkBlendMode'
C:\deps\skia\include/core/SkPaint.h(31): note: see declaration of 'SkBlendMode'
C:\aseprite\laf\os/skia/paint.h(74): error C2065: 'kSrc': undeclared identifier
C:\aseprite\laf\os/skia/paint.h(75): error C2027: use of undefined type 'SkBlendMode'
C:\deps\skia\include/core/SkPaint.h(31): note: see declaration of 'SkBlendMode'
C:\aseprite\laf\os/skia/paint.h(75): error C2065: 'kDst': undeclared identifier
C:\aseprite\laf\os/skia/paint.h(76): error C2027: use of undefined type 'SkBlendMode'
C:\deps\skia\include/core/SkPaint.h(31): note: see declaration of 'SkBlendMode'
C:\aseprite\laf\os/skia/paint.h(76): error C2065: 'kSrcOver': undeclared identifier
C:\aseprite\laf\os/skia/paint.h(77): error C2027: use of undefined type 'SkBlendMode'
C:\deps\skia\include/core/SkPaint.h(31): note: see declaration of 'SkBlendMode'
C:\aseprite\laf\os/skia/paint.h(77): error C2065: 'kDstOver': undeclared identifier
C:\aseprite\laf\os/skia/paint.h(78): error C2027: use of undefined type 'SkBlendMode'
C:\deps\skia\include/core/SkPaint.h(31): note: see declaration of 'SkBlendMode'
C:\aseprite\laf\os/skia/paint.h(78): error C2065: 'kSrcIn': undeclared identifier
C:\aseprite\laf\os/skia/paint.h(79): error C2027: use of undefined type 'SkBlendMode'
C:\deps\skia\include/core/SkPaint.h(31): note: see declaration of 'SkBlendMode'
C:\aseprite\laf\os/skia/paint.h(79): error C2065: 'kDstIn': undeclared identifier
C:\aseprite\laf\os/skia/paint.h(80): error C2027: use of undefined type 'SkBlendMode'
C:\deps\skia\include/core/SkPaint.h(31): note: see declaration of 'SkBlendMode'
C:\aseprite\laf\os/skia/paint.h(80): error C2065: 'kSrcOut': undeclared identifier
C:\aseprite\laf\os/skia/paint.h(81): error C2027: use of undefined type 'SkBlendMode'
C:\deps\skia\include/core/SkPaint.h(31): note: see declaration of 'SkBlendMode'
C:\aseprite\laf\os/skia/paint.h(81): error C2065: 'kDstOut': undeclared identifier
C:\aseprite\laf\os/skia/paint.h(82): error C2027: use of undefined type 'SkBlendMode'
C:\deps\skia\include/core/SkPaint.h(31): note: see declaration of 'SkBlendMode'
C:\aseprite\laf\os/skia/paint.h(82): error C2065: 'kSrcATop': undeclared identifier
C:\aseprite\laf\os/skia/paint.h(83): error C2027: use of undefined type 'SkBlendMode'
C:\deps\skia\include/core/SkPaint.h(31): note: see declaration of 'SkBlendMode'
C:\aseprite\laf\os/skia/paint.h(83): error C2065: 'kDstATop': undeclared identifier
C:\aseprite\laf\os/skia/paint.h(84): error C2027: use of undefined type 'SkBlendMode'
C:\deps\skia\include/core/SkPaint.h(31): note: see declaration of 'SkBlendMode'
C:\aseprite\laf\os/skia/paint.h(84): error C2065: 'kXor': undeclared identifier
C:\aseprite\laf\os/skia/paint.h(85): error C2027: use of undefined type 'SkBlendMode'
C:\deps\skia\include/core/SkPaint.h(31): note: see declaration of 'SkBlendMode'
C:\aseprite\laf\os/skia/paint.h(85): error C2065: 'kPlus': undeclared identifier
C:\aseprite\laf\os/skia/paint.h(86): error C2027: use of undefined type 'SkBlendMode'
C:\deps\skia\include/core/SkPaint.h(31): note: see declaration of 'SkBlendMode'
C:\aseprite\laf\os/skia/paint.h(86): error C2065: 'kModulate': undeclared identifier
C:\aseprite\laf\os/skia/paint.h(87): error C2027: use of undefined type 'SkBlendMode'
C:\deps\skia\include/core/SkPaint.h(31): note: see declaration of 'SkBlendMode'
C:\aseprite\laf\os/skia/paint.h(87): error C2065: 'kScreen': undeclared identifier
C:\aseprite\laf\os/skia/paint.h(88): error C2027: use of undefined type 'SkBlendMode'
C:\deps\skia\include/core/SkPaint.h(31): note: see declaration of 'SkBlendMode'
C:\aseprite\laf\os/skia/paint.h(88): error C2065: 'kLastCoeffMode': undeclared identifier
C:\aseprite\laf\os/skia/paint.h(89): error C2027: use of undefined type 'SkBlendMode'
C:\deps\skia\include/core/SkPaint.h(31): note: see declaration of 'SkBlendMode'
C:\aseprite\laf\os/skia/paint.h(89): error C2065: 'kOverlay': undeclared identifier
C:\aseprite\laf\os/skia/paint.h(90): error C2027: use of undefined type 'SkBlendMode'
C:\deps\skia\include/core/SkPaint.h(31): note: see declaration of 'SkBlendMode'
C:\aseprite\laf\os/skia/paint.h(90): error C2065: 'kDarken': undeclared identifier
C:\aseprite\laf\os/skia/paint.h(91): error C2027: use of undefined type 'SkBlendMode'
C:\deps\skia\include/core/SkPaint.h(31): note: see declaration of 'SkBlendMode'
C:\aseprite\laf\os/skia/paint.h(91): error C2065: 'kLighten': undeclared identifier
C:\aseprite\laf\os/skia/paint.h(92): error C2027: use of undefined type 'SkBlendMode'
C:\deps\skia\include/core/SkPaint.h(31): note: see declaration of 'SkBlendMode'
C:\aseprite\laf\os/skia/paint.h(92): error C2065: 'kColorDodge': undeclared identifier
C:\aseprite\laf\os/skia/paint.h(93): error C2027: use of undefined type 'SkBlendMode'
C:\deps\skia\include/core/SkPaint.h(31): note: see declaration of 'SkBlendMode'
C:\aseprite\laf\os/skia/paint.h(93): error C2065: 'kColorBurn': undeclared identifier
C:\aseprite\laf\os/skia/paint.h(94): error C2027: use of undefined type 'SkBlendMode'
C:\deps\skia\include/core/SkPaint.h(31): note: see declaration of 'SkBlendMode'
C:\aseprite\laf\os/skia/paint.h(94): error C2065: 'kHardLight': undeclared identifier
C:\aseprite\laf\os/skia/paint.h(95): error C2027: use of undefined type 'SkBlendMode'
C:\deps\skia\include/core/SkPaint.h(31): note: see declaration of 'SkBlendMode'
C:\aseprite\laf\os/skia/paint.h(95): error C2065: 'kSoftLight': undeclared identifier
C:\aseprite\laf\os/skia/paint.h(96): error C2027: use of undefined type 'SkBlendMode'
C:\deps\skia\include/core/SkPaint.h(31): note: see declaration of 'SkBlendMode'
C:\aseprite\laf\os/skia/paint.h(96): error C2065: 'kDifference': undeclared identifier
C:\aseprite\laf\os/skia/paint.h(97): error C2027: use of undefined type 'SkBlendMode'
C:\deps\skia\include/core/SkPaint.h(31): note: see declaration of 'SkBlendMode'
C:\aseprite\laf\os/skia/paint.h(97): error C2065: 'kExclusion': undeclared identifier
C:\aseprite\laf\os/skia/paint.h(98): error C2027: use of undefined type 'SkBlendMode'
C:\deps\skia\include/core/SkPaint.h(31): note: see declaration of 'SkBlendMode'
C:\aseprite\laf\os/skia/paint.h(98): error C2065: 'kMultiply': undeclared identifier
C:\aseprite\laf\os/skia/paint.h(99): error C2027: use of undefined type 'SkBlendMode'
C:\deps\skia\include/core/SkPaint.h(31): note: see declaration of 'SkBlendMode'
C:\aseprite\laf\os/skia/paint.h(99): error C2065: 'kLastSeparableMode': undeclared identifier
C:\aseprite\laf\os/skia/paint.h(100): error C2027: use of undefined type 'SkBlendMode'
C:\deps\skia\include/core/SkPaint.h(31): note: see declaration of 'SkBlendMode'
C:\aseprite\laf\os/skia/paint.h(100): error C2065: 'kHue': undeclared identifier
C:\aseprite\laf\os/skia/paint.h(101): error C2027: use of undefined type 'SkBlendMode'
C:\deps\skia\include/core/SkPaint.h(31): note: see declaration of 'SkBlendMode'
C:\aseprite\laf\os/skia/paint.h(101): error C2065: 'kSaturation': undeclared identifier
C:\aseprite\laf\os/skia/paint.h(102): error C2027: use of undefined type 'SkBlendMode'
C:\deps\skia\include/core/SkPaint.h(31): note: see declaration of 'SkBlendMode'
C:\aseprite\laf\os/skia/paint.h(102): error C2065: 'kColor': undeclared identifier
C:\aseprite\laf\os/skia/paint.h(103): error C2027: use of undefined type 'SkBlendMode'
C:\deps\skia\include/core/SkPaint.h(31): note: see declaration of 'SkBlendMode'
C:\aseprite\laf\os/skia/paint.h(103): error C2065: 'kLuminosity': undeclared identifier
C:\aseprite\laf\os/skia/paint.h(104): error C2027: use of undefined type 'SkBlendMode'
C:\deps\skia\include/core/SkPaint.h(31): note: see declaration of 'SkBlendMode'
C:\aseprite\laf\os/skia/paint.h(104): error C2065: 'kLastMode': undeclared identifier
ninja: build stopped: subcommand failed.

Aseprite and System version

  • Aseprite version: Aseprite v.1.3.5
  • System: Windows 11 v.23H2

Same issue on Windows 10
C:\aseprite\src\app/doc.h(71): error C2039: 'LockResult': is not a member of 'base::RWLock' seems repeated in the errors mainly
log.log

EDIT: got a better log

app-lib.lib(doc.cpp.obj) : error LNK2001: unresolved external symbol "public: enum base::RWLock::LockResult __cdecl base::RWLock::lock(enum base::RWLock::LockType,int)" (?lock@RWLock@base@@QEAA?AW4LockResult@12@W4LockType@12@H@Z)
app-lib.lib(doc.cpp.obj) : error LNK2001: unresolved external symbol "public: enum base::RWLock::LockResult __cdecl base::RWLock::upgradeToWrite(int)" (?upgradeToWrite@RWLock@base@@QEAA?AW4LockResult@12@H@Z)
app-lib.lib(doc.cpp.obj) : error LNK2001: unresolved external symbol "public: void __cdecl base::RWLock::downgradeToRead(enum base::RWLock::LockResult)" (?downgradeToRead@RWLock@base@@QEAAXW4LockResult@12@@Z)
app-lib.lib(doc.cpp.obj) : error LNK2001: unresolved external symbol "public: void __cdecl base::RWLock::unlock(enum base::RWLock::LockResult)" (?unlock@RWLock@base@@QEAAXW4LockResult@12@@Z)
app-lib.lib(session.cpp.obj) : error LNK2001: unresolved external symbol "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl base::get_process_name(unsigned int)" (?get_process_name@base@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@I@Z)
bin\aseprite.exe : fatal error LNK1120: 5 unresolved externals
ninja: build stopped: subcommand failed.

Highly probable that you need to update all the submodules, try running:

git submodule update --recursive --init

Hello! I would also check that this dependency is present and using the correct version 'm102':

And a compiled version of the aseprite-m102 branch of the Skia library. There are pre-built packages available. You can get some extra information in the laf dependencies page.

Hello! I would also check that this dependency is present and using the correct version 'm102':

And a compiled version of the aseprite-m102 branch of the Skia library. There are pre-built packages available. You can get some extra information in the laf dependencies page.

That did the job. I first tried the most recent one, not working, but using the m102 was gold :)
In my case beside of that the CMakeLists.txt had to be extended with the set(CMAKE_C/CXX_COMPILER /path/to/compiler) and the ENABLE_WEBP option had to be toggled to off (because in my case it's not needed).