1.安装依赖库及工具
sudo apt-get install cmake
sudo apt-get install libboost-system1.71-dev libboost-thread1.71-dev libboost-log1.71-dev
2.获取VSOME/IP仓库
git clone https://github.com/GENIVI/vsomeip.git
3.构建并安装VSOME/IP
cd vsomeip
mkdir build
cd build
cmake ..
make
sudo make install
sudo ldconfig
4.构建并运行
cmake --build . --target hello_world
cd ./examples/hello_world/
make
cp ../../../examples/hello_world/helloworld-local.json ./
VSOMEIP_CONFIGURATION=./helloworld-local.json VSOMEIP_APPLICATION_NAME=hello_world_service ./hello_world_service
VSOMEIP_CONFIGURATION=./helloworld-local.json VSOMEIP_APPLICATION_NAME=hello_world_client ./hello_world_client