Skip to content

Compiling on MacOS 10.13 llvm 9.1 x86_64 apple darwin17

Steven A White edited this page Apr 22, 2022 · 3 revisions

Installing Brew and Dependencies

Instructions on this can be found elsewhere. To get started copy and paste the following into your terminal:

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Now make sure you link the /usr/local/opt folder in your .bash_profile (Note this linking may happen automatically when you install brew). Once properly linked install the following packages:

  brew install wget
  brew install git
  brew install ninja
  brew  install g++
  brew  install gcc
  brew  install eigen
  brew  install xerces-c
  brew  install xsd

Installing CMake

We will assume that you install cmake through the image provided:

This will also install the GUI (will help with compilation and debuging)

You can also install through brew:

  brew install cmake

Building BioGears

For this installation I will assume that you are working in ~/Desktop/biogears directory

cd ~/Desktop/biogears
git clone https://github.com/BioGearsEngine/core.git core
cd core
mkdir build; cd build
cmake -G "Ninja" -DCMAKE_INSTALL_PREFIX=/opt/biogears/usr \
                 -DCMAKE_PREFIX_PATH='/usr/local/opt'
                 -DBiogears_BUILD_HOWTOS=ON \
                 ..

ninja bg-cli
Clone this wiki locally