Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: added install page for brew #1006

Merged
merged 6 commits into from
Nov 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docpages/03_installing.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ There are many ways to install D++, either from a package manager, or from sourc
* \subpage install-windows-vs-zip
* \subpage install-windows-clion-vcpkg
* \subpage install-xmake
* \subpage install-brew
* \subpage install-from-source
32 changes: 32 additions & 0 deletions docpages/install/install-brew.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
\page install-brew Installing from Homebrew (OSX)

To install D++ from brew, follow the steps below:

```bash
brew install libdpp
brew link libdpp
```

This command will install libdpp and setup links.

If it can't detect libdpp, please do `brew update` and repeat the steps above.

You will now be able to use D++ by including its library on the command line:

```bash
clang++ -std=c++17 -L/opt/homebrew/lib -I/opt/homebrew/include -ldpp mybot.cpp -o mybot
```

\include{doc} install_prebuilt_footer.dox

## Uninstalling & Unlinking

To unlink and uninstall dpp, run
```bash
brew unlink libdpp
brew uninstall libdpp
```

\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!

**Have fun!**