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

nmake install fail #35

Open
crosofg opened this issue Aug 28, 2016 · 4 comments
Open

nmake install fail #35

crosofg opened this issue Aug 28, 2016 · 4 comments

Comments

@crosofg
Copy link

crosofg commented Aug 28, 2016

\luajit-rocks\build>nmake install

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

NMAKE : fatal error U1073: don't know how to make 'install'
Stop.

I am unable to nmake install . How to resolve this?

@admercs
Copy link

admercs commented Sep 12, 2016

I get this issue as well on Windows 7 with VS2015. I ended up building from source by opening the INSTALL project file into VS2015 and building there, which appeared to work and LuaJIT runs, but LuaJIT is doing strange things (e.g., simple math does not work).

@hughperkins
Copy link

The script at https://github.com/hughperkins/distro-cl/blob/distro-win/build_windows.bat will build luarocks, using nmake, however it looks like we are using a hack to do the install, by calling:

cmake -DCMAKE_INSTALL_PREFIX=%BASE%/install -G "NMake Makefiles" -P cmake_install.cmake -DCMAKE_BUILD_TYPE=Release

@MatrixInception
Copy link

Thank you @hughperkins ! Encountered the similar issue. Here is what worked for me on Windows 10 with VS 2015 (just another part of your linked script):
cmake .. -DCMAKE_INSTALL_PREFIX=base/install -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release

@rogersguedes
Copy link

I had the same problem today. What worked for me was running the file vcvarsall.bat which came with Visual Studio installation before calling cmake . So the full process was as follows:

"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat"
cmake.exe .. -DCMAKE_INSTALL_PREFIX=C:\opt\luajit-rocks -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release
nmake install

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

5 participants