mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-03-05 14:06:27 -05:00
Merge bitcoin/bitcoin#30779: doc: add -DWITH_BDB=ON
to unix build docs
ddef914bbb
doc: remove extraneous install statement (tdb3)bc532c915e
doc: add with_bdb to unix build docs (tdb3) Pull request description: Existing instructions for building legacy wallet support omit `-DWITH_BDB=ON`, which results in: ``` CMake Warning: Manually-specified variables were not used by the project: BerkeleyDB_INCLUDE_DIR ``` and a build without BDB support. This PR updates the docs to include `-DWITH_BDB=ON`. Also adds a minor correction to the OpenBSD build doc. Checked by building on Linux (Debian 12.7), FreeBSD 14.1, and OpenBSD 7.5 and attempting to create a legacy wallet with the `createwallet` rpc (with `-deprecatedrpc=create_bdb`). ACKs for top commit: l0rinc: utACKddef914bbb
fanquake: ACKddef914bbb
Tree-SHA512: 261568700b95fc073e03db6ca64a5f0544d5aed337aee4275575c1d0d1373c2a96911947abd202da3ed7c3b7a662b700b0596c0dabefe4b50900a798eed7e118
This commit is contained in:
commit
99e35fb7b9
3 changed files with 4 additions and 4 deletions
|
@ -118,7 +118,7 @@ Run `cmake -B build -LH` to see the full list of available options.
|
|||
This enables support for both wallet types, assuming
|
||||
`sqlite3` and `db4` are both installed.
|
||||
```bash
|
||||
cmake -B build -DBerkeleyDB_INCLUDE_DIR:PATH="${BDB_PREFIX}/include"
|
||||
cmake -B build -DBerkeleyDB_INCLUDE_DIR:PATH="${BDB_PREFIX}/include" -DWITH_BDB=ON
|
||||
```
|
||||
|
||||
##### No Wallet or GUI
|
||||
|
|
|
@ -90,7 +90,7 @@ There is an included test suite that is useful for testing code changes when dev
|
|||
To run the test suite (recommended), you will need to have Python 3 installed:
|
||||
|
||||
```bash
|
||||
pkg_add install python # Select the newest version of the package.
|
||||
pkg_add python # Select the newest version of the package.
|
||||
```
|
||||
|
||||
## Building Bitcoin Core
|
||||
|
@ -112,7 +112,7 @@ Run `cmake -B build -LH` to see the full list of available options.
|
|||
This enables support for both wallet types:
|
||||
|
||||
```bash
|
||||
cmake -B build -DBerkeleyDB_INCLUDE_DIR:PATH="${BDB_PREFIX}/include"
|
||||
cmake -B build -DBerkeleyDB_INCLUDE_DIR:PATH="${BDB_PREFIX}/include" -DWITH_BDB=ON
|
||||
```
|
||||
|
||||
### 2. Compile
|
||||
|
|
|
@ -161,7 +161,7 @@ and configure using the following:
|
|||
```bash
|
||||
export BDB_PREFIX="/path/to/bitcoin/depends/x86_64-pc-linux-gnu"
|
||||
|
||||
cmake -B build -DBerkeleyDB_INCLUDE_DIR:PATH="${BDB_PREFIX}/include"
|
||||
cmake -B build -DBerkeleyDB_INCLUDE_DIR:PATH="${BDB_PREFIX}/include" -DWITH_BDB=ON
|
||||
```
|
||||
|
||||
**Note**: Make sure that `BDB_PREFIX` is an absolute path.
|
||||
|
|
Loading…
Add table
Reference in a new issue