rayxuln / spine-runtime-for-godot

This project is a module for godot that allows it to load/play Spine skeleton animation.
MIT License
93 stars 22 forks source link

Error while compiling for the Web #55

Open RedXGames opened 2 years ago

RedXGames commented 2 years ago

Godot Version 3.4.3 Branch Version : 3.8

Alright, So I'm following the guide on Exporting to the Web on the official Godot docs, After executing the 2 scons commands I get this error :

[ 39%] Compiling ==> modules\spine_runtime\SpineSlotData.cpp [ 39%] Compiling ==> modules\spine_runtime\SpineSprite.cpp [ 39%] Compiling ==> modules\spine_runtime\SpineSpriteAnimateDialog.cpp [ 39%] Compiling ==> modules\spine_runtime\SpineSpriteMeshInstance2D.cpp modules\spine_runtime\SpineSprite.cpp:77:55: warning: field 'skeleton_clipper' will be initialized after field 'overlap' [-Wreorder-ctor] select_track_id(0), empty_animation_duration(0.2f), skeleton_clipper(NULL), ^~~~~~~~~~~~~~~~~~~~~~ overlap(false) modules\spine_runtime\SpineSprite.cpp:341:30: warning: unused variable 'UV_STRIDE' [-Wunused-variable] static const unsigned short UV_STRIDE = 2; ^ modules\spine_runtime\SpineSprite.cpp:795:43: error: conversion from 'size_t' (aka 'unsigned long') to 'const Variant' is ambiguous String prefix = vformat("ca/%d/", i); ^ .\core/variant.h:254:2: note: candidate constructor Variant(bool p_bool); ^ .\core/variant.h:255:2: note: candidate constructor Variant(signed int p_int); // real one ^ .\core/variant.h:256:2: note: candidate constructor Variant(unsigned int p_int); ^ .\core/variant.h:262:2: note: candidate constructor Variant(signed short p_short); // real one ^ .\core/variant.h:263:2: note: candidate constructor Variant(unsigned short p_short); ^ .\core/variant.h:264:2: note: candidate constructor Variant(signed char p_char); // real one ^ .\core/variant.h:265:2: note: candidate constructor Variant(unsigned char p_char); ^ .\core/variant.h:266:2: note: candidate constructor Variant(int64_t p_int); // real one ^ .\core/variant.h:267:2: note: candidate constructor Variant(uint64_t p_int); ^ .\core/variant.h:268:2: note: candidate constructor Variant(float p_float); ^ .\core/variant.h:269:2: note: candidate constructor Variant(double p_double); ^ modules\spine_runtime\SpineSprite.cpp:796:71: error: conversion from 'size_t' (aka 'unsigned long') to 'const Variant' is ambiguous p_list->push_back(PropertyInfo(Variant::NIL, vformat("ID %d", i), PROPERTY_HINT_NONE, prefix, PROPERTY_USAGE_GROUP)); ^ .\core/variant.h:254:2: note: candidate constructor Variant(bool p_bool); ^ .\core/variant.h:255:2: note: candidate constructor Variant(signed int p_int); // real one ^ .\core/variant.h:256:2: note: candidate constructor Variant(unsigned int p_int); ^ .\core/variant.h:262:2: note: candidate constructor Variant(signed short p_short); // real one ^ .\core/variant.h:263:2: note: candidate constructor Variant(unsigned short p_short); ^ .\core/variant.h:264:2: note: candidate constructor Variant(signed char p_char); // real one ^ .\core/variant.h:265:2: note: candidate constructor Variant(unsigned char p_char); ^ .\core/variant.h:266:2: note: candidate constructor Variant(int64_t p_int); // real one ^ .\core/variant.h:267:2: note: candidate constructor Variant(uint64_t p_int); ^ .\core/variant.h:268:2: note: candidate constructor Variant(float p_float); ^ .\core/variant.h:269:2: note: candidate constructor Variant(double p_double); ^ modules\spine_runtime\SpineSprite.cpp:983:88: error: conversion from 'size_t' (aka 'unsigned long') to 'const Variant' is ambiguous print_line(vformat("track_id at 'ID %d' can not be less than 0!", i)); ^ .\core/variant.h:254:2: note: candidate constructor Variant(bool p_bool); ^ .\core/variant.h:255:2: note: candidate constructor Variant(signed int p_int); // real one ^ .\core/variant.h:256:2: note: candidate constructor Variant(unsigned int p_int); ^ .\core/variant.h:262:2: note: candidate constructor Variant(signed short p_short); // real one ^ .\core/variant.h:263:2: note: candidate constructor Variant(unsigned short p_short); ^ .\core/variant.h:264:2: note: candidate constructor Variant(signed char p_char); // real one ^ .\core/variant.h:265:2: note: candidate constructor Variant(unsigned char p_char); ^ .\core/variant.h:266:2: note: candidate constructor Variant(int64_t p_int); // real one ^ .\core/variant.h:267:2: note: candidate constructor Variant(uint64_t p_int); ^ .\core/variant.h:268:2: note: candidate constructor Variant(float p_float); ^ .\core/variant.h:269:2: note: candidate constructor Variant(double p_double); ^ 2 warnings and 3 errors generated. em++: error: 'C:/Users/pc/Downloads/emsdk/upstream/bin\clang++.exe -target wasm32-unknown-emscripten -DEMSCRIPTEN -D__EMSCRIPTEN_major__=3 -D__EMSCRIPTEN_minor__=1 -D__EMSCRIPTEN_tiny__=6 -fignore-exceptions -fno-inline-functions -fvisibility=default -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -D_LIBCPP_ABI_VERSION=2 -fno-threadsafe-statics -Werror=implicit-function-declaration -Xclang -iwithsysroot/include/SDL --sysroot=C:\Users\pc\Downloads\emsdk\upstream\emscripten\cache\sysroot -Xclang -iwithsysroot/include\compat -c -std=gnu++14 -Os -fno-exceptions -Wall -Wno-ordered-compare-function-pointers -Werror=return-type -O2 -DNO_EDITOR_SPLASH -DNO_SAFE_CAST -DJAVASCRIPT_ENABLED -DUNIX_ENABLED -DJAVASCRIPT_EVAL_ENABLED -DNO_THREADS -DNDEBUG -DPTRCALL_ENABLED -DMINIZIP_ENABLED -DZSTD_STATIC_LINKING_ONLY -Ithirdparty\freetype\include -Ithirdparty\libpng -Ithirdparty\zstd -Ithirdparty\zlib -Iplatform\javascript -I. -Imodules\spine_runtime\spine-cpp\include modules\spine_runtime\SpineSprite.cpp -o modules\spine_runtime\SpineSprite.javascript.opt.bc' failed (returned 1) scons: *** [modules\spine_runtime\SpineSprite.javascript.opt.bc] Error 1 scons: building terminated because of errors. [Time elapsed: 00:10:31.502]

Screenshots : image image image

Any help would be appreciated!