Installing Torch7 with Luarocks on Windows with mingw build error

后端 未结 2 1522
生来不讨喜
生来不讨喜 2021-01-05 02:16

I followed the instructions here and set up Lua and Luarocks from scratch, with Mingw. Everything worked fine and I was able to install rocks, including ones which require c

2条回答
  •  北荒
    北荒 (楼主)
    2021-01-05 02:57

    The command looks mostly correct, but I think the cmake command needs -G "MSYS Makefiles" option to use mingw instead of VS. You may also need to pull the most recent torch version as it includes several changes that fix some compilation issues with mingw.

    Note that I haven't tested the changes with LuaRocks and not sure how to pass that additional option to it, but you should be able to run the same command manually to get the desired result (I compiled it from the command line).

提交回复
热议问题