Hello!
I want to build web version of player.
Previously I did it using this instructions: How to build web version of easyrpg player?
cmake . -GNinja -Bbuild \
-DCMAKE_TOOLCHAIN_FILE=$TOOLCHAIN_DIR/emsdk-portable/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake \
-DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=BOTH \
-DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=BOTH \
-DCMAKE_FIND_ROOT_PATH_MODE_PACKAGE=BOTH \
-DCMAKE_PREFIX_PATH="$TOOLCHAIN_DIR" \
-DCMAKE_INSTALL_PREFIX=output -DCMAKE_BUILD_TYPE=Release \
-DPLAYER_BUILD_LIBLCF=ON \
-DPLAYER_JS_BUILD_SHELL=ON"
cmake --build build --target install
But now I get an error:
[2/352] Building CXX object CMakeFiles/EasyRPG_Player.dir/src/algo.cpp.o
FAILED: CMakeFiles/EasyRPG_Player.dir/src/algo.cpp.o
/home/rmdev/buildscripts/emscripten/emsdk-portable/upstream/emscripten/em++ -DHAVE_FLUIDSYNTH=1 -DHAVE_FREETYPE=1 -DHAVE_HARFBUZZ=1 -DHAVE_LIBMPG123=1 -DHAVE_LIBSNDFILE=1 -DHAVE_LIBSPEEXDSP=1 -DHAVE_LIBXMP=1 -DHAVE_OGGVORBIS=1 -DHAVE_OPUS=1 -DHAVE_WINE=1 -DNDEBUG -DSUPPORT_AUDIO=1 -DUSE_SDL=2 -DWANT_DRWAV=1 -DWANT_FMMIDI=1 -I/home/rmdev/Player/src -I/home/rmdev/Player/build/lib/liblcf/src -I/home/rmdev/Player/lib/liblcf/src -I/home/rmdev/Player/lib/liblcf/src/generated -isystem /home/rmdev/buildscripts/emscripten/include/SDL2 -isystem /home/rmdev/buildscripts/emscripten/include -isystem /home/rmdev/buildscripts/emscripten/include/pixman-1 -isystem /home/rmdev/buildscripts/emscripten/include/freetype2 -isystem /home/rmdev/buildscripts/emscripten/include/harfbuzz -isystem /home/rmdev/buildscripts/emscripten/include/speex -isystem /home/rmdev/buildscripts/emscripten/include/vorbis -isystem /home/rmdev/buildscripts/emscripten/include/opus -isystem /home/rmdev/buildscripts/emscripten/include/libxmp-lite -O3 -DNDEBUG -fno-math-errno -sUSE_SDL=0 -std=gnu++14 -MD -MT CMakeFiles/EasyRPG_Player.dir/src/algo.cpp.o -MF CMakeFiles/EasyRPG_Player.dir/src/algo.cpp.o.d -o CMakeFiles/EasyRPG_Player.dir/src/algo.cpp.o -c /home/rmdev/Player/src/algo.cpp
In file included from /home/rmdev/Player/src/algo.cpp:23:
In file included from /home/rmdev/Player/src/game_player.h:22:
/home/rmdev/Player/src/game_character.h:967:17: error: no member named 'facing' in 'lcf::rpg::SaveMapEventBase'; did you mean 'flying'?
return data()->facing;
^~~~~~
flying
/home/rmdev/Player/lib/liblcf/src/generated/lcf/rpg/savemapeventbase.h:61:8: note: 'flying' declared here
bool flying = false;
^
In file included from /home/rmdev/Player/src/algo.cpp:23:
In file included from /home/rmdev/Player/src/game_player.h:22:
/home/rmdev/Player/src/game_character.h:971:10: error: no member named 'facing' in 'lcf::rpg::SaveMapEventBase'; did you mean 'flying'?
data()->facing = new_facing;
^~~~~~
flying
/home/rmdev/Player/lib/liblcf/src/generated/lcf/rpg/savemapeventbase.h:61:8: note: 'flying' declared here
bool flying = false;
^
In file included from /home/rmdev/Player/src/algo.cpp:23:
In file included from /home/rmdev/Player/src/game_player.h:22:
/home/rmdev/Player/src/game_character.h:1035:17: error: no member named 'move_route_finished' in 'lcf::rpg::SaveMapEventBase'; did you mean 'move_route_index'?
return data()->move_route_finished;
^~~~~~~~~~~~~~~~~~~
move_route_index
/home/rmdev/Player/lib/liblcf/src/generated/lcf/rpg/savemapeventbase.h:48:11: note: 'move_route_index' declared here
int32_t move_route_index = 0;
^
In file included from /home/rmdev/Player/src/algo.cpp:23:
In file included from /home/rmdev/Player/src/game_player.h:22:
/home/rmdev/Player/src/game_character.h:1039:10: error: no member named 'move_route_finished' in 'lcf::rpg::SaveMapEventBase'; did you mean 'move_route_index'?
data()->move_route_finished = finished;
^~~~~~~~~~~~~~~~~~~
move_route_index
/home/rmdev/Player/lib/liblcf/src/generated/lcf/rpg/savemapeventbase.h:48:11: note: 'move_route_index' declared here
int32_t move_route_index = 0;
^
In file included from /home/rmdev/Player/src/algo.cpp:23:
In file included from /home/rmdev/Player/src/game_player.h:22:
/home/rmdev/Player/src/game_character.h:1104:28: error: no member named 'move_route_through' in 'lcf::rpg::SaveMapEventBase'; did you mean 'route_through'?
data()->through = data()->move_route_through;
^~~~~~~~~~~~~~~~~~
route_through
/home/rmdev/Player/lib/liblcf/src/generated/lcf/rpg/savemapeventbase.h:51:8: note: 'route_through' declared here
bool route_through = false;
^
In file included from /home/rmdev/Player/src/algo.cpp:23:
In file included from /home/rmdev/Player/src/game_player.h:22:
/home/rmdev/Player/src/game_character.h:1249:10: error: no member named 'sprite_hidden' in 'lcf::rpg::SaveMapEventBase'; did you mean 'sprite_id'?
data()->sprite_hidden = hidden;
^~~~~~~~~~~~~
sprite_id
/home/rmdev/Player/lib/liblcf/src/generated/lcf/rpg/savemapeventbase.h:63:11: note: 'sprite_id' declared here
int32_t sprite_id = 0;
^
In file included from /home/rmdev/Player/src/algo.cpp:23:
In file included from /home/rmdev/Player/src/game_player.h:22:
/home/rmdev/Player/src/game_character.h:1253:17: error: no member named 'sprite_hidden' in 'lcf::rpg::SaveMapEventBase'; did you mean 'sprite_id'?
return data()->sprite_hidden;
^~~~~~~~~~~~~
sprite_id
/home/rmdev/Player/lib/liblcf/src/generated/lcf/rpg/savemapeventbase.h:63:11: note: 'sprite_id' declared here
int32_t sprite_id = 0;
^
7 errors generated.
em++: error: '/home/rmdev/buildscripts/emscripten/emsdk-portable/upstream/bin/clang++ -target wasm32-unknown-emscripten -fignore-exceptions -fvisibility=default -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -DEMSCRIPTEN --sysroot=/home/rmdev/buildscripts/emscripten/emsdk-portable/upstream/emscripten/cache/sysroot -Xclang -iwithsysroot/include/compat -DHAVE_FLUIDSYNTH=1 -DHAVE_FREETYPE=1 -DHAVE_HARFBUZZ=1 -DHAVE_LIBMPG123=1 -DHAVE_LIBSNDFILE=1 -DHAVE_LIBSPEEXDSP=1 -DHAVE_LIBXMP=1 -DHAVE_OGGVORBIS=1 -DHAVE_OPUS=1 -DHAVE_WINE=1 -DNDEBUG -DSUPPORT_AUDIO=1 -DUSE_SDL=2 -DWANT_DRWAV=1 -DWANT_FMMIDI=1 -I/home/rmdev/Player/src -I/home/rmdev/Player/build/lib/liblcf/src -I/home/rmdev/Player/lib/liblcf/src -I/home/rmdev/Player/lib/liblcf/src/generated -isystem /home/rmdev/buildscripts/emscripten/include/SDL2 -isystem /home/rmdev/buildscripts/emscripten/include -isystem /home/rmdev/buildscripts/emscripten/include/pixman-1 -isystem /home/rmdev/buildscripts/emscripten/include/freetype2 -isystem /home/rmdev/buildscripts/emscripten/include/harfbuzz -isystem /home/rmdev/buildscripts/emscripten/include/speex -isystem /home/rmdev/buildscripts/emscripten/include/vorbis -isystem /home/rmdev/buildscripts/emscripten/include/opus -isystem /home/rmdev/buildscripts/emscripten/include/libxmp-lite -O3 -DNDEBUG -fno-math-errno -std=gnu++14 -MD -MT CMakeFiles/EasyRPG_Player.dir/src/algo.cpp.o -MF CMakeFiles/EasyRPG_Player.dir/src/algo.cpp.o.d -c /home/rmdev/Player/src/algo.cpp -o CMakeFiles/EasyRPG_Player.dir/src/algo.cpp.o' failed (returned 1)
[3/352] Building CXX object CMakeFiles...RPG_Player.dir/src/audio_decoder.cpp.o
ninja: build stopped: subcommand failed.
What Iām doing wrong? Maybe I should change commands?
buildscripts and Player repos are updated to the latest state.