F3D Superbuild is the project responsible for the creation of the binary package of F3D, available on f3d.app. It can also be usefull to build F3D and all its dependencies in a more automated way.
It relies on the common-superbuild logic and contains it as a git submodule.
The idea of a superbuild is to download, configure, build, install and package every single dependency of a program, and the program itself of course, and this is what F3D Superbuild is doing for F3D.
This repository also generate a nightly release of F3D.
- Clone the F3D superbuild main branch
- Create a build directory
- Run
cmake
from the build directory pointing to F3D superbuild source, multi-config generator are not supported - Change options as needed, defaults options are correct to generate a package of F3D master branch
- Build the whole project, this will take a while, the result is stored in the
install
directory - Run
cmake
again to update thef3d-version.cmake
file used by the packaging step - Run
ctest
to run create the package and test it - Relocatable binary package have been generated in the build directory
- Clone the F3D superbuild main branch
- Checkout the tag of the needed release (
vN.M.O
, earlier supported isv1.3.1
). - Create a build directory
- Run
cmake
from the build directory pointing to F3D superbuild source, multi-config generator are not supported - Change options as needed, defaults options are correct to generate a package of F3D master branch
- Build the whole project, this will take a while, the result is stored in the
install
directory - Run
cmake
again to update thef3d-version.cmake
file used by the packaging step - Run
ctest
to run create the package and test it - Relocatable binary package have been generated in the build directory
- Navigate to https://github.com/f3d-app/f3d-superbuild/actions/workflows/release.yml
- Click "run workflow", with branch: main, F3D version to build: origin/master, Superbuild branch/tag to use: main
- Wait for github actions to finish, this will take a while
- Download the relocatable package which are available as artifacts
- Assuming the wanted tag exists on f3d-app/f3d and is named $tag.
- Navigate to https://github.com/f3d-app/f3d-superbuild/actions/workflows/release.yml
- Click "run workflow", with branch: main, "F3D version to build": $tag, "Superbuild branch/tag to use": main
- Set "Publish assets" to true to publish the resulting assets to an existing F3D prerelease.
- Wait for github actions to finish, this will take a while
- Download the relocatable package which are available as artifacts
- Assuming the wanted release is vN.M.O
- Navigate to https://github.com/f3d-app/f3d-superbuild/actions/workflows/release.yml
- Click "run workflow", with branch: vN.M.O, F3D version to build: vN.M.O, Superbuild branch/tag to use: vN.M.O
- Wait for github actions to finish, this will take a while
- Download the relocatable package which are available as artifacts
ENABLE_f3d
: ON by default, obviously required to packaged F3DENABLE_alembic
: ON by defaut, build and package alembic and the associated F3D pluginENABLE_assimp
: ON by defaut, build and package assimp and the associated F3D pluginENABLE_draco
: ON by defaut, build and package draco and the associated F3D pluginENABLE_occt
: ON by defaut, build and package occt and the associated F3D pluginENABLE_openexr
: ON by default, build and package OpenEXR and the associated VTK moduleENABLE_ospray
: ON by defaut, build and package ospray and the associated VTK moduleENABLE_tbb
: ON by default, build and package TBB to enable multi-threadingENABLE_pybind11
: OFF by defaut, build pybind11 and F3D python bindings, not packageableUSE_SYSTEM_python3
: OFF by default, can be enabled if available as python is only a build time dependencyf3d_SOURCE_SELECTION
: git by default, let the user choose the version of F3D to build and packagef3d_GIT_TAG
: master by default, when using-Df3d_SOURCE_SELECTION=git
, select the branch or commit to buildvtk_SOURCE_SELECTION
: 9.2.6 by default, select the version of VTK to build and packagevtk_GIT_TAG
: master by default, when using-Dvtk_SOURCE_SELECTION=git
, select the branch or commit to buildBUILD_TESTING
: ON by default, required for the packaging step
see the BSD 3-Clause LICENSE.
- Inspired by/Copied from paraview-superbuild, Copyright (c) 2005-2008 Sandia Corporation, Kitware Inc.
- Uses FileAssociation.nsh, Copyright (c) Vytautas Krivickas from https://nsis.sourceforge.io/File_Association.