-
Notifications
You must be signed in to change notification settings - Fork 15.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
%1 is not a valid Win32 application #3923
Comments
@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:
and invoke protoc with:
|
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:
The text was updated successfully, but these errors were encountered: