Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ninja build failed - clipboard_native.cpp #23

Open
TheToto opened this issue Apr 15, 2024 · 3 comments
Open

Ninja build failed - clipboard_native.cpp #23

TheToto opened this issue Apr 15, 2024 · 3 comments

Comments

@TheToto
Copy link

TheToto commented Apr 15, 2024

Hey,
The build seems to fail (latest master), maybe I don't really understand why. Maybe a container update.
I tried the previous aseprite version and same result.

FAILED: src/app/CMakeFiles/app-lib.dir/util/clipboard_native.cpp.obj
"C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.33.31629\bin\Hostx64\x64\cl.exe"  /nologo /TP -DCMARK_STATIC_DEFINE -DCURL_STATICLIB -DENABLE_DATA_RECOVERY -DENABLE_NEWS -DENABLE_SAVE -DENABLE_SCRIPTING -DENABLE_UI -DENABLE_UPDATER -DENABLE_WEBP -DENABLE_WEBSOCKET -DHAVE_CONFIG_H -DHAVE_CONFIG_OVERRIDE_H=1 -DIXWEBSOCKET_USE_ZLIB -DLAF_SKIA -DLAF_WINDOWS -DLAF_WITH_REGION -DLIBARCHIVE_STATIC -DLUA_FLOORN2I=1 -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 -DTIXML_USE_STL -DUNICODE -DWINVER=0x0A00 -D_CRT_SECURE_NO_WARNINGS -D_SCL_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:\deps\skia\third_party\externals\libwebp\src -IC:\aseprite\src\.. -IC:\aseprite\src\observable -IC:\aseprite\build\src\app -IC:\aseprite\laf -IC:\aseprite\build\laf -IC:\aseprite\src -IC:\aseprite\src\doc\.. -IC:\deps\skia -IC:\deps\skia\third_party\externals\freetype\include -IC:\deps\skia\third_party\externals\harfbuzz\src -IC:\aseprite\src\fixmath\.. -IC:\aseprite\third_party\cityhash\src -IC:\aseprite\src\dio\.. -IC:\aseprite\third_party\fmt\include -IC:\aseprite\src\observable\. -IC:\aseprite\third_party\cmark\src -IC:\aseprite\build\third_party\cmark\src -IC:\aseprite\third_party\giflib\lib -IC:\aseprite\third_party\json11 -IC:\aseprite\third_party\libarchive\libarchive -IC:\aseprite\third_party\tinyexpr -IC:\aseprite\third_party\qoi -IC:\aseprite\third_party\lua -IC:\aseprite\third_party\IXWebSocket /DWIN32 /D_WINDOWS /GR /EHsc /MT /Zi /O2 /Ob1 /D NDEBUG -MT   -wd4267 -wd4244 -std:c++17 /showIncludes /Fosrc\app\CMakeFiles\app-lib.dir\util\clipboard_native.cpp.obj /Fdsrc\app\CMakeFiles\app-lib.dir\app-lib.pdb /FS -c C:\aseprite\src\app\util\clipboard_native.cpp
C:\aseprite\src\app\util\clipboard_native.cpp(67): error C2838: 'ImageNotSupported': illegal qualified name in member declaration
C:\aseprite\src\app\util\clipboard_native.cpp(67): error C2065: 'ImageNotSupported': undeclared identifier
C:\aseprite\src\app\util\clipboard_native.cpp(67): error C2051: case expression not constant
C:\aseprite\src\app\util\clipboard_native.cpp(90): error C2039: 'image_format': is not a member of 'clip'
C:\aseprite\laf\clip/clip.h(15): note: see declaration of 'clip'
C:\aseprite\src\app\util\clipboard_native.cpp(90): error C3861: 'image_format': identifier not found
C:\aseprite\src\app\util\clipboard_native.cpp(132): error C2079: 'spec' uses undefined struct 'clip::image_spec'
C:\aseprite\src\app\util\clipboard_native.cpp(150): error C2079: 'img' uses undefined class 'clip::image'
C:\aseprite\src\app\util\clipboard_native.cpp(150): error C2440: 'initializing': cannot convert from 'initializer list' to 'int'
C:\aseprite\src\app\util\clipboard_native.cpp(150): note: The initializer contains too many elements
C:\aseprite\src\app\util\clipboard_native.cpp(151): error C2039: 'set_image': is not a member of 'clip::lock'
C:\aseprite\laf\clip/clip.h(27): note: see declaration of 'clip::lock'
C:\aseprite\src\app\util\clipboard_native.cpp(155): error C2079: 'img' uses undefined class 'clip::image'
C:\aseprite\src\app\util\clipboard_native.cpp(168): error C2039: 'set_image': is not a member of 'clip::lock'
C:\aseprite\laf\clip/clip.h(27): note: see declaration of 'clip::lock'
C:\aseprite\src\app\util\clipboard_native.cpp(172): error C2079: 'img' uses undefined class 'clip::image'
C:\aseprite\src\app\util\clipboard_native.cpp(187): error C2039: 'set_image': is not a member of 'clip::lock'
C:\aseprite\laf\clip/clip.h(27): note: see declaration of 'clip::lock'
C:\aseprite\src\app\util\clipboard_native.cpp(230): error C2039: 'image_format': is not a member of 'clip'
C:\aseprite\laf\clip/clip.h(15): note: see declaration of 'clip'
C:\aseprite\src\app\util\clipboard_native.cpp(230): error C3861: 'image_format': identifier not found
C:\aseprite\src\app\util\clipboard_native.cpp(233): error C2079: 'img' uses undefined class 'clip::image'
C:\aseprite\src\app\util\clipboard_native.cpp(234): error C2039: 'get_image': is not a member of 'clip::lock'
C:\aseprite\laf\clip/clip.h(27): note: see declaration of 'clip::lock'
C:\aseprite\src\app\util\clipboard_native.cpp(237): error C2530: 'spec': references must be initialized
C:\aseprite\src\app\util\clipboard_native.cpp(241): error C2027: use of undefined type 'clip::image_spec'
C:\aseprite\laf\clip/clip.h(25): note: see declaration of 'clip::image_spec'
C:\aseprite\src\app\util\clipboard_native.cpp(240): error C2665: 'doc::Image::create': none of the 2 overloads could convert all the argument types
C:\aseprite\src\doc/image.h(39): note: could be 'doc::Image *doc::Image::create(const doc::ImageSpec &,const doc::ImageBufferPtr &)'
C:\aseprite\src\app\util\clipboard_native.cpp(240): note: 'doc::Image *doc::Image::create(const doc::ImageSpec &,const doc::ImageBufferPtr &)': cannot convert argument 1 from 'doc::PixelFormat' to 'const doc::ImageSpec &'
C:\aseprite\src\app\util\clipboard_native.cpp(241): note: Reason: cannot convert from 'doc::PixelFormat' to 'const doc::ImageSpec'
C:\aseprite\src\app\util\clipboard_native.cpp(240): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
C:\aseprite\src\doc/image.h(39): note: see declaration of 'doc::Image::create'
C:\aseprite\src\app\util\clipboard_native.cpp(241): note: while trying to match the argument list '(doc::PixelFormat)'
C:\aseprite\src\app\util\clipboard_native.cpp(243): error C2027: use of undefined type 'clip::image_spec'
C:\aseprite\laf\clip/clip.h(25): note: see declaration of 'clip::image_spec'
C:\aseprite\src\app\util\clipboard_native.cpp(247): error C2027: use of undefined type 'clip::image_spec'
C:\aseprite\laf\clip/clip.h(25): note: see declaration of 'clip::image_spec'
C:\aseprite\src\app\util\clipboard_native.cpp(248): error C2027: use of undefined type 'clip::image_spec'
C:\aseprite\laf\clip/clip.h(25): note: see declaration of 'clip::image_spec'
C:\aseprite\src\app\util\clipboard_native.cpp(249): error C2027: use of undefined type 'clip::image_spec'
C:\aseprite\laf\clip/clip.h(25): note: see declaration of 'clip::image_spec'
C:\aseprite\src\app\util\clipboard_native.cpp(252): error C2027: use of undefined type 'clip::image_spec'
C:\aseprite\laf\clip/clip.h(25): note: see declaration of 'clip::image_spec'
C:\aseprite\src\app\util\clipboard_native.cpp(253): error C2027: use of undefined type 'clip::image_spec'
C:\aseprite\laf\clip/clip.h(25): note: see declaration of 'clip::image_spec'
C:\aseprite\src\app\util\clipboard_native.cpp(254): error C2027: use of undefined type 'clip::image_spec'
C:\aseprite\laf\clip/clip.h(25): note: see declaration of 'clip::image_spec'
C:\aseprite\src\app\util\clipboard_native.cpp(255): error C2027: use of undefined type 'clip::image_spec'
C:\aseprite\laf\clip/clip.h(25): note: see declaration of 'clip::image_spec'
C:\aseprite\src\app\util\clipboard_native.cpp(263): error C2027: use of undefined type 'clip::image_spec'
C:\aseprite\laf\clip/clip.h(25): note: see declaration of 'clip::image_spec'
C:\aseprite\src\app\util\clipboard_native.cpp(264): error C2027: use of undefined type 'clip::image_spec'
C:\aseprite\laf\clip/clip.h(25): note: see declaration of 'clip::image_spec'
C:\aseprite\src\app\util\clipboard_native.cpp(265): error C2027: use of undefined type 'clip::image_spec'
C:\aseprite\laf\clip/clip.h(25): note: see declaration of 'clip::image_spec'
C:\aseprite\src\app\util\clipboard_native.cpp(271): error C2027: use of undefined type 'clip::image_spec'
C:\aseprite\laf\clip/clip.h(25): note: see declaration of 'clip::image_spec'
C:\aseprite\src\app\util\clipboard_native.cpp(272): error C2027: use of undefined type 'clip::image_spec'
C:\aseprite\laf\clip/clip.h(25): note: see declaration of 'clip::image_spec'
C:\aseprite\src\app\util\clipboard_native.cpp(275): error C2027: use of undefined type 'clip::image_spec'
C:\aseprite\laf\clip/clip.h(25): note: see declaration of 'clip::image_spec'
C:\aseprite\src\app\util\clipboard_native.cpp(276): error C2027: use of undefined type 'clip::image_spec'
C:\aseprite\laf\clip/clip.h(25): note: see declaration of 'clip::image_spec'
C:\aseprite\src\app\util\clipboard_native.cpp(277): error C2027: use of undefined type 'clip::image_spec'
C:\aseprite\laf\clip/clip.h(25): note: see declaration of 'clip::image_spec'
C:\aseprite\src\app\util\clipboard_native.cpp(286): error C2027: use of undefined type 'clip::image_spec'
C:\aseprite\laf\clip/clip.h(25): note: see declaration of 'clip::image_spec'
C:\aseprite\src\app\util\clipboard_native.cpp(287): error C2027: use of undefined type 'clip::image_spec'
C:\aseprite\laf\clip/clip.h(25): note: see declaration of 'clip::image_spec'
C:\aseprite\src\app\util\clipboard_native.cpp(288): error C2027: use of undefined type 'clip::image_spec'
C:\aseprite\laf\clip/clip.h(25): note: see declaration of 'clip::image_spec'
C:\aseprite\src\app\util\clipboard_native.cpp(291): error C2027: use of undefined type 'clip::image_spec'
C:\aseprite\laf\clip/clip.h(25): note: see declaration of 'clip::image_spec'
C:\aseprite\src\app\util\clipboard_native.cpp(292): error C2027: use of undefined type 'clip::image_spec'
C:\aseprite\laf\clip/clip.h(25): note: see declaration of 'clip::image_spec'
C:\aseprite\src\app\util\clipboard_native.cpp(293): error C2027: use of undefined type 'clip::image_spec'
C:\aseprite\laf\clip/clip.h(25): note: see declaration of 'clip::image_spec'
C:\aseprite\src\app\util\clipboard_native.cpp(302): error C2027: use of undefined type 'clip::image_spec'
C:\aseprite\laf\clip/clip.h(25): note: see declaration of 'clip::image_spec'
C:\aseprite\src\app\util\clipboard_native.cpp(303): error C2027: use of undefined type 'clip::image_spec'
C:\aseprite\laf\clip/clip.h(25): note: see declaration of 'clip::image_spec'
C:\aseprite\src\app\util\clipboard_native.cpp(304): error C2027: use of undefined type 'clip::image_spec'
C:\aseprite\laf\clip/clip.h(25): note: see declaration of 'clip::image_spec'
C:\aseprite\src\app\util\clipboard_native.cpp(307): error C2027: use of undefined type 'clip::image_spec'
C:\aseprite\laf\clip/clip.h(25): note: see declaration of 'clip::image_spec'
C:\aseprite\src\app\util\clipboard_native.cpp(308): error C2027: use of undefined type 'clip::image_spec'
C:\aseprite\laf\clip/clip.h(25): note: see declaration of 'clip::image_spec'
C:\aseprite\src\app\util\clipboard_native.cpp(309): error C2027: use of undefined type 'clip::image_spec'
C:\aseprite\laf\clip/clip.h(25): note: see declaration of 'clip::image_spec'
C:\aseprite\src\app\util\clipboard_native.cpp(306): error C2660: 'doc::rgba': function does not take 2 arguments
C:\aseprite\src\doc/color.h(55): note: see declaration of 'doc::rgba'
C:\aseprite\src\app\util\clipboard_native.cpp(327): error C2079: 'spec' uses undefined struct 'clip::image_spec'
C:\aseprite\src\app\util\clipboard_native.cpp(328): error C2039: 'get_image_spec': is not a member of 'clip'
C:\aseprite\laf\clip/clip.h(15): note: see declaration of 'clip'
C:\aseprite\src\app\util\clipboard_native.cpp(328): error C3861: 'get_image_spec': identifier not found
[1235/1533] Building CXX object src\app\CMakeFiles\app-lib.dir\util\freetype_utils.cpp.obj
[1236/1533] Building CXX object src\app\CMakeFiles\app-lib.dir\util\layer_utils.cpp.obj
ninja: build stopped: subcommand failed.```
@eddex
Copy link
Owner

eddex commented Apr 16, 2024

Please provide some more information about your system and what you did to get the error.

  • What version of Windows are you on? (10/11, Home/Pro/Enterprise)
  • Are you using Windows containers?
  • What steps did you take before getting the error?

@TheToto
Copy link
Author

TheToto commented May 2, 2024

Thank you for your reply.

I'm using Windows 11 Pro 23H2, with Windows containers (i'm pretty sure it correctly setup as it does not even run with linux containers).

I just run the start.bat script in a powershell window.

It sucessfully clone aseprite, skia, and run cmake, but the ninja build failed with the above error.
I'm not sure how to give more context...

I tried to checkout tag v1.3.5 in the build.bat script with the same result.

@eddex
Copy link
Owner

eddex commented May 17, 2024

What do you mean by "it does not even run with linux containers"? Did you install Docker Desktop? Or did you install Docker in a different way?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants