mirror-chatterino2/BUILDING_ON_MAC.md
nerix 2cb965d352
docs: cleanup/polish Markdown files (#5038)
Fixed some language stuff.
    Added alternative to httpbin.
    Updated expected space requirement on Windows.
    Removed unused VS component on Windows.
    Moved Qt Creator formatting to Windows docs.
    Updated nativs link to Qt 6.
    Added missing language to code blocks.
    Removed # Description from PR template and added instructions to fix a GitHub issue.

Co-authored-by: Wissididom <30803034+Wissididom@users.noreply.github.com>
Co-authored-by: pajlada <rasmus.karlsson+github@pajlada.com>
2023-12-23 11:39:53 +01:00

1.1 KiB

Building on macOS

Chatterino2 is built in CI on Intel on macOS 12. Local dev machines for testing are available on Apple Silicon on macOS 13.

Installing dependencies

  1. Install Xcode and Xcode Command Line Utilities
  2. Start Xcode, go into Settings -> Locations, and activate your Command Line Tools
  3. Install Homebrew
    We use this for dependency management on macOS
  4. Install all dependencies:
    brew install boost openssl@1.1 rapidjson cmake qt@5

Building

Building from terminal

  1. Open a terminal
  2. Go to the project directory where you cloned Chatterino2 & its submodules
  3. Create a build directory and go into it:
    mkdir build && cd build
  4. Run CMake:
    cmake -DCMAKE_PREFIX_PATH=/opt/homebrew/opt/qt@5 -DOPENSSL_ROOT_DIR=/opt/homebrew/opt/openssl@1.1 ..
  5. Build:
    make

Your binary can now be found under bin/chatterino.app/Contents/MacOS/chatterino directory

Other building methods

You can achieve similar results by using an IDE like Qt Creator, although this is undocumented but if you know the IDE you should have no problems applying the terminal instructions to your IDE.