美文网首页
Protobuf-gen-lua

Protobuf-gen-lua

作者: BobWong | 来源:发表于2016-04-19 10:31 被阅读3327次

https://github.com/sean-lin/protoc-gen-lua 上取源码
1.生成protoc软链接

Paste_Image.png

这个命令最常用的参数是-s,具体用法是:
sudo ln -s 源文件 目标文件
它的功能是为某一个文件或目录在另外一个位置建立一个同步的链接,类似Windows下的超级链接。

2.编译python
运行目录到protobuf-2.5.0下的python

Paste_Image.png

此时如果

Paste_Image.png

解决办法是在google/protobuf目录下建立compiler文件夹,再次编译
最后看到

Paste_Image.png

安装完毕。

Paste_Image.png

3.生成lua

Paste_Image.png

相关文章

  • Protobuf-gen-lua

    从https://github.com/sean-lin/protoc-gen-lua 上取源码1.生成proto...

网友评论

      本文标题:Protobuf-gen-lua

      本文链接:https://www.haomeiwen.com/subject/sanalttx.html