async icon indicating copy to clipboard operation
async copied to clipboard

bugs when building on windows

Open ustcjerry opened this issue 7 years ago • 0 comments

I use this repo to have torch7 on windows. when i use this luarocks install async to install async it shows:

Installing https://raw.githubusercontent.com/torch/rocks/master/async-scm-1.rockspec
Cloning into 'async'...
remote: Counting objects: 210, done.
remote: Compressing objects: 100% (184/184), done.
Rremote: Total 210 (delta 19), reused 172 (delta 19), pack-reused 0eceiving objects:  91% (192/210), 403.80 KiB | 95.00 Receiving objects:  93% (196/210), 403.80 KiB | 95.00 KiB/s
Receiving objects: 100% (210/210), 403.80 KiB | 95.00 KiB/s, done.
Resolving deltas: 100% (19/19), done.
nmake LUA_BINDIR=E:/torch/distro-win/./install/bin  LUA_LIBDIR=E:/torch/distro-win/./install/lib  LUA_INCDIR=E:/torch/distro-win/./install/include

Microsoft (R) 程序维护实用工具 12.00.21005.1 版
版权所有 (C) Microsoft Corporation。  保留所有权利。

makefile(1) : fatal error U1000: fatal error U1000: Syntax error: missing in macro call ")"
Stop.

Error: Failed installing dependency: https://raw.githubusercontent.com/torch/rocks/master/async-scm-1.rockspec - Build error: Failed building.

the problem is here:

build = {
   type = "command",
   build_command = "$(MAKE)  LUA=$(LUA)  LUA_BINDIR=$(LUA_BINDIR)  LUA_LIBDIR=$(LUA_LIBDIR)  LUA_INCDIR=$(LUA_INCDIR)",

on Windows there is no make but cmake or nmake . The luarocks install async could not recongize Makefile file on windows. Thus to build the async from source, need to have a 'cmake' like build_command .

ustcjerry avatar Mar 21 '17 12:03 ustcjerry