CommonAPI环境搭建

段超
2023-12-01

官方文档上有一些出入,按照下述步骤是ok的 

Home · COVESA/capicxx-core-tools Wiki · GitHub

1. 安装依赖项:

sudo apt install wget cmake libexpat-dev expat default-jre gcc g++
sudo apt install asciidoc source-highlight doxygen graphviz libboost-all-dev

2. 下载并编译core-runtime

git clone https://github.com/GENIVI/capicxx-core-runtime.git

cd ./capicxx-core-runtime
mkdir build
cd ./build
cmake ..
make -j12
sudo make install

3. 下载并编译vsomeip以及someip runtime

CommonAPI C SomeIP in 10 minutes · COVESA/capicxx-someip-tools Wiki · GitHub

git clone https://github.com/GENIVI/vsomeip.git

cd ./vsomeip
mkdir build
cd ./build
cmake -DENABLE_SIGNAL_HANDLING=1 -DDIAGNOSIS_ADDRESS=0x10 ..
make -j12


git clone https://github.com/GENIVI/capicxx-someip-runtime.git
cd ./capicxx-someip-runtime
mkdir build
cd ./build
cmake -DUSE_INSTALLED_COMMONAPI=OFF ..
make -j12


4. 下载并编译dbus以及dbus runtime

CommonAPI C D Bus in 10 minutes · COVESA/capicxx-dbus-tools Wiki · GitHub

wget http://dbus.freedesktop.org/releases/dbus/dbus-1.10.10.tar.gz
tar -xzf dbus-1.10.10.tar.gz
cd dbus-1.10.10/
for i in ../capicxx-dbus-runtime/src/dbus-patches/*.patch; do patch -p1 < $i; done
./configure
make -j12

cd ..
git clone https://github.com/GENIVI/capicxx-dbus-runtime.git
cd ./capicxx-dbus-runtime
make build
cd ./build
export PKG_CONFIG_PATH="../../dbus-1.10.10"
cmake -DUSE_INSTALLED_COMMONAPI=OFF -DUSE_INSTALLED_DBUS=OFF ..
make -j12





 

 类似资料: