Closed jimcarst closed 5 years ago
closing due to staleness, I assume this is either addressed by some other means or by the latest versions of node-gyp which have additional Windows work in them
Currently having the exact same exception in windows 10... None of the links @Skhoshhal posted helped me...
I have no problem building my binding on ubuntu 18.04, but on windows it throws :
LINK : fatal error LNK1181: impossible d'ouvrir le fichier en entrÚe '.lib' [C:\Users\franc\Documents-franc\botpress-ro ot\node-svm2\build\node-svm.vcxproj]
(I'm a french canadian but it translates to same error)
Should I post a new issue?
Please provide the log output like the original poster did. Merci.
here it is
yarn build yarn run v1.16.0
$ node-gyp rebuild
gyp info it worked if it ends with ok
gyp info using node-gyp@6.1.0
gyp info using node@10.11.0 | win32 | x64
gyp info find Python using Python version 2.7.16 found at "C:\Python27\python.exe"
gyp info find VS using VS2019 (16.4.29905.134) found at:
gyp info find VS "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools"
gyp info find VS run with --verbose for detailed information
gyp info spawn C:\Python27\python.exe
gyp info spawn args [ 'C:\Users\franc\Documents-franc\botpress-root\node-svm2\node_modules\node-gyp\gyp\gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'msvs',
gyp info spawn args '-I',
gyp info spawn args 'C:\Users\franc\Documents-franc\botpress-root\node-svm2\build\config.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\Users\franc\Documents-franc\botpress-root\node-svm2\node_modules\node-gyp\addon.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\Users\franc\AppData\Local\node-gyp\Cache\10.11.0\include\node\common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=C:\Users\franc\AppData\Local\node-gyp\Cache\10.11.0',
gyp info spawn args '-Dnode_gyp_dir=C:\Users\franc\Documents-franc\botpress-root\node-svm2\node_modules\node-gyp',
gyp info spawn args '-Dnode_lib_file=C:\\Users\\franc\\AppData\\Local\\node-gyp\\Cache\\10.11.0\\<(target_arch)\\node.lib',
gyp info spawn args '-Dmodule_root_dir=C:\Users\franc\Documents-franc\botpress-root\node-svm2',
gyp info spawn args '-Dnode_engine=v8',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'C:\Users\franc\Documents-franc\botpress-root\node-svm2\build',
gyp info spawn args '-Goutput_dir=.' ]
gyp info spawn C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin\MSBuild.exe
gyp info spawn args [ 'build/binding.sln',
gyp info spawn args '/clp:Verbosity=minimal',
gyp info spawn args '/nologo',
gyp info spawn args '/p:Configuration=Release;Platform=x64' ]
Les projets sont générés individuellement dans cette solution. Pour activer la génération en parallèle, ajoutez le commutateur "-m".
nothing.vcxproj -> C:\Users\franc\Documents-franc\botpress-root\node-svm2\build\Release\nothing.lib
svm.cpp
main.cpp
hello_world.cpp
svm.cpp
utils.cpp
win_delay_load_hook.cc
LINK : fatal error LNK1181: impossible d'ouvrir le fichier en entrÚe '.lib' [C:\Users\franc\Documents-franc\botpress-ro
ot\node-svm2\build\node-svm.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin\MSBuild.exe
failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Users\franc\Documents-franc\botpress-root\node-svm2\node_modules\node-gyp\lib\build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:182:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:240:12)
gyp ERR! System Windows_NT 10.0.18362
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\franc\Documents-franc\botpress-root\node-svm2\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\franc\Documents-franc\botpress-root\node-svm2
gyp ERR! node -v v10.11.0
gyp ERR! node-gyp -v v6.1.0
gyp ERR! not ok
error Command failed with exit code 1.
Hi,
Currently I am trying to get my own node module to work with the or-tools library from Google (https://github.com/google/or-tools).
In doing so, I use the following binding.gyp file:
However, this leads to the following error:
Most important seems:
LINK : fatal error LNK1181: cannot open input file 'ortools.lib'
It seems that somewhere the Windows specification of the filepath of the library is not working well.
Does anyone know how I can get this to work?
Regards