Skip to main content
Version: 0.4.0

Installation

:::tip Using Scirocco from Python or an MDO framework? You don't have to build anything. Both Philote servers come as Docker images:

docker run -d --rm --name scirocco -p 50051:50051 chrislupp/scirocco:0.4.0
docker run -d --rm --name scirocco-kulfan -p 50052:50052 chrislupp/scirocco-kulfan:0.4.0

Then continue with Python and MDO frameworks. Build from source when you want the C++ library or HDF5 history files. See Docker for the image tags. :::

The core library needs only Eigen. Everything else is optional: turn on what you use. All commands run from the repository root.

You wantYou needBuild option
The C++ libraryCMake 3.18+, a C++17 compiler, Eigen 3.4+(default)
The C++ library, without buildingHomebrew, on macOS or Linuxnone: use the formula
HDF5 history filesHDF5 with C++ bindingsSCIROCCO_HDF5_OUTPUT=ON
Philote servers, for Python and MDO frameworksProtobuf, gRPC, Philote-Cpp 0.6.0SCIROCCO_BUILD_PHILOTE=ON
Philote servers, without buildingDockernone: use the images
The test suitesGoogle Test, and HDF5 for the reference tests(on by default)

CI builds with GCC 14 and Clang 18 on Ubuntu 24.04. macOS with Homebrew works too.

Homebrew​

On macOS or Linux, Homebrew installs the C++ library from chrislupp/tools, a tap that follows each release:

brew install chrislupp/tools/scirocco

This builds the core library from the release's source and installs its headers and CMake package. On macOS the dense solves use Accelerate; on Linux, OpenBLAS. CMake finds the package under Homebrew's prefix, so link it as shown in the quickstart and add -DCMAKE_PREFIX_PATH="$(brew --prefix)" if CMake can't find it.

The formula has the core library only. Build from source for HDF5 history files, the Philote servers, the tests or the examples. Upgrade with brew upgrade scirocco.

fauXFOIL, the XFOIL-style command line, has its own formula, so library users don't get it or Qt:

brew install chrislupp/tools/fauxfoil

The C++ library from source​

brew install cmake eigen
git clone https://github.com/chrislupp/Scirocco.git
cd Scirocco
cmake -S scirocco -B scirocco/build -DCMAKE_BUILD_TYPE=Release
cmake --build scirocco/build -j

This builds the library, the tests (if Google Test is installed), and the example programs. To use Scirocco from your own CMake project, see the quickstart. You can also add it as a subdirectory:

add_subdirectory(path/to/Scirocco/scirocco scirocco-build)
target_link_libraries(my_app PRIVATE scirocco)

:::tip If CMake can't find Homebrew packages Add -DCMAKE_PREFIX_PATH="$(brew --prefix)" to the configure command. :::

HDF5 output​

brew install hdf5
cmake -S scirocco -B scirocco/build -DCMAKE_BUILD_TYPE=Release \
-DSCIROCCO_HDF5_OUTPUT=ON
cmake --build scirocco/build -j

Link against the scirocco_hdf5 target. The writer is available from a source build only; the installed CMake package exports the core library. See Save results to HDF5.

Philote servers for Python​

Python talks to Scirocco through two gRPC servers built on Philote-Cpp. Install gRPC and Protobuf:

brew install grpc protobuf pkg-config

Build Philote-Cpp v0.6.0, the tested release. It matches philote-mdo==0.8.0 on the Python side; other versions use a different wire format.

git clone --recurse-submodules https://github.com/MDO-Standards/Philote-Cpp.git
git -C Philote-Cpp checkout 49e1b42c3e46a4b9b70619c29e705985a6e6555d
git -C Philote-Cpp submodule update --init --recursive
cmake -S Philote-Cpp -B Philote-Cpp/build -DCMAKE_BUILD_TYPE=Release \
-DBUILD_TESTS=OFF -DBUILD_EXAMPLES=OFF
cmake --build Philote-Cpp/build -j

Then build Scirocco with the servers. No install step is needed; Scirocco uses Philote-Cpp's build tree directly.

cmake -S scirocco -B scirocco/build-philote -DCMAKE_BUILD_TYPE=Release \
-DPhiloteCpp_DIR="$PWD/Philote-Cpp/build" \
-DSCIROCCO_BUILD_PHILOTE=ON
cmake --build scirocco/build-philote -j

This produces scirocco_server and scirocco_kulfan_server in scirocco/build-philote/src/philote/. Continue with Python and MDO frameworks to set up a client. If you'd rather not build the servers, use Docker.

Run the tests​

ctest --test-dir scirocco/build --output-on-failure

Which suites run depends on what you installed. Without HDF5 the reference suites are skipped; without Google Test only the install check runs. List what's registered with ctest --test-dir scirocco/build -N.

All build options are listed under Build options. If something goes wrong, see Troubleshooting.