You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fails to build on Windows with node-gyp and VS2015 Update 3.
Problem seems to be a redefinition of the int8_t type; a bug in the upstream library.
D:\build\node_modules\sfnt2woff-zopfli>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "" rebuild )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
woff_decode.cc
win_delay_load_hook.cc
D:\build\node_modules\sfnt2woff-zopfli\src\../sfnt2woff-zopfli/woff.h(45): error C2371: 'int8_t': redefinition; different basic types (compiling source file ..\src\woff_decode.cc) [D:\build\node_modules\sfnt2woff-zopfli\build\woff_decode.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\stdint.h(17): note: see declaration of 'int8_t' (compiling source file ..\src\woff_decode.cc)
woff_encode.cc
win_delay_load_hook.cc
D:\build\node_modules\sfnt2woff-zopfli\src\../sfnt2woff-zopfli/woff.h(45): error C2371: 'int8_t': redefinition; different basic types (compiling source file ..\src\woff_encode.cc) [D:\build\node_modules\sfnt2woff-zopfli\build\woff_encode.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\stdint.h(17): note: see declaration of 'int8_t' (compiling source file ..\src\woff_encode.cc)
The text was updated successfully, but these errors were encountered:
@rjgotten thanks for bringing this to my attention, I don't know how much I can help with this though because I don't have a windows machine. I'd be happy to accept a PR if there's anything that can be done to make this work for you.
This library needs a bit of TLC but I don't have time at the moment.
@eqyiel
It's a problem on the C++ end with the sfnt2woff-zopfli library itself. Ideally they'll fix it and all you'd need to do is pull in the updated version.
For when you're able to revisit your library at a later time, perhaps some food for thought: why not fall back to an Emscripten (or WASM; if supported) build of sfnt2woff-zopfli when the native build fails?
Fails to build on Windows with node-gyp and VS2015 Update 3.
Problem seems to be a redefinition of the
int8_t
type; a bug in the upstream library.The text was updated successfully, but these errors were encountered: