Closed fferri closed 6 years ago
@fferri Could you attach the protoc-gen-lua binary you are using?
@xfxyjwf you can find protoc-gen-lua here https://github.com/urbanairship/protobuf-lua inside the protoc-plugin directory. it is a python script (it's the same thing you get by installing the luarocks package I mentioned)
@fferri Hmm, a python script? If I remember correctly, the plugin must be either a .exe or a .bat. Could you try to create a .bat wrapper about the python script and try again?
I have verified a .bat file will work. Just create a protoc-gen-lua.bat file with the following content:
@<path_to_python.exe> <path_to_protoc-gen-lua>
and invoke protoc with:
protoc --plugin=protoc-gen-lua=protoc-gen-lua.bat --lua_out=. <proto>
I'm trying to get the Lua generator working on Windows (MSYS2/mingw64). I installed 'protobuf' with luarocks. It installed also the file /mingw64/lib/luarocks/rocks/protobuf/1.1.1-0/protoc-plugin/protoc-gen-lua, which I can run in a terminal without errors due to missing packages and such. But if I run the protobuf compiler with this file as a plugin, I get:
Useful info: