GCC compilers are recommended for macOS as AppleClang conflicts with Gfortran for exception handling.
Install libraries via Homebrew such as CMake:
brew install cmake gccgit clone https://github.com/gemini3d/gemini3d
cmake -S gemini3d -B gemini3d/build
cmake --build gemini3d/build
ctest --test-dir gemini3d/buildThe compiler relies on libc and libstdc++. If build errors missing "stdio.h" or "filesystem" at C++ link time, the system configuration may be messed up.
If problems, try installing Xcode:
xcode-select --installand try these environment variables:
export LIBRARY_PATH=$LIBRARY_PATH:/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib
export CPLUS_INCLUDE_PATH=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include
export CXXFLAGS=-I$CPLUS_INCLUDE_PATH
export CFLAGS=$CXXFLAGS