| 1 | \page install-brew Installing from Homebrew (OSX) |
| 2 | |
| 3 | To install D++ from brew, follow the steps below: |
| 4 | |
| 5 | ```bash |
| 6 | brew install libdpp |
| 7 | brew link libdpp |
| 8 | ``` |
| 9 | |
| 10 | This command will install libdpp and setup links. |
| 11 | |
| 12 | If it can't detect libdpp, please do `brew update` and repeat the steps above. |
| 13 | |
| 14 | You will now be able to use D++ by including its library on the command line: |
| 15 | |
| 16 | ```bash |
| 17 | clang++ -std=c++20 -L/opt/homebrew/lib -I/opt/homebrew/include -ldpp mybot.cpp -o mybot |
| 18 | ``` |
| 19 | |
| 20 | \include{doc} install_prebuilt_footer.dox |
| 21 | |
| 22 | ## Uninstalling & Unlinking |
| 23 | |
| 24 | To unlink and uninstall dpp, run |
| 25 | ```bash |
| 26 | brew unlink libdpp |
| 27 | brew uninstall libdpp |
| 28 | ``` |
| 29 | |
| 30 | \note As a precaution, double check inside `/opt/homebrew/lib` and `/opt/homebrew/include` to make sure that libdpp does not exist. If it does, remove files/folders relating to libdpp. If there are files left here and you don't remove them, you may see issues arise with different versions of D++. Sometimes, it may still act like some version of D++ exists, if it does that then please restart your system! |
| 31 | |
| 32 | **Have fun!** |