Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Pre-requisites

CMake >=3.10

Ubuntu 20.04:

Install the dependecies:

# Install dependancies
sudo apt-get install python3-distutils
sudo apt-get install diffstat
sudo apt-get install chrpath
sudo apt-get install make
sudo apt-get install gcc
sudo apt-get install g++
sudo apt-get install texinfo
sudo apt-get install libiptc0

Install libprotobuf-dev v3.7.0:

Code Block
languagebash
firstline1
titleInstall 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

#Exit out of vi 
 
source  ~/.bashrc
 
# Check version
protoc --version

...

Code Block
languagebash
titleRun tests manually
mkdir build && cd build

#install:
sudo apt-get install libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev
sudo apt install pkg-config

cmake .. -DCMAKE_BUILD_FLAG=UnitTests
make test_executable
./tests/[component_path]/[test_executable]

...