gemini3d

Build Gemini3D with GCC on Linux

This method also works for Windows WSL.

GCC 7.5 and newer works with Gemini3D.

apt install cmake
# or
dnf install cmake

One-time Gemini3D external library setup

git clone https://github.com/gemini3d/external

cmake -P external/scripts/requirements.cmake
# gives command to install compiler and system libraries

cmake -S external -B external/build -DCMAKE_INSTALL_PREFIX=~/lib_gcc

cmake --build external/build

that installs Gemini3d external libraries under ~/lib_gcc. This path is arbitrary but should be distinct between compilers.

NOTE: If CMake is too old, install a new CMake:

cmake -S external/scripts/install_cmake

Build and Test Gemini3D

git clone https://github.com/gemini3d/gemini3d

cmake -S gemini3d -B build/gemini3d -DCMAKE_PREFIX_PATH=~/lib_gcc

cmake --build gemini3d/build

ctest --test-dir gemini3d/build

Troubleshooting

The compiler relies on libc and libstdc++. If build errors about “filesystem” at C++ link time, the system configuration may be messed up. If problems, ensure environment variable LD_LIBRARY_PATH has first the libc and libstdc++ for the GCC version you wish to use.