![]() |
D++ (DPP)
C++ Discord API Bot Library
|
To install D++ from XBPS source packages collection, follow the step below (as root):
xbps-install -Sy dpp-devel
This will install D++ development files and related libraries
You will now be able to use D++ by including its library on the command line:
g++ mybot.cpp -o mybot -ldpp
To build D++ with coroutine support as an XBPS package, follow the steps below. Ensure that xbps-src is set up beforehand:
# Inside the void-packages root folder git checkout master && git pull # Modifies the configure arguments to include coroutine support (-DDPP_CORO=ON) grep -q 'configure_args=.*-DDPP_CORO=ON' srcpkgs/dpp/template || sed -i -e 's/\(configure_args="[^"]*\)"/\1 -DDPP_CORO=ON"/' srcpkgs/dpp/template ./xbps-src -K pkg dpp
Then as root:
# Inside the void-packages root folder xbps-install --repository hostdir/binpkgs dpp-devel
This will do the following three things: