r2pm icon indicating copy to clipboard operation
r2pm copied to clipboard

r2pm doesn't works if Cmake's default generator isn't make

Open GiuseppeCesarano opened this issue 5 years ago • 2 comments

Describe the issue
r2pm doesn't build packages if the cmake's default generator isn't make.

How to reproduce? Simply setting cmake's default generator to anything else than makefiles. Eg: Having CMAKE_GENERATOR=Ninja

Expected behavior Still building the file using the default generator.

Possible fix Using cmake --build . instead of make or forcing cmake to use make

GiuseppeCesarano avatar Jul 28 '20 12:07 GiuseppeCesarano

Hi @GiuseppeCesarano. I must confess that I'm a bit puzzled here - r2pm does not call cmake itself, it merely executes the commands from a manifest. Can you explain precisely how you hit that problem?

qbarrand avatar Aug 19 '20 20:08 qbarrand

Yes. I was trying to install r2ghidra-dec with the suggested command r2pm -i r2ghidra-dec. Somewhere, CMake is called, and build files are generated, than later make is called too on the generated files, but i had the default CMake generator to Ninja so the make call failed.

GiuseppeCesarano avatar Aug 20 '20 10:08 GiuseppeCesarano