Skip to content

Adjust minimum protobuf requirement (fix #807) #814

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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