Cmake error installing rstudio-desktop

I am getting the following error while installing rstudio-desktop with the command:

yay -S rstudio-desktop

Building SOCI...
CMake Error at CMakeLists.txt:13 (cmake_minimum_required):
  Compatibility with CMake < 3.5 has been removed from CMake.

  Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
  to tell CMake that the project requires at least <min> but has been updated
  to work with policies introduced by <max> or earlier.

  Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.

It seems SOCI package is not aware of CMake 4.0

Common issue since CMake 4.0 which can be avoided with the flag -DCMAKE_POLICY_VERSION_MINIMUM=3.5 (same error in another package How to fix cmake < 3.5 compatibility error - #7 by Yochanan)

I have commented on the AURweb page AUR (en) - rstudio-desktop

but is not the only issue AUR (en) - rstudio-desktop


It seems SOCI package is not aware of CMake 4.0

btw the issue is that it have cmake minimum required version too low, with cmake 4.0 it want at least 3.5

Thanks @Lolix , for me it works now. I am not sure what other issues are you talking about?

https://aur.archlinux.org/packages/rstudio-desktop#comment-1022044

/build/rstudio-desktop/src/build/_deps/yaml-cpp-src/src/emitterutils.cpp:221:11: error: ‘uint16_t’ was not declared in this scope
  221 | std::pair<uint16_t, uint16_t> EncodeUTF16SurrogatePair(int codePoint) {
      |           ^~~~~~~~
/build/rstudio-desktop/src/build/_deps/yaml-cpp-src/src/emitterutils.cpp:13:1: note: ‘uint16_t’ is defined in header ‘<cstdint>’; this is probably fixable by adding ‘#include <cstdint>’
   12 | #include "yaml-cpp/null.h"
  +++ |+#include <cstdint>
   13 | #include "yaml-cpp/ostream_wrapper.h"

Xiota updated with update depends - aur.git - AUR Package Repositories,
adding also -DRSTUDIO_USE_SYSTEM_YAML_CPP=ON

Is possible that you didn’t encounter it because you’re still on GCC 14 (I’m an Arh and already on GCC 15)