deltaphc / raylib-rs

Rust bindings for raylib
Other
751 stars 134 forks source link

Mention the requirement of ninja-build as a dependency #165

Closed jestarray closed 4 months ago

jestarray commented 1 year ago
sudo apt-get update
sudo apt-get install ninja-build

The 4.0+ bindings require ninja to build

jestarray commented 11 months ago

https://github.com/Rover656/raylib-rs/blob/986141500cad72848b16f3e8c6f2780f74277da1/raylib-sys/build.rs#L62 Since this commit, windows builds will break without ninja being in PATH, as well as linux. It might be better if we remove .generator("Ninja") and not have to deal with this. Advanced users can edit and build with ninja as they'd like.

https://discord.com/channels/426912293134270465/540620507708522517/1138805729541763082 building on windows will error out

 --- stderr
  CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
    Compatibility with CMake < 3.5 will be removed from a future version of
    CMake.

    Update the VERSION argument <min> value or use a ...<max> suffix to tell
    CMake that the project does not need compatibility with older versions.

  CMake Error: CMake was unable to find a build program corresponding to "Ninja".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.
  thread 'main' panicked at '
  command did not execute successfully, got: exit code: 1
jestarray commented 11 months ago

Oh I mispoke, so this only seems to be a problem with the 4.0+ bindings: https://github.com/deltaphc/raylib-rs/tree/4.0.0 not the current master 3.7, but its something to keep in mind