You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Pre-requisites

CMake >=3.10


Install libprotobuf-dev v3.7.0:

Install libprotobuf v3.7.0
wget https://github.com/protocolbuffers/protobuf/releases/download/v3.7.0/protobuf-all-3.7.0.tar.gz
 
 
tar -zxvf protobuf-all-3.7.0.tar.gz
 
 
cd protobuf-3.7.0/
./configure
make -j10
make check -j10
sudo make install -j10
 
 
# Check version
protoc --version
 
 
# If version still not correct add to end of ~/.bashrc
vi ~./bashrc
 
 
+ alias protoc=/usr/local/bin/protoc
 
 
source  ~/.bashrc
 
# Check version
protoc --version

Run Tests Manually

Run tests manually
mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=UnitTests
make test_executable
./tests/[component_path]/[test_executable]
  • No labels