Skip to content

Commit

Permalink
Merge pull request #814 from OpenSimulationInterface/fix/protobuf-min…
Browse files Browse the repository at this point in the history
…-version-doc

Adjust minimum protobuf requirement (fix #807)
  • Loading branch information
pmai committed May 13, 2024
2 parents c49b3da + bc7453e commit 2c3953b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/setup/installing_prerequisites.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ vcpkg install --triplet=x64-windows-static-md protobuf
Dynamic linking (NOT RECOMMENDED)::

As already mentioned, shared linking is possible on Linux, but NOT RECOMMENDED.
However, for dynamic linking install _protobuf_ (version 3.0.0 or higher) with apt:
However, for dynamic linking install _protobuf_ (version 2.6.1 or higher) with apt:
----
sudo apt-get install libprotobuf-dev protobuf-compiler
----
Expand All @@ -64,7 +64,7 @@ This means that your OSI is build statically but still linking dynamically again
Here, again either _protobuf_ has to build statically from source or some solution e.g. vcpkg needs to be utilized.
We recommend the following (as in the README of the OSI project):

Install _protobuf_ (version 3.0.0 or higher) from source with `CXXFLAGS="-fPIC"` to allow static linking of your OSI FMUs (replace <version> with preferred release):
Install _protobuf_ (version 2.6.1 or higher) from source with `CXXFLAGS="-fPIC"` to allow static linking of your OSI FMUs (replace <version> with preferred release):
----
wget https://github.com/protocolbuffers/protobuf/releases/download/<version>/protobuf-all-<version>.tar.gz
tar -xzf protobuf-all-<version>.tar.gz
Expand Down

0 comments on commit 2c3953b

Please sign in to comment.