Skip to content

Cannot build lr-easyrpg due to cmake requirement (3.18+) on Buster #258

Description

@cmdrscotty

Describe the bug
lr-easyrpg requires Cmake 3.18+ but Buster only allows Cmake 3.16 from Apt

To Reproduce
Steps to reproduce the behavior:

  1. select lr-easyrpg (and easyrpg-player) to be available for install
  2. attempt to build lr-easyrpg from source
  3. error out
  4. check error log, note it states Cmake 3.18+ is required.

Expected behavior
Either list it cannot be installed on Buster, or script in to built Cmake 3.18 from source. (unfortunately might be something to disable this until Bullseye is eventually released)

Device (please complete the following information):

  • Pi Zero 2 W (Pi 3 equivalent)
  • RetroPi 4.8 (Buster)

Additional context
Relevant part of error log:

= = = = = = = = = = = = = = = = = = = = =
Building 'lr-easyrpg' : RPG Maker 2000/2003 engine - EasyRPG Player interpreter port for libretro.
= = = = = = = = = = = = = = = = = = = = =

CMake Error at CMakeLists.txt:1 (cmake_minimum_required):
  CMake 3.18 or higher is required.  You are running version 3.16.3


-- Configuring incomplete, errors occurred!
Error: could not find CMAKE_PROJECT_NAME in Cache
Could not successfully build lr-easyrpg - RPG Maker 2000/2003 engine - EasyRPG Player interpreter port for libretro. (/home/pi/RetroPie-Setup/tmp/build/lr-easyrpg/build/easyrpg_libretro.so not found).
/home/pi/RetroPie-Setup

Also of note, it isn't too hard to build Cmake 4.0.1 on the Pi Zero 2 W, just takes about 12 hours to do so

  1. Download source file: https://github.com/Kitware/CMake/releases/download/v4.1.1/cmake-4.1.1.tar.gz
  2. Remove current version of Cmake (sudo apt remove cmake)
  3. extract downloaded Cmake, enter folder and set up build env (./bootstrap)
  4. make: make -j$(nproc) <- this is where it took about 12 hours to complete.
  5. install: sudo make install
  6. reboot

you now have Cmake 4.0.1 installed.
as a precaution, also remove cmake from the easyrpg-player.sh requirements so it doesn't try to reinstall 3.16

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions