Commit a7b39511 authored by Markus Georg Bendel's avatar Markus Georg Bendel

Prepare for hand in

parent 235a136b
Pipeline #186089 failed with stages
......@@ -3,11 +3,11 @@
A project that generates a SomeIP-Adapter for EmbeddedMontiArcMath components.
### Install SOME/IP:
## Install SOME/IP:
Get vsomeip from: https://github.com/GENIVI/vsomeip
Build instruction is in the readme on the site, short summary:
Build instruction and further documentation is in the readme on the site, short summary of the install instruction:
- A C++11 enabled compiler like gcc >= 4.8 is needed.
- vsomeip uses CMake as buildsystem.
- vsomeip uses Boost (boost.org), version has to be >= 1.55 and < 1.66:
......@@ -32,13 +32,29 @@ If build fails, try to apply this fix:
https://github.com/GENIVI/vsomeip/issues/25
Summary of the fix:
Replace "return &sockaddr;" with "return reinterpret_cast<struct sockaddr*>(&sockaddr);"
in the file: implementation/endpoints/include/netlink_connector.hpp
##### Build the documentation:
To build the documentation asciidoc, source-highlight, doxygen and graphviz is needed:
To build the documentation (after building vsomeip) asciidoc, source-highlight, doxygen and graphviz are needed:
```bash
sudo apt-get install asciidoc source-highlight doxygen graphviz
make doc
```
## Use SOME/IP:
One example which uses SOME/IP can be found in the example folder. Building it with cmake will produce two executables, publisher and subscriber. In this example, the publisher publishes the double 2.5, which will be printed to the standard out of the subscriber . One way to try it is by executing the files in two different consoles, starting with the publisher.
#### Use SOME/IP with docker:
A docker image with installed vsomeip can be found in the container registry of this project. The docker image can also be produced by using the dockerfile in the docker folder.
## Install the project
The SomeIP-Adapter can be installed with maven and java, using the command
```bash
mvn clean install -s settings.xml
```
......@@ -10,8 +10,8 @@ include_directories (
${VSOMEIP_INCLUDE_DIRS}
)
add_executable(service-example ../src/service-example.cpp)
target_link_libraries(service-example vsomeip ${Boost_LIBRARIES})
add_executable(client-example ../src/client-example.cpp)
target_link_libraries(client-example vsomeip ${Boost_LIBRARIES})
add_executable(publisher ../src/publisher.cpp)
target_link_libraries(publisher vsomeip ${Boost_LIBRARIES})
add_executable(subscriber ../src/subscriber.cpp)
target_link_libraries(subscriber vsomeip ${Boost_LIBRARIES})
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment