D++ (DPP)
C++ Discord API Bot Library
Loading...
Searching...
No Matches
Building on FreeBSD
Note
This page assumes you are the root user. If you are not, start the package install commands with sudo, along with make install. You will need sudo installed if you are not the root user.

1. Toolchain

Since the project uses CMake, you'll need to install it! If you don't have it, you can do the following:

pkg install cmake

2. Install Voice Dependencies (Optional)

If you wish to use voice support, you'll need to install opus:

cd /usr/ports/audio/opus
make && make install

3. Build Source Code

cmake -B ./build
cmake --build ./build -j8

Replace the number after -j with a number suitable for your setup, usually the same as the number of cores on your machine. cmake will fetch any dependencies that are required for you and ensure they are compiled alongside the library.

4. Install Globally

cd build
make install