lua-capnproto icon indicating copy to clipboard operation
lua-capnproto copied to clipboard

can work in windows?

Open chiuan opened this issue 9 years ago • 3 comments

after compile the code even use luaRocks that is not the windows exec or bat cant use in windows?

chiuan avatar Mar 11 '15 08:03 chiuan

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?

calio avatar Mar 11 '15 22:03 calio

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?

chiuan avatar Mar 12 '15 05:03 chiuan

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.

calio avatar Mar 16 '15 21:03 calio