Hi, I'm trying to build this on windows without success. One possible problem is that I'm trying to force Visual Studio 2013 with --msvs_version=2013
and it seems to use the correct MSBuild (C:\Program Files (x86)\MSBuild\12.0\bin\msbuild.exe
) but it then uses the 2010 linker (C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\link.exe
). I've just re-synced jxcore and re-downloaded jxb300. I'm building ia32
on a 64-bit machine. The error is LNK2001: unresolved external symbol "public: static class node::commons * __cdecl node::commons::getInstanceByThreadId(int)" (?getInstanceByThreadId@commons@node@@SAPAV12@H@Z)
This is the full output:
> jx.exe install --verbose --msvs_version=2013 --arch=ia32
npm info it worked if it ends with ok
npm verb cli [ 'C:\\Users\\zamb3zi\\Documents\\devel\\bin\\jx.exe',
npm verb cli 'C:\\Users\\zamb3zi\\.jx\\npm',
npm verb cli 'install',
npm verb cli '--verbose',
npm verb cli '--msvs_version=2013',
npm verb cli '--arch=ia32' ]
npm info using [email protected]
npm info using [email protected]
npm info using jxcore@v Beta-0.3.0.1
npm WARN invalid config local-address=undefined
npm WARN package.json [email protected] No repository field.
npm verb readDependencies using package.json deps
npm verb install where, deps [ 'C:\\GitHub\\jxcore-addon', [] ]
npm info preinstall [email protected]
npm verb readDependencies using package.json deps
npm info build C:\GitHub\jxcore-addon
npm verb linkStuff [ false, false, false, 'C:\\GitHub' ]
npm info linkStuff [email protected]
npm verb linkBins [email protected]
npm verb linkMans [email protected]
npm verb rebuildBundles [email protected]
npm info install [email protected]
> [email protected] install C:\GitHub\jxcore-addon
> node-gyp configure build
-
C:\GitHub\jxcore-addon>jx "C:\Users\zamb3zi\.jx\npm\bin\node-gyp-bin\\..\..\node_mo
dules\node-gyp\bin\node-gyp.js" configure build
gyp info it worked if it ends with ok
gyp verb cli [ 'jx',
gyp verb cli 'C:\\Users\\zamb3zi\\.jx\\npm\\node_modules\\node-gyp\\bin\\node-gyp
.js',
gyp verb cli 'configure',
gyp verb cli 'build' ]
gyp info using [email protected]
gyp info using [email protected] | win32 | ia32
gyp verb command configure []
gyp verb check python checking for Python executable "python" in the PATH
gyp verb `which` succeeded python C:\Anaconda\python.EXE
gyp verb check python version `python -c "import platform; print(platform.python
_version());"` returned: "2.7.5\r\n"
gyp verb get node dir no --target version specified, falling back to host node v
ersion: v0.10.38
gyp verb command install [ 'v0.10.38' ]
gyp verb install input version string "v0.10.38"
gyp verb install installing version: jxb300
gyp verb install --ensure was passed, so won't reinstall if already installed
gyp verb install version is already installed, need to check "installVersion"
gyp verb got "installVersion" 9
gyp verb needs "installVersion" 9
gyp verb install version is good
gyp verb get node dir target node version installed: jxb300
gyp verb build dir attempting to create "build" dir: C:\GitHub\jxcore-addon\buil
d
gyp verb build dir "build" dir needed to be created? null
gyp verb build/config.gypi creating config file
gyp verb build/config.gypi writing out config file: C:\GitHub\jxcore-addon\build
\config.gypi
gyp verb config.gypi checking for gypi file: C:\GitHub\jxcore-addon\config.gypi
gyp verb common.gypi checking for gypi file: C:\GitHub\jxcore-addon\common.gypi
gyp verb gyp gyp format was not specified; forcing "msvs"
gyp info spawn python
gyp info spawn args [ 'C:\\Users\\zamb3zi\\.jx\\npm\\node_modules\\node-gyp\\gyp\\g
yp_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 'C:\\GitHub\\jxcore-addon\\build\\config.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\\Users\\zamb3zi\\.jx\\npm\\node_modules\\node-gyp\\addon.
gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\\Users\\zamb3zi\\.node-gyp\\jxb300\\common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=C:\\Users\\zamb3zi\\.node-gyp\\jxb300',
gyp info spawn args '-Dmodule_root_dir=C:\\GitHub\\jxcore-addon',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'C:\\GitHub\\jxcore-addon\\build',
gyp info spawn args '-Goutput_dir=.' ]
gyp verb command build []
gyp verb build type Release
gyp verb architecture ia32
gyp verb node dev dir C:\Users\zamb3zi\.node-gyp\jxb300
gyp verb found first Solution file build/binding.sln
gyp verb could not find "msbuild.exe" in PATH - finding location in registry
gyp verb "Release" dir needed to be created? null
verb copying "node.lib" for ia32 C:\Users\zamb3zi\.node-gyp\jxb300\Release\node.lib
gyp info spawn C:\Program Files (x86)\MSBuild\12.0\bin\msbuild.exe
gyp info spawn args [ 'build/binding.sln',
gyp info spawn args '/nologo',
gyp info spawn args '/p:Configuration=Release;Platform=Win32' ]
Building the projects in this solution one at a time. To enable parallel build,
please add the "/m" switch.
Build started 27/05/2015 16:36:49.
Project "C:\GitHub\jxcore-addon\build\binding.sln" on node 1 (default targets).
ValidateSolutionConfiguration:
Building solution configuration "Release|Win32".
Project "C:\GitHub\jxcore-addon\build\binding.sln" (1) is building "C:\GitHub\j
xcore-addon\build\binding.vcxproj" (2) on node 1 (default targets).
InitializeBuildStatus:
Touching "Release\obj\binding\binding.unsuccessfulbuild".
ClCompile:
All outputs are up-to-date.
Link:
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\link.exe /ERRORREP
ORT:QUEUE /OUT:"C:\GitHub\jxcore-addon\build\Release\binding.node" /INCREMENT
AL:NO /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib adv
api32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib DelayImp.lib
"C:\Users\zamb3zi\.node-gyp\jxb300\Release\node.lib" /MANIFEST /ManifestFile:"R
elease\obj\binding\binding.node.intermediate.manifest" /MANIFESTUAC:"level='a
sInvoker' uiAccess='false'" /DEBUG /PDB:"C:\GitHub\jxcore-addon\build\Release
\binding.pdb" /OPT:REF /OPT:ICF /LTCG /TLBID:1 /DYNAMICBASE /NXCOMPAT /MACHIN
E:X86 /DLL Release\obj\binding\binding.obj
Creating library C:\GitHub\jxcore-addon\build\Release\binding.lib and obje
ct C:\GitHub\jxcore-addon\build\Release\binding.exp
binding.obj : error LNK2001: unresolved external symbol "public: static class n
ode::commons * __cdecl node::commons::getInstanceByThreadId(int)" (?getInstance
ByThreadId@commons@node@@SAPAV12@H@Z) [C:\GitHub\jxcore-addon\build\binding.vcx
proj]
C:\GitHub\jxcore-addon\build\Release\binding.node : fatal error LNK1120: 1 unre
solved externals [C:\GitHub\jxcore-addon\build\binding.vcxproj]
Done Building Project "C:\GitHub\jxcore-addon\build\binding.vcxproj" (default t
argets) -- FAILED.
Done Building Project "C:\GitHub\jxcore-addon\build\binding.sln" (default targe
ts) -- FAILED.
Build FAILED.
"C:\GitHub\jxcore-addon\build\binding.sln" (default target) (1) ->
"C:\GitHub\jxcore-addon\build\binding.vcxproj" (default target) (2) ->
(Link target) ->
binding.obj : error LNK2001: unresolved external symbol "public: static class
node::commons * __cdecl node::commons::getInstanceByThreadId(int)" (?getInstan
ceByThreadId@commons@node@@SAPAV12@H@Z) [C:\GitHub\jxcore-addon\build\binding.v
cxproj]
C:\GitHub\jxcore-addon\build\Release\binding.node : fatal error LNK1120: 1 un
resolved externals [C:\GitHub\jxcore-addon\build\binding.vcxproj]
/
0 Warning(s)
2 Error(s)
Time Elapsed 00:00:02.40
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\12.0\bin\msbuild.exe` fail
ed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Users\zamb3zi\.jx\npm\node_modules\no
de-gyp\lib\build.js:267:23)
gyp ERR! stack at ChildProcess.emit (events.js:85:15)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:815:
12)
gyp ERR! System Windows_NT 6.2.9200
gyp ERR! command "jx" "C:\\Users\\zamb3zi\\.jx\\npm\\node_modules\\node-gyp\\bin\\n
ode-gyp.js" "configure" "build"
gyp ERR! cwd C:\GitHub\jxcore-addon
gyp ERR! node -v v0.10.38
gyp ERR! node-gyp -v v0.13.1
gyp ERR! not ok
-
npm verb unsafe-perm in lifecycle true
npm info [email protected] Failed to exec install script
npm ERR! [email protected] install: `node-gyp configure build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the jxcore-addon package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp configure build
npm ERR! You can get their info via:
npm ERR! npm owner ls jxcore-addon
npm ERR! There is likely additional logging output above.
npm ERR! System Windows_NT 6.2.9200
npm ERR! command "C:\\Users\\zamb3zi\\Documents\\devel\\bin\\jx.exe" "C:\\Users\\Jo
hn\\.jx\\npm" "install" "--verbose" "--msvs_version=2013" "--arch=ia32"
npm ERR! cwd C:\GitHub\jxcore-addon
npm ERR! node -v v0.10.38
npm ERR! npm -v 1.4.14
npm ERR! code ELIFECYCLE
npm verb exit [ 1, true ]
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\GitHub\jxcore-addon\npm-debug.log
npm ERR! not ok code 0