git clone https://github.com/tomas-abrahamsson/gpb
cd gpb
git checkout -b 3.20.2 3.20.2
make
./protoc-erl -Iprotobuffs/proto -o-erl src -o-hrl include protobuffs/proto/*.proto
./protoc-erl -Iprotobuffs -o whole all.proto
转载于:https://my.oschina.net/u/191928/blog/655888