[MICROSAR Adaptive] --- Development environment preparation

The default cmake version of Ubuntu 20.04/22.04 is no more than 3.19, and gcc/g++ is version 9.x.
AP development requires that the cmake version is greater than 3.19, and the gcc/g++ version is gcc-7.

1 Install a higher version of cmake

cmake source code download path

https://cmake.org/files/
tar zxvf cmake-3.19.2.tar.gz
cd cmake-3.19.2
./bootstrap --prefix=/usr/local
make -j
sudo make install

2 Install a lower version of gcc/g++

Method one: apt source installation

//更新包列表 
sudo apt update		

//安装 build-essential 软件包集合
//会安装一系列软件,其中就包括 gcc、G ++ 和 make 等。
sudo apt install build-essential	

//安装gcc7/g++7
sudo apt install

Guess you like

Origin blog.csdn.net/weixin_42445727/article/details/134270941