參考資訊:
https://github.com/nanopb/nanopb
$ cd
$ git clone https://github.com/nanopb/nanopb --recursive
$ mkdir -p nanopb/build
$ cd nanopb/build
$ vim ../CMakeLists.txt
option(BUILD_SHARED_LIBS "Build shared libraries" ON)
$ cmake ..
$ make -j4
$ sudo make install