目前程序仅针对protobuf写的php扩展
svn checkout
http://php-extension-protobuf.googlecode.com/svn/trunk/ php-extension-protobuf-read-only
1,根据*.proto 文件用protoc 命令生成*.cc 和*.h文件
2,将*.cc 和*.h编成库文件 例如libmessage.a
3,在config.m4中把libmessage.a加到搜索库列表中
4,编写实际调用库的内部接口函数,如interface.cc
5,phpize
6,./configure
7,make
此时在module/目录下生成 *.so
8,将7生成的这个*.so 放到php扩展中即可在php程序中使用