Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails to build #9

Closed
LuminescentMoon opened this issue Jul 19, 2015 · 2 comments
Closed

Fails to build #9

LuminescentMoon opened this issue Jul 19, 2015 · 2 comments

Comments

@LuminescentMoon
Copy link

Using Windows 8.1
cmake version 3.3.0-rc4
luarocks-2.2.2-win32
luajit 2.0.4

Log:

C:\Users\Testificate\Desktop\luarocks\2.2>luarocks --server=https://raw.github.com/torch/rocks/master install paths
Installing https://raw.github.com/torch/rocks/master/paths-scm-1.rockspec...
Using https://raw.github.com/torch/rocks/master/paths-scm-1.rockspec... switching to 'build' mode
Cloning into 'paths'...
remote: Counting objects: 10, done.
remote: Compressing objects: 100% (9/9), done.
remote: Total 10 (delta 0), reused 5 (delta 0), pack-reused 0
Receiving objects: 100% (10/10), 12.81 KiB | 0 bytes/s, done.
Checking connectivity... done.
cmake -E make_directory build && cd build && cmake .. -DCMAKE_BUILD_TYPE=Release -DLUALIB=lua51.lib -DLUA_INCDIR="C:/Users/Testificate/Deskt
op/luarocks/luajit2.0.4/include/" -DLUA_LIBDIR="C:/Users/Testificate/Desktop/luarocks/luajit2.0.4/lib" -DLUADIR="C:\Users\Testificate\Deskto
p\luarocks\systree/lib/luarocks/rocks/paths/scm-1/lua" -DLIBDIR="C:\Users\Testificate\Desktop\luarocks\systree/lib/luarocks/rocks/paths/scm-
1/lib" -DCMAKE_INSTALL_PREFIX="C:\Users\Testificate\Desktop\luarocks\systree/lib/luarocks/rocks/paths/scm-1" && nmake

-- Building for: Visual Studio 12 2013
-- The C compiler identification is MSVC 18.0.31101.0
-- The CXX compiler identification is MSVC 18.0.31101.0
-- Check for working C compiler using: Visual Studio 12 2013
-- Check for working C compiler using: Visual Studio 12 2013 -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler using: Visual Studio 12 2013
-- Check for working CXX compiler using: Visual Studio 12 2013 -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    CMAKE_BUILD_TYPE


-- Build files have been written to: C:/Users/Testificate/AppData/Local/Temp/luarocks_paths-scm-1-246/paths/build

Microsoft (R) Program Maintenance Utility Version 12.00.21005.1
Copyright (C) Microsoft Corporation.  All rights reserved.

NMAKE : fatal error U1064: MAKEFILE not found and no target specified
Stop.

Error: Build error: Failed building.
@soumith
Copy link
Member

soumith commented Jul 19, 2015

we do not support windows. maybe @diz-vara has some ideas.

@soumith soumith closed this as completed Jul 19, 2015
@diz-vara
Copy link

By default CMake on Windows generates Visual Studio solution, but luarocks waits for NMake Makefile.
I resolved this issue by additional batch file that calls Cmake.exe with additional parameters:
cmake.cmd

if %1 == -E  (
cmake.exe  %* 
) else (
cmake.exe -G "NMake Makefiles"  -DWIN32=1 -dLUA_WIN -DCMAKE_LINK_FLAGS:implib=libluajit.lib %*
)
  • but you must be sure that luarocks will use this cmake.cmd - not original cmake.exe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants