HDTutorial
EN

Playback starts YouTube’s embedded player (privacy-enhanced mode).

How to Install, Compile and run Protobuf for Beginners

26,299 views July 15, 2020 6:59

Watch on YouTube
ChannelRuchidnya Kadam

Description from the creator

**This is a short video showing how to install Protocol Buffer in C++**
**How to write a protobuf file**
**And how to run a protobuf file.**


Commands to install protocol Buffer on terminal (linux):

$ sudo apt-get install autoconf automake libtool curl make g++ unzip
$ wget github.com/protocolbuffers/protobuf/releases/do…
$ tar -xvzf protobuf-cpp-3.11.0.tar.gz
$ cd protobuf-cpp-3.11.0
$ ./configure
$ make
$ make install
$ sudo ldconfig


Commands to run a protobuf file:
1. protoc –I=$SRC_DIR --cpp_out=$DST_DIR $SCR_DIR/protofile.proto
or
protoc --cpp_out=. protofile.proto


2. g++ -std=c++17 C_file.cpp protofile.pb.cc -o binaryfilename `pkg-config --cflags --libs protobuf`


3. ./binaryfilename

About this tutorial

Ruchidnya Kadam published this 6:59 video tutorial on July 15, 2020. It has been watched 26,299 times on YouTube.

Duration
6:59
Published
July 15, 2020
Views
26,299
Likes
274

Tags

Share

This tutorial in other languages