node-sqlite3 icon indicating copy to clipboard operation
node-sqlite3 copied to clipboard

is it still possible in 2022 to compile the module for node-webkit 0.9.2 or 0.10.5?

Open risingphoenix opened this issue 1 year ago • 0 comments

Issue Summary

I know perfectly well that this may not be the ideal place to ask these kinds of questions, and I apologize in advance for my limited knowledge of the whole build process.

The fact is that I need to recompile the library for a past version of node-webkit: 0.9.2 or 0.10.5 on windows. I followed several guides and read many comments and issues from the period of the release of those versions (2014 - 2015) but also the most recent ones without any success.

Given the series of failures I ask if there is still the compatibility of this package for such old versions and if so how can I build a compiled and properly working version?

Thanks a lot in advance for any kind of support

Relevant logs or output

command:

npm install sqlite3 --build-from-source --runtime = node-webkit --target_arch = ia32 --target = 0.9.2

error oputput:

  nothing.c
  win_delay_load_hook.cc
  nothing.vcxproj -> { ... }\node_modules\sqlite3\build\Release\\nothing.lib
  unpack_sqlite_dep
  sqlite3.c
  win_delay_load_hook.cc
  sqlite3.vcxproj -> { ... }\node_modules\sqlite3\build\Release\\sqlite3.lib
  backup.cc
  database.cc
  node_sqlite3.cc
  statement.cc
  win_delay_load_hook.cc
{ ... }\node_modules\node-addon-api\napi.h(4): fatal error C1083: Non è possibile aprire il file inclusione: 'node_api.h': No such file or directory (compilazione del file di origine ..\src\database.cc) [{ ... }\node_modules\sqlite3\build\node_sqlite3.vcxproj]
{ ... }\node_modules\node-addon-api\napi.h(4): fatal error C1083: Non è possibile aprire il file inclusione: 'node_api.h': No such file or directory (compilazione del file di origine ..\src\backup.cc) [{ ... }\node_modules\sqlite3\build\node_sqlite3.vcxproj]
{ ... }\node_modules\node-addon-api\napi.h(4): fatal error C1083: Non è possibile aprire il file inclusione: 'node_api.h': No such file or directory (compilazione del file di origine ..\src\statement.cc) [{ ... }\node_modules\sqlite3\build\node_sqlite3.vcxproj]
{ ... }\node_modules\node-addon-api\napi.h(4): fatal error C1083: Non è possibile aprire il file inclusione: 'node_api.h': No such file or directory (compilazione del file di origine ..\src\node_sqlite3.cc) [{ ... }\node_modules\sqlite3\build\node_sqlite3.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:\Users\Marco\AppData\Roaming\npm\node_modules\nw-gyp\lib\build.js:271:23)
gyp ERR! stack     at ChildProcess.emit (events.js:315:20)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)
gyp ERR! System Windows_NT 10.0.17763
gyp ERR! command "C:\\Program Files (x86)\\nodejs\\node.exe" "C:\\Users\\Marco\\AppData\\Roaming\\npm\\node_modules\\nw-gyp\\bin\\nw-gyp.js" "build" "--fallback-to-build" "--module=Z:\\Devel\\Server\\sqlite\\node_modules\\sqlite3\\lib\\binding\\napi-v6-win32-unknown-ia32\\node_sqlite3.node" "--module_name=node_sqlite3" "--module_path=Z:\\Devel\\Server\\sqlite\\node_modules\\sqlite3\\lib\\binding\\napi-v6-win32-unknown-ia32" "--napi_version=7" "--node_abi_napi=napi" "--napi_build_version=6" "--node_napi_label=napi-v6"
gyp ERR! cwd { ... }\node_modules\sqlite3
gyp ERR! node -v v14.15.4
gyp ERR! nw-gyp -v v3.6.6
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'nw-gyp.cmd build --fallback-to-build --module={ ... }\node_modules\sqlite3\lib\binding\napi-v6-win32-unknown-ia32\node_sqlite3.node --module_name=node_sqlite3 --module_path={ ... }\node_modules\sqlite3\lib\binding\napi-v6-win32-unknown-ia32 --napi_version=7 --node_abi_napi=napi --napi_build_version=6 --node_napi_label=napi-v6' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> ({ ... }\node_modules\@mapbox\node-pre-gyp\lib\util\compile.js:89:23)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:315:20)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:1048:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)
node-pre-gyp ERR! System Windows_NT 10.0.17763
node-pre-gyp ERR! command "C:\\Program Files (x86)\\nodejs\\node.exe" "Z:\\Devel\\Server\\sqlite\\node_modules\\@mapbox\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd { ... }\node_modules\sqlite3
node-pre-gyp ERR! node -v v14.15.4
node-pre-gyp ERR! node-pre-gyp -v v1.0.10
node-pre-gyp ERR! not ok
Failed to execute 'nw-gyp.cmd build --fallback-to-build --module={ ... }\node_modules\sqlite3\lib\binding\napi-v6-win32-unknown-ia32\node_sqlite3.node --module_name=node_sqlite3 --module_path={ ... }\node_modules\sqlite3\lib\binding\napi-v6-win32-unknown-ia32 --napi_version=7 --node_abi_napi=napi --napi_build_version=6 --node_napi_label=napi-v6' (1)
npm WARN enoent ENOENT: no such file or directory, open '{ ... }\package.json'
npm WARN sqlite No description
npm WARN sqlite No repository field.
npm WARN sqlite No README data
npm WARN sqlite No license field.

Version

node-sqlite3 2.2.6 - latest

Node.js Version

node 0.11.13 and nw 0.10.5 - latest node 14.15

How did you install the library?

windows 10 - visual studio 2010 - 20217

risingphoenix avatar Oct 26 '22 21:10 risingphoenix