Description
Node: v7.9.0
oracledb: 1.13.1
Oracle Client from Website. Installed through windows installer.
Oracle Database version unknown
OS : Win 7
Compiler : VS 2015 MSBuild.exe
ENV Vars: set through System Properties Screen
-OCI_INC_DIR=C:\Oracle\instantclient\sdk\include
-OCI_LIB_DIR=C:\Oracle\instantclient\sdk\lib\msvc
As Admin I am trying to run npm install -s oracledb
from within my project.
Errors:
c:\users\rhali\.node-gyp\7.9.0\include\node\v8.h(18): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory (compiling source file ..\src\njs\src\njsConnection.cpp) [C:\apps\my-proof-of
-concepts\git_oracledb\node-oracledb\build\oracledb.vcxproj]
I've run with silly for more details. I've been through node-gyp code, I've updated applications.
I need to use VS2015 and can't uninstall it because it's necessary for other projects.
The necessary include files are located here: C:\Program Files (x86)\Windows Kits\10\Include\10.0.10150.0\ucrt
By changing the vcxproj file I can get past this error. Which leads to a new error about libraries which are located here: C:\Program Files (x86)\Windows Kits\10\Lib\10.0.10150.0\ucrt\x64
If I add this code to the vcxproj then it will compile properly.
Editing the vcxproj file isn't a solution because it's built dynamically from binding.gyp.
I tried to add the directories to the gyp file, but I get hexadecimal errors when I try this.
C:\apps\my-proof-of-concepts\git_oracledb\node-oracledb\build\oracledb.vcxproj(49,281): error MSB4025: The project file could not be loaded. ', hexadecimal value 0x08, is an invalid character. Line 49, position 2
81.
Maybe I'm missing a better way to use UniversalCRT for VS2015 MSBuild or I need to learn how to edit a gyp file better.
Any assistance greatly appreciated.