calio / lua-capnproto

Lua-capnp is a pure lua implementation of capnproto based on luajit.
BSD 2-Clause "Simplified" License
70 stars 24 forks source link

can work in windows? #5

Open chiuan opened 9 years ago

chiuan commented 9 years ago

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

calio commented 9 years ago

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?

chiuan commented 9 years ago

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?

calio commented 9 years ago

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.