1.直接在网上下载commonAPI 的运行时源代码,复制到目标目录下(例如/home/***/commonAPI),并解压,
https://github.com/GENIVI/capicxx-core-runtime: 3.1.12版本
https://github.com/GENIVI/capicxx-someip-runtime: 3.1.12版本
https://github.com/GENIVI/vsomeip/releases/tag/2.14.16:Source code(tar.gz)
2.进入解压后的文件夹下
cd capicxx-core-runtime-master
3.查看 ls,显示有以下文件夹或文件
AUTHORS
cmake
CMakeLists.txt
commonapi.spec.in
docx
doxygen.in
include
INSTALL
LICENSE
README
src
mkdir build
cd build
cmake ..:编译源代码,或可以通过CMake变量CMAKE_INSTALL_PREFIX更改安装目录
cmake -D CMAKE_INSTALL_PREFIX=/home/***/CommonAPI ..
make
5.在编译vsomeip之前,可能需要安装boost开源库
1)下载boost安装包:https://sourceforge.net/projects/boost/files/boost/1.65.0/
2)解压
3)
sh ./bootstrap.sh