EasyRPG / Editor

Game editor similar to RPG Maker
https://easyrpg.org/editor/
GNU General Public License v3.0
350 stars 58 forks source link

Unable to build with newer versions of libclf #220

Closed MolassesLover closed 1 year ago

MolassesLover commented 1 year ago

The Issue

The editor cannot be built with the latest versions of libclf, as it fails with this error:

/var/home/maeve/Source/Repositories/GitHub/EasyRPG/Editor/src/stringizer.cpp: In function ‘QString Stringizer::stringize(const lcf::rpg::EventCommand&)’:
/var/home/maeve/Source/Repositories/GitHub/EasyRPG/Editor/src/stringizer.cpp:1520:25: error: ‘SpriteTransparency’ is not a member of ‘C’ {aka ‘lcf::rpg::EventCommand::Code’}
 1520 |                 case C::SpriteTransparency:              return stringizeSpriteTransparency(com);
      |                         ^~~~~~~~~~~~~~~~~~
/var/home/maeve/Source/Repositories/GitHub/EasyRPG/Editor/src/stringizer.cpp:1535:25: error: ‘ChangeEncounterRate’ is not a member of ‘C’ {aka ‘lcf::rpg::EventCommand::Code’}; did you mean ‘ChangeEncounterSteps’?
 1535 |                 case C::ChangeEncounterRate:     return stringizeChangeEncounterRate(com);
      |                         ^~~~~~~~~~~~~~~~~~~
      |                         ChangeEncounterSteps

Reproducing

Build as usual with CMake; in my case that was with the following commands:

cmake \
  -B target/debug \
  -D CMAKE_BUILD_TYPE=debug \
  -D CMAKE_C_COMPILER='/usr/bin/cc' \
  -D CMAKE_CXX_COMPILER='/usr/bin/c++' \
  -G 'Unix Makefiles' 
cmake --build target/debug -j$(nproc)

The conversation on Discord can be found here.

MolassesLover commented 1 year ago

The last Jenkins build ran on Jun 25, 2022, which made this the latest libclf commit, on May 24, 2022.

MolassesLover commented 1 year ago

Closing, this is a duplicate of #218.