rizinorg / ideas

Features that would be nice to have but they are not in the roadmap
3 stars 0 forks source link

Provide Rizin and related libraries as C/C++ packages #20

Open XVilka opened 2 years ago

XVilka commented 2 years ago

See https://caiorss.github.io/C-Cpp-Notes/package-managers.html

XVilka commented 1 year ago

Creating a Conan package with Meson buildsystem:

assarbad commented 1 year ago

Allegedly this seems to be technically possible now: https://github.com/microsoft/winget-cli/issues/140 (also see this)

XVilka commented 10 months ago

My take on Conan but stuck on resolving embedded subprojects (rzgdb in particular): https://github.com/XVilka/conan-center-index/tree/rizin/recipes/rizin

It returns the following error:

Run-time dependency rzgdb found: NO (tried pkgconfig, framework and cmake)
Not looking for a fallback subproject for the dependency rzgdb because:
Use of fallback dependencies is disabled.

../src/librz/io/meson.build:98:2: ERROR: Dependency 'rzgdb' is required but not found.

A full log can be found at /Users/user/.conan2/p/b/rizind74cf6d9d483f/b/build-release/meson-logs/meson-log.txt

rizin/0.6.1: ERROR:
Package '5df8d4f8bf2948ba0ae7407f3a7b681bd62ab9f3' build failed
rizin/0.6.1: WARN: Build folder /Users/user/.conan2/p/b/rizind74cf6d9d483f/b/build-release
*********************************************************
Recipe 'rizin/0.6.1' cannot build its binary
It is possible that this recipe is not Conan 2.0 ready
If the recipe comes from ConanCenter check: https://conan.io/cci-v2.html
If it is your recipe, check if it is updated to 2.0
*********************************************************

ERROR: rizin/0.6.1: Error in build() method, line 93
        meson.configure()
        ConanException: Error 1 while executing

Any clues and hints are appreciated