This repository is used for building OSG and osgEarth on Macos/OSX. It installs a private (versioned) copy of homebrew for all dependencies (to keep from using a system's brew installation)
Prerequisites: CMake 3.21 (this version is important for properly building the below)
$ bash build.sh relwithdebinfo osg osgearth
The above perform the following:
- Install a local versioned copy of homebrew (into the directory containing this script).
- Install OSG and OSGEarth dependencies using local homebrew (installed to $SCRIPT_DIR/homebrew)
- Builds OSG using CMake's "RelWithDebInfo" build type (installed to $SCRIPT_DIR/install_$BUILD_TYPE)
- Builds osgEarth using CMake's "RelWithDebInfo" build type (installed to $SCRIPT_DIR/install_$BUILD_TYPE)
$ bash build.sh relwithdebinfo osgviewer
$ bash build.sh relwithdebinfo osgearthviewer