Closed basilbai closed 1 year ago
https://github.com/nodejs/node-gyp/labels/ffi-napi
For your information:
I had encountered the similar error with the message:
Preprocessing assembly file ..\..\..\deps\libffi\src\x86\win64_intel.preasm
'"call"' は、内部コマンドまたは外部コマンド、
操作可能なプログラムまたはバッチ ファイルとして認識されていません。
D:\tmp\node-ffi-napi\build\deps\libffi\ffi.targets(34,5): error MSB3721: コマンド "call "call" "../../../deps/libffi/preprocess_asm.cmd" "../../../deps/libffi/include" "../../../deps/libffi/config/win/x64" "..\..
\..\deps\libffi\src\x86\win64_intel.preasm" "Release\obj\ffi\win64_intel.asm"" はコード 1 で終了しました。 [D:\tmp\node-ffi-napi\build\deps\libffi\ffi.vcxproj]
nothing.c
win_delay_load_hook.cc
nothing.vcxproj -> D:\tmp\node-ffi-napi\build\Release\\nothing.lib
gyp ERR! build error
(translation: '"call"' is not recognized as an internal or external command, operable program or batch file
)
I found it in deps/libffi/libffi.gpy:L77
. Here:
'action': [
'call',
'preprocess_asm.cmd',
'include',
Then I patched like this:
'action': [
'../../../deps/libffi/preprocess_asm.cmd',
'include',
It works for me.
Thank you @hnmr293 for saving me!
I downgraded the version of node-gyp to v9.4.0 and it worked
have thy fixed this yet?
i also meet this problem
Wrong repo. Please make requests at https://github.com/node-ffi-napi/node-ffi-napi