lua-capnproto
lua-capnproto copied to clipboard
can work in windows?
after compile the code even use luaRocks that is not the windows exec or bat cant use in windows?
Hi chiuan, currently lua-capnproto doesn't work on windows yet. It is mainly because of 'capnpc-lua' is a bash script. Maybe with some hack, you can make it work under Cygwin on windows?
i have try Cygwin to build and succ,but when use capn complie -olua .... but cant found that plugin: lua: no such plugin (executable should be 'capnpc-lua')
and i check this capnpc-lua out message:
$ capnpc-lua
/cygdrive/c/Program Files (x86)/LuaRocks/systree/bin/capnpc-lua: line 2: $'\r': command not found
/cygdrive/c/Program Files (x86)/LuaRocks/systree/bin/capnpc-lua: line 4: $'\r': command not found
/cygdrive/c/Program Files (x86)/LuaRocks/systree/bin/capnpc-lua: line 5: syntax error near unexpected token $'{\r'' /cygdrive/c/Program Files (x86)/LuaRocks/systree/bin/capnpc-lua: line 5:
usage(' {
maybe this bash script \r is not work in windows?
It seems it needs some work to make lua-capnproto work on windows. Currently I don't have time to do this. If you have time, please feel free to work on it, pull requests are welcome.