makefile時遇到protoc:command not found,說明缺少libprotoc包,手動安裝probuf包
protobuf下載地址:https://github.com/google/protobuf/archive/v2.6.1.zip
unzip protobuf-2.6.1.zip
cdprotobuf-2.6.1
./autogen.sh
./configure
make && make install
如果在編譯的過程中遇到 ‘kEmptyString’ is not a member of ‘google::protobuf::internal的問題,請更新protobuf的版本(我是在安裝protobuf-2.4.1時遇到這個問題的),如果過沒有遇到請無視
資料:http://blog.csdn.net/xiexievv/article/details/47396725