Inside Bitcoin
Opening the selected file…
Inside Bitcoin
Opening the selected file…
The code behind the network, with room to understand it.
Release published 2026-10-28 · Snapshot fetched 2026-11-01. Latest stable release at fetch time; development branches and Git history are excluded. Only the selected code window and visible folders load here.
1# libmultiprocess Installation3Installation currently requires Cap'n Proto 0.7 or higher:5```sh6apt install libcapnp-dev capnproto7brew install capnp cmake8dnf install capnproto9```11Installation steps are:13```sh14mkdir build15cd build16cmake ..17make18make check # Optionally build and run tests19make install20```22To build with libmultiprocess in a CMake project can specify:24```cmake25find_package(Libmultiprocess)26target_capnp_sources(mytarget ${CMAKE_CURRENT_SOURCE_DIR} myschema.capnp)27```29Which will locate the libmultiprocess cmake package, and call the30`target_capnp_sources` function to generate C++ files and link them into a31library or executable target. See `example/CMakeLists.txt` for a complete32example.34To build with libmultiprocess in a non-CMake project can use installed35`<prefix>/include/mpgen.mk` Makefile rule to generate C++ files, and36`<prefix>/lib/pkgconfig/libmultiprocess.pc` pkg-config definition to link37against the runtime library.39For cross-compilation, it may be useful to build the runtime library and code40generation binaries separately, which can be done with:42```sh43make install-bin # install bin/mpgen and related files44make install-lib # install lib/libmultiprocess.a and related files45```47It is also possible to import CMake targets separately with:49```cmake50find_package(Libmultiprocess COMPONENTS Bin)51find_package(Libmultiprocess COMPONENTS Lib)52```
Independent explanations by MyBitcoinExplorer. Not affiliated with or endorsed by Bitcoin Core. Guides are educational and do not replace the source or its tests.
Bitcoin Core source © its contributors, distributed under the MIT license. Original notices and bundled third-party licenses are retained in the source tree.