rizinorg / rz-retdec

RetDec Decompiler Plugin for Rizin
GNU Lesser General Public License v3.0
28 stars 8 forks source link

Error in building the plugin #7

Open iamavu opened 2 years ago

iamavu commented 2 years ago

I am following the steps mentioned at https://github.com/rizinorg/rz-retdec#process

While running the command cmake .. -DCMAKE_INSTALL_PREFIX=~/.local

I get the following error -

  By not providing "FindRizin.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Rizin", but
  CMake did not find one.

  Could not find a package configuration file provided by "Rizin" with any of
  the following names:

    RizinConfig.cmake
    rizin-config.cmake

  Add the installation prefix of "Rizin" to CMAKE_PREFIX_PATH or set
  "Rizin_DIR" to a directory containing one of the above files.  If "Rizin"
  provides a separate development package or SDK, be sure it has been
  installed.

I tried finding the cmake files throughout the repo but couldn't find them Thanking in advance

wargio commented 2 years ago

are you using rizin from stable branch?

iamavu commented 2 years ago

I have rizin installed via arch pacman community/rizin 0.3.4-1 (5.1 MiB 21.4 MiB) (Installed) So I assume that's the stable branch

wargio commented 2 years ago

3.4 is stable. you need to use 0.4.0 which is the current dev (i.e. next release) because those cmake configs are not currently available with stable. @thestr4ng3r might confirm

iamavu commented 2 years ago

I am having error in building rizin via both the intended method mentioned in repo and the AUR build also fails, any update on when the next release would be pushed?

thestr4ng3r commented 2 years ago

Soon-ish, but it depends on whether it's considered stable enough rather than a specific date. Right now the best way is to build all manually from source, not aur or distributions, if you want to use retdec.

iamavu commented 2 years ago

Alright, thank you so much for your help both of you! Have a nice week.

XVilka commented 1 year ago

@iamavu there were multiple releases since, did it fix your issue?

iamavu commented 1 year ago

@XVilka

I did try just now, but seems it's not working Here is the attached error


-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Setting build type to 'Release' as none was specified.
CMake Error at CMakeLists.txt:65 (find_package):
  By not providing "FindRizin.cmake" in CMAKE_MODULE_PATH this project has                                                                       
  asked CMake to find a package configuration file provided by "Rizin", but                                                                      
  CMake did not find one.                                                                                                                        

  Could not find a package configuration file provided by "Rizin" with any of                                                                    
  the following names:                                                                                                                           

    RizinConfig.cmake                                                                                                                            
    rizin-config.cmake                                                                                                                           

  Add the installation prefix of "Rizin" to CMAKE_PREFIX_PATH or set                                                                             
  "Rizin_DIR" to a directory containing one of the above files.  If "Rizin"                                                                      
  provides a separate development package or SDK, be sure it has been                                                                            
  installed.                                                                
wargio commented 1 year ago

you need to provide rizin.