Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fails: fatal error C1083: Cannot open include file: 'atlenc.h #89

Open
a3rtgm-ds opened this issue Nov 26, 2020 · 3 comments
Open

Comments

@a3rtgm-ds
Copy link

a3rtgm-ds commented Nov 26, 2020

I cannot install v0.2.8 with Node v14.15.1 (also tried v12.20 and v15). Also tried updating node-gyp and the build tools.
System: Win 10 x64

No binary is available, so it tries to build...
Fails with:

Warning: Missing input files:
C:\CSL\dev\mp-admintool\node_modules\node-sspi\build\..\src\*.cpp
C:\CSL\dev\mp-admintool\node_modules\node-sspi\build\..\src\*.h
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
  NodeSSPI.cpp
  win_delay_load_hook.cc
c:\csl\dev\mp-admintool\node_modules\node-sspi\src\nodesspi.h(10): fatal error C1083: Cannot open include file: 'atlenc.h': No such file or directory (compiling source file ..\src\NodeSSPI.cpp) [C:\CSL\dev\mp-admintool\node_modules\node-sspi\build\NodeSSPI.vcxpr
oj]
?[37;40mgyp?[0m ?[0m?[31;40mERR!?[0m ?[0m?[35mbuild error?[0m
?[0m?[37;40mgyp?[0m ?[0m?[31;40mERR!?[0m ?[0m?[35mstack?[0m Error: `C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe` failed with exit code: 1
?[0m?[37;40mgyp?[0m ?[0m?[31;40mERR!?[0m ?[0m?[35mstack?[0m     at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:194:23)
?[0m?[37;40mgyp?[0m ?[0m?[31;40mERR!?[0m ?[0m?[35mstack?[0m     at ChildProcess.emit (events.js:314:20)
?[0m?[37;40mgyp?[0m ?[0m?[31;40mERR!?[0m ?[0m?[35mstack?[0m     at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12)
?[0m?[37;40mgyp?[0m ?[0m?[31;40mERR!?[0m ?[0m?[35mSystem?[0m Windows_NT 10.0.17763
?[0m?[37;40mgyp?[0m ?[0m?[31;40mERR!?[0m ?[0m?[35mcommand?[0m "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
?[0m?[37;40mgyp?[0m ?[0m?[31;40mERR!?[0m ?[0m?[35mcwd?[0m C:\CSL\dev\mp-admintool\node_modules\node-sspi
?[0m?[37;40mgyp?[0m ?[0m?[31;40mERR!?[0m ?[0m?[35mnode -v?[0m v14.5.0
?[0m?[37;40mgyp?[0m ?[0m?[31;40mERR!?[0m ?[0m?[35mnode-gyp -v?[0m v5.1.0
?[0m?[37;40mgyp?[0m ?[0m?[31;40mERR!?[0m ?[0m?[35mnot ok?[0m
?[0mBuild failed

Also tried assigning a different node-gyp version through npm config set node_gyp

Appreciate your help :)

@xcapt
Copy link

xcapt commented May 4, 2021

As with the above person: npm i was complaining about atlenc.h on build

Cause: ATL libraries was not installed by default with installation of Visual studio build tools (npm i -g windows-build-tools)

Solution:

  1. Went to Windows settings / apps & features on Visual Studio Installer and on Build tools clicked on modify to install the ATL libraries
  2. launched npm i again
    => build successful, node-sspi 0.2.8 installed

@allens01
Copy link

allens01 commented Jun 7, 2021

@xcapt I had the same issue and your fix worked for me, thanks!

@UXPURE
Copy link

UXPURE commented Apr 12, 2022

@xcapt Same here. Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants