node.js - nw-gyp build --target=0.24.3 is not work -
i trying build sqlite3 node-webkit.
for installed(environment):
python v2.7 node v8.4 nw.js v0.24.3 microsoft visual studio c++ 2015 windows
step1
git clone https://github.com/developmentseed/node-sqlite3.git cloning 'node-sqlite3'... remote: counting objects: 4161, done. remote: total 4161 (delta 0), reused 0 (delta 0), pack-reused 4160 eceiving objects: 99% (4148/4161), 31.85 mib | 945.00 kib/s receiving objects: 100% (4161/4161), 32.10 mib | 883.00 kib/s, done. resolving deltas: 100% (2389/2389), done.
setp2
nw-gyp clean gyp info worked if ends ok gyp info using nw-gyp@3.4.0 gyp info using node@8.4.0 | win32 | x64 gyp info ok
setp3
nw-gyp configure --target=0.24.3 gyp info worked if ends ok gyp info using nw-gyp@3.4.0 gyp info using node@8.4.0 | win32 | x64 gyp info spawn c:\users\刘剑\.windows-build-tools\python27\python.exe gyp info spawn args [ 'c:\\users\\刘剑\\appdata\\roaming\\npm\\node_modules\\nw-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 '-g', gyp info spawn args 'msvs_version=auto', gyp info spawn args '-i', gyp info spawn args 'd:\\nwjs-sdk-64\\node-sqlite3\\build\\config.gypi', gyp info spawn args '-i', gyp info spawn args 'c:\\users\\刘剑\\appdata\\roaming\\npm\\node_modules\\nw-gyp\\addon.gypi', gyp info spawn args '-i', gyp info spawn args 'c:\\users\\刘剑\\.nw-gyp\\0.24.3\\common.gypi', gyp info spawn args '-dlibrary=shared_library', gyp info spawn args '-dvisibility=default', gyp info spawn args '-dnode_root_dir=c:\\users\\刘剑\\.nw-gyp\\0.24.3', gyp info spawn args '-dnode_gyp_dir=c:\\users\\刘剑\\appdata\\roaming\\npm\\node_modules\\nw-gyp', gyp info spawn args '-dnode_lib_file=nw.lib', gyp info spawn args '-dmodule_root_dir=d:\\nwjs-sdk-64\\node-sqlite3', gyp info spawn args '--depth=.', gyp info spawn args '--no-parallel', gyp info spawn args '-dv13=1', gyp info spawn args '--generator-output', gyp info spawn args 'd:\\nwjs-sdk-64\\node-sqlite3\\build', gyp info spawn args '-goutput_dir=.' ] gyp info ok
step4
nw-gyp build --target=0.24.3 gyp info worked if ends ok gyp info using nw-gyp@3.4.0 gyp info using node@8.4.0 | win32 | x64 gyp info spawn c:\program files (x86)\msbuild\14.0\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' ] 在此解决方案中一次生成一个项目。若要启用并行生成,请添加“/m”开关。 unpack_sqlite_dep sqlite3.c d:\nwjs-sdk-64\node-sqlite3\build\release\obj\global_intermediate\sqlite-autoconf-3150000\sqlite3.c(295): fatal error c1083: cannot open include file: 'stdarg.h': no such file or directory [d:\nwjs-sdk-64\node-sqlite3\build\deps\sqlite3.vcxproj] gyp err! build error gyp err! stack error: `c:\program files (x86)\msbuild\14.0\bin\msbuild.exe` failed exit code: 1 gyp err! stack @ childprocess.onexit (c:\users\刘剑\appdata\roaming\npm\node_modules\nw-gyp\lib\build.js:294:23) gyp err! stack @ emittwo (events.js:125:13) gyp err! stack @ childprocess.emit (events.js:213:7) gyp err! stack @ process.childprocess._handle.onexit (internal/child_process.js:200:12) gyp err! system windows_nt 10.0.14393 gyp err! command "d:\\nodejs\\node.exe" "c:\\users\\刘剑\\appdata\\roaming\\npm\\node_modules\\nw-gyp\\bin\\nw-gyp.js" "build" "--target=0.24.3" gyp err! cwd d:\nwjs-sdk-64\node-sqlite3 gyp err! node -v v8.4.0 gyp err! nw-gyp -v v3.4.0 gyp err! not ok
in last step. following error.
d:\nwjs-sdk-64\node-sqlite3\build\release\obj\global_intermediate\sqlite-autoconf-3150000\sqlite3.c(295): fatal error c1083: cannot open include file: 'stdarg.h': no such file or directory [d:\nwjs-sdk-64\node-sqlite3\build\deps\sqlite3.vcxproj]
why?
wiki
Comments
Post a Comment