mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
044dd8a616
* delet chatterino.pro * Update documentation * Update Github Actions config * Update Cirrus CI config * Attempt to fix Cirrus CI * Add changelog entry * Delete tools/update_filelist.py It was a QMake-only script? Maybe will need revert + change to CMake or something? * fix? * Fuck this linter * Attempt to clean up build.yml a little * Add cmaake to install list, remove step for qmake PATH * Change list entries to always use 1. Sneaky unrelated change * These are no longer tests! * FUCK YOU PRETTIER * Make BUILDING_ON_LINUX.md simpler * Get rid of Jenkins * Get rid of travis * Remove dupes * Remove appveyor * Remove qmake from conanfile * Try removing explicit qmake path * Nothing uses the qt style plugins installer anymore * Update manual linux building instructions * Update freebsd compilation instructions with a copy paste from the linux instructions * Remove unused docker files * Remove linux breakpad build script as it's unused * Update changelog entry phrasing * Lint build markdown files * Change top changelog entry to not be confused as a link * Skip QtCreator conan setup if conan is disabled This reduces the amount of warnings & errors Windows users get with QtCreator * lint building on linux file Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
1.7 KiB
1.7 KiB
Building on macOS
Note - If you want to develop Chatterino 2 you might also want to install Qt Creator (make sure to install Qt 5.12 or newer), it is not required though and any C++ IDE (might require additional setup for cmake to find Qt libraries) or a normal text editor + running cmake from terminal should work as well
Note - Chatterino 2 is only tested on macOS 10.14 and above - anything below that is considered unsupported. It may or may not work on earlier versions
- Install Xcode and Xcode Command Line Utilities
- Start Xcode, go into Settings -> Locations, and activate your Command Line Tools
- Install brew https://brew.sh/
- Install the dependencies using
brew install boost openssl rapidjson cmake
- Install Qt5 using
brew install qt@5
- (OPTIONAL) Install ccache (used to speed up compilation by using cached results from previous builds) using
brew install ccache
- Go into the project directory
- Create a build folder and go into it (
mkdir build && cd build
) - Compile using
cmake .. && make
If the Project does not build at this point, you might need to add additional Paths/Libs, because brew does not install openssl and boost in the common path. You can get their path using
brew info openssl
brew info boost
If brew doesn't link OpenSSL properly then you should be able to link it yourself by using these two commands:
ln -s /usr/local/opt/openssl/lib/* /usr/local/lib
ln -s /usr/local/opt/openssl/include/openssl /usr/local/include/openssl
The lines which you need to add to your project file should look similar to this
INCLUDEPATH += /usr/local/opt/openssl/include
LIBS += -L/usr/local/opt/openssl/lib