【问题标题】:Problems with protobuf when generating haxe source file生成haxe源文件时protobuf的问题
【发布时间】:2013-07-24 04:34:06
【问题描述】:

我想用haxe生成protobuf源文件,但是最后一步“haxelib run protohx generate protohx.json”遇到问题说

插件:程序未找到或不可执行 --haxe_out: protoc-gen-haxe: 插件失败,状态码为 1。

任何人都可以解决它吗?非常感谢!

【问题讨论】:

    标签: protocol-buffers haxe


    【解决方案1】:

    我遇到了同样的问题,并通过手动运行任务来生成原型类文件来解决它。

    我将插件复制到我的本地路径,然后使 proto shell 脚本可执行:

    例如:

    chmod +x proto
    protoc --plugin=protoc-gen-haxe=plugin --haxe_out=./src-gen --proto_path=. proto/your.proto
    

    【讨论】:

      【解决方案2】:

      我建议你尝试另一个 protobuf 实现:https://github.com/Atry/protoc-gen-haxe,它不再需要你生成 Haxe 源文件。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2018-03-20
        • 1970-01-01
        • 2013-01-06
        相关资源
        最近更新 更多