Ability to build the library #31964

issue placintaalexandru openend this issue on February 28, 2025
  1. placintaalexandru commented at 3:02 pm on February 28, 2025: none

    Please describe the feature you’d like to see added.

    Is it possible t build the library so it can be used by external applications as well?

    I would like to be able to build the project, do make install and then have the headers and libs in /usr/local/include and /usr/local/lib

    No response

    Describe the solution you’d like

    No response

    Describe any alternatives you’ve considered

    No response

    Please leave any additional context

    No response

  2. placintaalexandru added the label Feature on Feb 28, 2025
  3. pinheadmz commented at 3:06 pm on February 28, 2025: member

    First of all we have migrated to cmake instead of make install ;-)

    Bitcoin Core does not plan on exposing a shared library, this is an old discussion: https://github.com/bitcoin/bitcoin/pull/5084

  4. purpleKarrot commented at 3:19 pm on February 28, 2025: contributor

    First of all we have migrated to cmake instead of make install ;-)

    This is not an argument. CMake’s “Unix Makefiles” generator does generate an install target, as documented here.

    Executing make install in the build directory installs executables and manpages, no headers and no libraries.

  5. placintaalexandru commented at 3:21 pm on February 28, 2025: none
    Yes, I saw the transition to cmake. My question is more about the ability to build project as a library so other projects can link against it
  6. purpleKarrot commented at 3:25 pm on February 28, 2025: contributor
    When BUILD_KERNEL_LIB is set to ON, a libbitcoinkernel.so is installed together with a libbitcoinkernel.pc for pgkconfig. But no header files. Also no CMake config files.
  7. placintaalexandru commented at 3:41 pm on February 28, 2025: none
    unfortunately I need libbitcoin_consensus and some headers from that lib
  8. pinheadmz commented at 4:00 pm on February 28, 2025: member

    unfortunately I need libbitcoin_consensus and some headers from that lib

    Can you explain a bit more what you are working on?

  9. fanquake removed the label Feature on Mar 4, 2025
  10. fanquake added the label Questions and Help on Mar 4, 2025
  11. fanquake commented at 6:29 pm on March 4, 2025: member
    I think what you want is #30595?
  12. placintaalexandru commented at 6:36 pm on March 4, 2025: none
    Yes, I want to be able to build (selectively of possible) the libs used by the project and be able to get the header files as well

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2025-03-31 09:12 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me