Skip to content

Commit 6eb143b

Browse files
committed
Removing installation steps from README and considering them in docu
Signed-off-by: Philipp Rosenberger <philipp.rosenberger@partner.bmw.de>
1 parent f52aeb3 commit 6eb143b

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

README.md

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ python3 generate_osi_messages.py
8383
This will output an osi file (`sv_330_361_1000_movingobject.osi`) which can be visualized and played back by the [osi-visualizer](https://github.com/OpenSimulationInterface/osi-visualizer).
8484

8585
See Google's documentation for more tutorials on how to use protocol buffers with [Python](https://developers.google.com/protocol-buffers/docs/pythontutorial) or [C++](https://developers.google.com/protocol-buffers/docs/cpptutorial).
86-
## Installation
86+
## Installation on Linux
8787
##### Dependencies
8888
Install `cmake` 3.10.2:
8989
```bash
@@ -94,10 +94,20 @@ Install `pip3` and missing python packages:
9494
$ sudo apt-get install python3-pip python3-setuptools
9595
```
9696
Install `protobuf`:
97-
```bash
98-
$ sudo apt-get install libprotobuf-dev protobuf-compiler
99-
```
100-
97+
- Install `protobuf` from source to allow static linking of your OSI FMUs:<br>
98+
```bash
99+
$ wget https://github.com/protocolbuffers/protobuf/releases/download/v21.12/protobuf-all-21.12.tar.gz
100+
$ tar -xzf protobuf-all-21.12.tar.gz
101+
$ cd protobuf-21.12/
102+
$ ./configure --disable-shared CXXFLAGS="-fPIC"
103+
$ make
104+
$ sudo make install
105+
$ sudo ldconfig
106+
```
107+
- Install `protobuf` with apt, if you would like to link dynamically against it (NOT RECOMMENDED):<br>
108+
```bash
109+
$ sudo apt-get install libprotobuf-dev protobuf-compiler
110+
```
101111

102112
##### Build and install for `C++` usage:
103113
```bash

0 commit comments

Comments
 (0)