Can't Compile Aseprite with ninja

I get an Error by compiling with ninja

[1509/1509] Linking CXX executable bin\aseprite.exe
FAILED: bin/aseprite.exe
cmd.exe /C “cd . && “C:\Program Files\CMake\bin\cmake.exe” -E vs_link_exe --intdir=src\CMakeFiles\aseprite.dir --rc=C:\PROGRA~2\WI3CF2~1\10\bin\100177~1.0\x86\rc.exe --mt=C:\PROGRA~2\WI3CF2~1\10\bin\100177~1.0\x86\mt.exe --manifests …\src\main\settings.manifestestest – C:\PROGRA~2\MICROS~3\2019\COMMUN~1\VC\Tools\MSVC\1421~1.277\bin\Hostx86\x86\link.exe /nologo src\CMakeFiles\aseprite.dir\main\main\main.cpp.obj src\CMakeFiles\aseprite.dir\main\resources_win32.rc.res /out:bin\aseprite.exe /implib:lib\aseprite.lib /pdb:bin\aseprite.pdb /version:0.0 /machine:X86 /LTCG /debug /INCREMENTAL /subsystem:windows -LINK wsetargv.obj -ENTRY: “wWinMainCRTStartup” lib\app-lib.lib lib\clip.lib lib\dio-lib.lib lib\filters-lib.lib lib\flic-lib.lib lib\render-lib.lib lib\doc-lib.lib\fixmath-lib.lib\ui-lib.lib\laf-os.lib lib\laf-gfx.lib lib\pixman.lib\laf-ft.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib psapi.lib wininet.lib comctl32.lib C:\deps\skia\out\Release\skia.lib “C:\Program Files (x86)\Windows Kits\10\Lib\10.0.17763.0\um\x86\OpenGL32.Lib” lib\obs.lib lib\undo.lib lib\cmark_static.lib lib\jpeg.lib lib\giflib.lib lib\webpdemux.lib lib\webpmux.lib lib\webp.libp.lib ole32.lib windowscodecs.lib lib\freetype.lib\harfbuzz.lib\freetype.lib\lib\harfbuzz.lib\libpng16_static.lib lib\json11.lib lib\archive_static.lib lib\fmt.lib lib\tinyexpr.lib lib\lauxlib.lib lib\lua.lib lib\lualib.lib lib\updater-lib.lib lib\cfg-lib.lib lib\tinyxml.lib\net-lib.lib lib\laf-base.lib\modpbase64.lib dbghelp.lib shlwapi.lib lib…\libcurl.lib lib\zlibstatic.lib ws2_32.lib winmm.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd .”
LINK Pass 1: command “C:\PROGRA~2\MICROS~3\2019\COMMUN~1\VC\Tools\MSVC\1421~1.277\bin\Hostx86\x86\link.exe /nologo src\CMakeFiles\aseprite.dir\main\main.cpp.obj src\CMakeFiles\aseprite.dir\main\resources_win32.rc.res /out:bin\aseprite.exe /implib:lib\aseprite.lib /pdb:bin\aseprite.pdb /version:0.0 /machine:X86 /LTCG /debug /INCREMENTAL /subsystem:windows -LINK wsetargv.obj -ENTRY:wWinMainCRTStartup lib\app-lib.lib lib\clip.lib lib\dio-lib.lib lib\filters-lib.lib lib\flic-lib.lib lib\render-lib.lib lib\doc-lib.lib\fixmath-lib.lib\ui-lib.lib\laf-os.lib lib\laf-gfx.lib lib\fixmath-lib.lib\ui-lib.lib lib\laf-os.lib lib\laf-gfx.lib lib\pixman.lib\laf-ft.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib psapi.lib wininet.lib comctl32.lib C:\deps\skia\out\Release\skia.lib C:\Program Files (x86)\Windows Kits\10\Lib\10.0.17763.0\um\x86\OpenGL32.Lib lib\obs.lib lib\undo.lib lib\cmark_static.lib lib\jpeg.lib\giflib.lib lib\webpdemux.lib lib\webpmux.lib lib\webp.lib ole32.lib windowscodecs.lib lib\freetype.lib\harfbuzz.lib\freetype.lib\harfbuzz.lib\harfbuzz.lib lib\freetype.lib lib\harfbuzz.lib lib\libpng16_static.lib lib\json11.lib lib\archive_static.lib lib\fmt.lib lib\tinyexpr.lib lib\lauxlib.lib lib\lua.lib lib\lualib.lib lib\updater-lib.lib lib\cfg-lib.lib\tinyxml.lib lib\net-lib.lib lib\laf-base.lib lib\modpbase64.lib dbghelp.lib shlwapi.lib lib…\libcurl.lib lib\zlibstatic.lib ws2_32.lib winmm.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST /MANIFESTFILE:src\CMakeFiles\aseprite.dir/intermediate.manifest src\CMakeFiles\aseprite.dir/manifest.res” failed (exit code 1112) with the following output:
LINK : warning LNK4044: Unrecognized /LINK option; ignored.
LINK : warning LNK4075: /INCREMENTAL is ignored due to /LTCG specification.
skia.lib(skia.SkColor.obj) : fatal error LNK1112: Module computer type “x64” conflicts with target computer type “x86”.
ninja: build stopped: subcommand failed.

I’m not an expert but it seems that you are trying to use 64bit module to compile for 32bit system, or something like that. :slight_smile:

I did it like it says in the manual.