Skip to content
Snippets Groups Projects
Commit b58cf4a6 authored by Philipp Rosenberger's avatar Philipp Rosenberger Committed by Clemens Linnhoff
Browse files

Update README.md

parent d8d00b56
No related branches found
No related tags found
No related merge requests found
......@@ -16,21 +16,48 @@ Follow the instructions below to create the log files correctly.
## How to generate the log files
### Build source and model
- Clone the _flatbuffers_examples_ branch of the [OSI Sensor Modeling Packaging repository](https://github.com/OpenSimulationInterface/osi-sensor-model-packaging) with submodules <br>
```
git clone git@github.com:OpenSimulationInterface/osi-sensor-model-packaging.git```
#### Clone the _feature/flatbuffers_examples_ branch of the [OSI Sensor Modeling Packaging repository](https://github.com/OpenSimulationInterface/osi-sensor-model-packaging) with submodules <br>
```shell
git clone git@github.com:OpenSimulationInterface/osi-sensor-model-packaging.git
cd osi-sensor-model-packaging
git checkout flatbuffers_examples
git checkout feature/flatbuffers_examples
git submodule update --init --recursive
```
- Build <br>
```
#### Build
##### Ubuntu
```shell
cd examples
mkdir -p build
cd build
cmake ..
cmake --build .
```
##### Windows and VS2017
- Example with cmake.exe installed to `C:\Progra~1\CMake\bin\`
- Protobuf is still needed for the moment.
- For the build-script below, protobuf is expected to be installed according to [these instructions](https://gitlab.com/tuda-fzd/perception-sensor-modeling/reflection-based-lidar-object-model/-/blob/master/install_protobuf_Win64_VS2017.md)
```batch
if exist build rd /s /q build
mkdir build
cd build
C:\Progra~1\CMake\bin\cmake.exe ^
-G "Visual Studio 15 2017" ^
-DCMAKE_BUILD_TYPE=Debug ^
-DCMAKE_GENERATOR_PLATFORM:INTERNAL=x64 ^
-DCMAKE_SHARED_LINKER_FLAGS:STRING=/machine:x64 ^
-DCMAKE_STATIC_LINKER_FLAGS:STRING=/machine:x64 ^
-DCMAKE_EXE_LINKER_FLAGS:STRING=/machine:x64 ^
-DCMAKE_MODULE_LINKER_FLAGS:STRING=/machine:x64 ^
-DProtobuf_INCLUDE_DIR=C:/protobuf-3.14/include ^
-DPROTOBUF_PROTOC_EXECUTABLE=C:/protobuf-3.14/bin/protoc.exe ^
-DProtobuf_LIBRARY_DEBUG=C:/protobuf-3.14/lib/libprotobufd.lib ^
-DProtobuf_LIBRARY_RELEASE=C:/protobuf-3.14/lib/libprotobuf.lib ^
-DProtobuf_LITE_LIBRARY_DEBUG=C:/protobuf-3.14/lib/libprotobuf-lited.lib ^
-DProtobuf_LITE_LIBRARY_RELEASE=C:/protobuf-3.14/lib/libprotobuf-lite.lib ^
-DProtobuf_PROTOC_LIBRARY_DEBUG=C:/protobuf-3.14/lib/libprotocd.lib ^
-DProtobuf_PROTOC_LIBRARY_RELEASE=C:/protobuf-3.14/lib/libprotoc.lib ^
..
```
### Set up a co-simulation
- To set up a co-simulation for your source and model, we recommend using the open source framework [OpenMCx](https://github.com/eclipse/openmcx).
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment