Skip to content

Latest commit

 

History

History
64 lines (43 loc) · 1.29 KB

installOnMacOs.md

File metadata and controls

64 lines (43 loc) · 1.29 KB

Quick installation with Homebrew

You can add the gundam-organization brew tap and install the latest released version with the following commands:

brew tap gundam-organization/tap
brew install gundam

If you which to fetch the main branch instead:

brew install gundam --HEAD

If a new version is available, simply do:

brew upgrade gundam

Compiling the code

To compile on macOS you'll need to install XCode with the command line tools. Once it is done, dependencies on macOS can be handled by the package manager Homebrew:

brew install root yaml-cpp nlohmann-json

Let's create the Build and Install folder:

mkdir -p $BUILD_DIR/gundam
mkdir -p $INSTALL_DIR/gundam

Now let's generate binaries:

cd $BUILD_DIR/gundam
cmake \
  -DCMAKE_INSTALL_PREFIX:PATH=$INSTALL_DIR/gundam \
  -D CMAKE_BUILD_TYPE=Release \
  $REPO_DIR/gundam/.
make -j 4 install

If you did get there without error, congratulations! Now GUNDAM is installed on you machine :-D.

To access the executables from anywhere, you have to update you $PATH and $LD_LIBRARY_PATH variables:

export PATH="$INSTALL_DIR/gundam/bin:$PATH"
export LD_LIBRARY_PATH="$INSTALL_DIR/gundam/lib:$LD_LIBRARY_PATH"