Brewtarget / brewtarget

Main brewtarget source code repository.
GNU General Public License v3.0
312 stars 134 forks source link

Support older MacOS than 12 #744

Open kgoba opened 1 year ago

kgoba commented 1 year ago

Hi, for those of us still running older hardware perfectly capable of running BrewTarget, yet not supporting the newer MacOS, is there a reason to be limited to v2.3.0?

I was able to build BrewTarget v3.0.7 on MacOS 10.13. My steps: 1) Install MacPorts 2) Run sudo port install clang-16 xalanc xercesc3 boost179 qt513 3) Clone the brewtarget repository and create a build folder 4) Run CC=clang-mp-16 CXX=clang++-mp-16 cmake <path_to_repo> -DBoost_INCLUDE_DIR=/opt/local/libexec/boost/1.79/include 5) Run make -j4 or something similar.

Note that I might be missing some other dependencies I had installed prior via MacPorts. I guess cmake could be one of them.

matty0ung commented 1 year ago

Glad you got it working. If you are feeling adventurous, have a look at https://github.com/Brewtarget/brewtarget/blob/develop/bt

The intention is that, once you have Python installed, you can get everything else installed automatically by running ./bt setup all. I have not tried this on an older version of MacOS, but it's used on the nightly GitHub builds.