Skip to content

Latest commit

 

History

History
67 lines (50 loc) · 2.76 KB

INSTALL.md

File metadata and controls

67 lines (50 loc) · 2.76 KB

Dependencies

The following packages need to be installed in order to be able to compile SomeIP

  • glib 2
  • GDBus (for systemD support)
  • maven (for the code generator)
  • unzip
  • wget
  • boost

On Ubuntu or debian, those dependencies can be installed with the following command: $ sudo apt-get install libglib2.0-dev maven libdbus-glib-1-dev unzip libboost-dev

Additionally, you need to download those packages:

Build

Here are instructions on how to build the package. By setting the CMAKE_INSTALL_PREFIX variable, you can set the path where you want the software packages to be installed. The default value is "/usr/local". If you prefer to use another location, you will have to set the PKG_CONFIG_PATH, LD_LIBRARY_PATH and PATH in order for packages to find their dependencies.

replace "/My/Installation/Location" by the actual location where you want the packages be be installed

export APP_INSTALL_PATH=/My/Installation/Location export LIB_ARCH=gcc --print-multiarch export PATH=$APP_INSTALL_PATH/bin:$PATH:$PATH export LD_LIBRARY_PATH=$APP_INSTALL_PATH/lib:$APP_INSTALL_PATH/lib/${LIB_ARCH}:$LD_LIBRARY_PATH export PKG_CONFIG_PATH=$APP_INSTALL_PATH/lib/pkgconfig:$APP_INSTALL_PATH/lib/$LIB_ARCH/pkgconfig:$PKG_CONFIG_PATH

Once that is done, you are ready to build & install the packages.

  • Download and install the "common-api-cmdline" package, which contains the runtime needed for commonAPI command-line generators. $ git clone https://github.com/Pelagicore/common-api-cmdline.git $ cd common-api-cmdline $ cmake -DCMAKE_INSTALL_PREFIX=/My/Installation/Location $ make install
  • Download and install the "common-api-tools" component, which is needed by the Some/IP generator to generate the API of your stubs/proxies $ git clone https://github.com/Pelagicore/common-api-tools.git $ cd common-api-tools $ cmake -DCMAKE_INSTALL_PREFIX=/My/Installation/Location
  • Build and install our package $ cd someip $ cmake . -DCMAKE_INSTALL_PREFIX=/My/Installation/Location $ make install

Build examples

Follow these steps to build the example application:

Starting the example application

Please check the README file from the example repository : https://raw.githubusercontent.com/Pelagicore/common-api-someip-test-app/master/README.md