-
-
Notifications
You must be signed in to change notification settings - Fork 40
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
Unable to install on windows #13
Comments
I have no computer with windows installed so can't test. Feel free to PR to bring support for windows. Btw, mac users had build problem and they managed to get it working by adding some custom flags for c++11 support, it could worth a try to find and set the C++11 flags and see if it builds. If a windows users can do it and confirm it works, i'll merge a pr adding all the necessary flags for building sucessfully on windows. See: |
The actual error is (from builderror.log: D:\node_modules\ttf2woff2>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. addon.cc glyph.cc font.cc normalize.cc d:\node_modules\ttf2woff2\csrc\woff2\./port.h(40): error C3861: 'assert': identifier not found (compiling source file ..\csrc\woff2\normalize.cc) [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\woff2\glyph.cc(69): warning C4267: '=': conversion from 'size_t' to 'uint32_t', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\woff2\glyph.cc(236): warning C4267: '+=': conversion from 'size_t' to 'int', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\woff2\glyph.cc(366): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] d:\node_modules\ttf2woff2\csrc\woff2\./port.h(40): error C3861: 'assert': identifier not found (compiling source file ..\csrc\woff2\font.cc) [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\woff2\normalize.cc(79): warning C4267: '+=': conversion from 'size_t' to 'uint32_t', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\woff2\normalize.cc(153): warning C4244: 'initializing': conversion from 'double' to 'size_t', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\woff2\normalize.cc(286): warning C4267: 'argument': conversion from 'size_t' to 'uint32_t', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\woff2\normalize.cc(286): warning C4267: 'initializing': conversion from 'size_t' to 'uint32_t', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] table_tags.cc ..\csrc\woff2\font.cc(147): warning C4018: '<': signed/unsigned mismatch [D:\node_modules\ttf2woff2\build\addon.vcxproj] transform.cc ..\csrc\woff2\font.cc(299): warning C4267: 'argument': conversion from 'size_t' to 'uint32_t', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\woff2\font.cc(316): warning C4267: 'argument': conversion from 'size_t' to 'uint32_t', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\woff2\font.cc(370): warning C4018: '>': signed/unsigned mismatch [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\woff2\font.cc(395): warning C4267: '=': conversion from 'size_t' to 'uint16_t', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] variable_length.cc woff2_common.cc woff2_enc.cc ..\csrc\woff2\transform.cc(83): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\woff2\transform.cc(84): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\woff2\transform.cc(85): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\woff2\transform.cc(86): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\woff2\transform.cc(87): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\woff2\transform.cc(88): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\woff2\transform.cc(89): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\woff2\transform.cc(138): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\woff2\transform.cc(144): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\woff2\transform.cc(149): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\woff2\transform.cc(278): warning C4267: '=': conversion from 'size_t' to 'uint32_t', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] backward_references.cc block_splitter.cc d:\node_modules\ttf2woff2\csrc\enc\./metablock.h(28): warning C4099: 'brotli::BlockSplit': type name first seen using 'class' now seen using 'struct' (compiling source file ..\csrc\enc\block_splitter.cc) [D:\node_modules\ttf2woff2\build\addon.vcxproj] d:\node_modules\ttf2woff2\csrc\enc\./metablock.h(28): note: see declaration of 'brotli::BlockSplit' (compiling source file ..\csrc\enc\block_splitter.cc) d:\node_modules\ttf2woff2\csrc\enc\./static_dict.h(60): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data (compiling source file ..\csrc\woff2\woff2_enc.cc) [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\addon.cc(25): error C2131: expression did not evaluate to a constant [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\addon.cc(25): note: failure was caused by non-constant arguments or reference to a non-constant symbol ..\csrc\addon.cc(25): note: see usage of 'max_output_length' ..\csrc\addon.cc(42): warning C4267: 'argument': conversion from 'size_t' to 'uint32_t', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] d:\node_modules\ttf2woff2\csrc\enc\./ringbuffer.h(40): warning C4334: '<<': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?) (compiling source file ..\csrc\woff2\woff2_enc.cc) [D:\node_modules\ttf2woff2\build\addon.vcxproj] d:\node_modules\ttf2woff2\csrc\enc\./ringbuffer.h(40): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data (compiling source file ..\csrc\woff2\woff2_enc.cc) [D:\node_modules\ttf2woff2\build\addon.vcxproj] d:\node_modules\ttf2woff2\csrc\enc\./ringbuffer.h(40): warning C4267: 'initializing': conversion from 'size_t' to 'const int', possible loss of data (compiling source file ..\csrc\woff2\woff2_enc.cc) [D:\node_modules\ttf2woff2\build\addon.vcxproj] d:\node_modules\ttf2woff2\csrc\enc\./ringbuffer.h(56): warning C4334: '<<': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?) (compiling source file ..\csrc\woff2\woff2_enc.cc) [D:\node_modules\ttf2woff2\build\addon.vcxproj] d:\node_modules\ttf2woff2\csrc\enc\./ringbuffer.h(63): warning C4334: '<<': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?) (compiling source file ..\csrc\woff2\woff2_enc.cc) [D:\node_modules\ttf2woff2\build\addon.vcxproj] d:\node_modules\ttf2woff2\csrc\enc\./ringbuffer.h(65): warning C4334: '<<': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?) (compiling source file ..\csrc\woff2\woff2_enc.cc) [D:\node_modules\ttf2woff2\build\addon.vcxproj] d:\node_modules\ttf2woff2\csrc\enc\./ringbuffer.h(66): warning C4334: '<<': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?) (compiling source file ..\csrc\woff2\woff2_enc.cc) [D:\node_modules\ttf2woff2\build\addon.vcxproj] d:\node_modules\ttf2woff2\csrc\enc\./ringbuffer.h(89): warning C4334: '<<': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?) (compiling source file ..\csrc\woff2\woff2_enc.cc) [D:\node_modules\ttf2woff2\build\addon.vcxproj] brotli_bit_stream.cc d:\node_modules\ttf2woff2\csrc\woff2\./../enc/encode.h(77): warning C4334: '<<': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?) (compiling source file ..\csrc\woff2\woff2_enc.cc) [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\woff2\woff2_enc.cc(58): warning C4267: '=': conversion from 'size_t' to 'uint32_t', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\woff2\woff2_enc.cc(119): warning C4267: 'argument': conversion from 'size_t' to 'uint16_t', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\woff2\woff2_enc.cc(124): warning C4267: 'argument': conversion from 'size_t' to 'uint16_t', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\block_splitter.cc(82): warning C4244: 'argument': conversion from 'const uint16_t' to 'const unsigned char', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\block_splitter.cc(154): warning C4244: 'return': conversion from 'double' to 'float', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\woff2\woff2_enc.cc(171): warning C4267: 'argument': conversion from 'size_t' to 'uint32_t', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\woff2\woff2_enc.cc(210): warning C4244: 'return': conversion from 'double' to 'uint32_t', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\woff2\woff2_enc.cc(256): warning C4267: 'argument': conversion from 'size_t' to 'uint32_t', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\woff2\woff2_enc.cc(258): warning C4267: 'initializing': conversion from 'size_t' to 'uint32_t', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\woff2\woff2_enc.cc(285): warning C4267: 'argument': conversion from 'size_t' to 'uint32_t', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\woff2\woff2_enc.cc(312): warning C4267: '=': conversion from 'size_t' to 'unsigned short', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\woff2\woff2_enc.cc(361): warning C4267: 'argument': conversion from 'size_t' to 'uint32_t', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\woff2\woff2_enc.cc(362): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\woff2\woff2_enc.cc(365): warning C4267: 'argument': conversion from 'size_t' to 'uint32_t', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\woff2\woff2_enc.cc(373): warning C4267: 'argument': conversion from 'size_t' to 'uint32_t', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\woff2\woff2_enc.cc(375): warning C4267: 'argument': conversion from 'size_t' to 'uint32_t', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\woff2\woff2_enc.cc(393): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] d:\node_modules\ttf2woff2\csrc\enc\./static_dict.h(60): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data (compiling source file ..\csrc\enc\backward_references.cc) [D:\node_modules\ttf2woff2\build\addon.vcxproj] d:\node_modules\ttf2woff2\csrc\enc\./metablock.h(28): warning C4099: 'brotli::BlockSplit': type name first seen using 'class' now seen using 'struct' (compiling source file ..\csrc\enc\brotli_bit_stream.cc) [D:\node_modules\ttf2woff2\build\addon.vcxproj] d:\node_modules\ttf2woff2\csrc\enc\./metablock.h(28): note: see declaration of 'brotli::BlockSplit' (compiling source file ..\csrc\enc\brotli_bit_stream.cc) ..\csrc\enc\block_splitter.cc(319): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\block_splitter.cc(366): note: see reference to function template instantiation 'void brotli::SplitByteVector(const std::vector> &,const int,const int,const int,const double,brotli::BlockSplit *)' being compiled with [ _Ty=uint8_t ] ..\csrc\enc\brotli_bit_stream.cc(38): warning C4267: 'argument': conversion from 'size_t' to 'uint32_t', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\brotli_bit_stream.cc(43): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\brotli_bit_stream.cc(230): warning C4267: 'argument': conversion from 'size_t' to 'uint32_t', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\brotli_bit_stream.cc(289): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\brotli_bit_stream.cc(412): warning C4244: 'initializing': conversion from 'double' to 'int', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\brotli_bit_stream.cc(491): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\brotli_bit_stream.cc(491): warning C4267: 'initializing': conversion from 'size_t' to 'const int', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\brotli_bit_stream.cc(710): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\brotli_bit_stream.cc(713): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\brotli_bit_stream.cc(718): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\brotli_bit_stream.cc(721): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\block_splitter.cc(101): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\block_splitter.cc(328): note: see reference to function template instantiation 'void brotli::InitialEntropyCodes(const DataType *,size_t,int,int,size_t,std::vector> *)' being compiled with [ DataType=unsigned char, _Ty=brotli::HistogramLiteral ] ..\csrc\enc\block_splitter.cc(366): note: see reference to function template instantiation 'void brotli::SplitByteVector(const std::vector> &,const int,const int,const int,const double,brotli::BlockSplit *)' being compiled with [ _Ty=uint8_t ] ..\csrc\enc\block_splitter.cc(106): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\block_splitter.cc(108): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\block_splitter.cc(113): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\block_splitter.cc(142): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\block_splitter.cc(331): note: see reference to function template instantiation 'void brotli::RefineEntropyCodes(const DataType *,size_t,size_t,std::vector> *)' being compiled with [ DataType=unsigned char, _Ty=brotli::HistogramLiteral ] ..\csrc\enc\block_splitter.cc(144): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\block_splitter.cc(168): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\block_splitter.cc(338): note: see reference to function template instantiation 'void brotli::FindBlocks(const DataType *,const size_t,const double,const std::vector> &,uint8_t *)' being compiled with [ DataType=unsigned char, _Ty=brotli::HistogramLiteral ] ..\csrc\enc\block_splitter.cc(188): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\block_splitter.cc(213): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\brotli_bit_stream.cc(798): warning C4267: '+=': conversion from 'size_t' to 'int', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\brotli_bit_stream.cc(803): warning C4267: '+=': conversion from 'size_t' to 'int', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\block_splitter.cc(280): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\block_splitter.cc(341): note: see reference to function template instantiation 'void brotli::ClusterBlocks(const DataType *,const size_t,uint8_t *)' being compiled with [ HistogramType=brotli::HistogramLiteral, DataType=unsigned char ] ..\csrc\enc\backward_references.cc(46): warning C4267: 'argument': conversion from 'size_t' to 'const int', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\backward_references.cc(311): note: see reference to function template instantiation 'void brotli::CreateBackwardReferences(size_t,size_t,const uint8_t *,size_t,const float *,size_t,const size_t,const double,const int,Hasher *,int *,int *,brotli::Command *,int *)' being compiled with [ Hasher=brotli::Hashers::H1 ] ..\csrc\enc\backward_references.cc(48): warning C4267: 'argument': conversion from 'size_t' to 'const int', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\backward_references.cc(50): warning C4267: 'argument': conversion from 'size_t' to 'const int', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\backward_references.cc(55): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\backward_references.cc(55): warning C4267: 'initializing': conversion from 'size_t' to 'const int', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\backward_references.cc(60): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\backward_references.cc(65): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\backward_references.cc(83): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\backward_references.cc(99): warning C4267: 'argument': conversion from 'size_t' to 'const uint32_t', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\backward_references.cc(109): warning C4267: 'argument': conversion from 'size_t' to 'const int', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\backward_references.cc(125): warning C4267: 'argument': conversion from 'size_t' to 'const int', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\backward_references.cc(130): warning C4267: 'argument': conversion from 'size_t' to 'const uint32_t', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\backward_references.cc(172): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\backward_references.cc(215): warning C4267: 'argument': conversion from 'size_t' to 'const int', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\backward_references.cc(228): warning C4267: 'argument': conversion from 'size_t' to 'const uint32_t', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\backward_references.cc(241): warning C4267: 'argument': conversion from 'size_t' to 'const int', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\backward_references.cc(248): warning C4267: 'argument': conversion from 'size_t' to 'const int', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\backward_references.cc(255): warning C4267: 'argument': conversion from 'size_t' to 'const int', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\backward_references.cc(270): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\backward_references.cc(272): warning C4267: 'argument': conversion from 'size_t' to 'const int', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\backward_references.cc(276): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\backward_references.cc(278): warning C4267: 'argument': conversion from 'size_t' to 'const int', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\backward_references.cc(285): warning C4267: '+=': conversion from 'size_t' to 'int', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\backward_references.cc(287): warning C4244: '+=': conversion from '__int64' to 'int', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\backward_references.cc(228): warning C4267: 'argument': conversion from 'size_t' to 'uint32_t', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] d:\node_modules\ttf2woff2\csrc\enc\./histogram.h(52): warning C4267: '+=': conversion from 'size_t' to 'int', possible loss of data (compiling source file ..\csrc\enc\block_splitter.cc) [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\block_splitter.cc(116): note: see reference to function template instantiation 'void brotli::Histogram<256>::Add(const DataType *,size_t)' being compiled with [ DataType=unsigned char ] ..\csrc\enc\block_splitter.cc(116): note: see reference to function template instantiation 'void brotli::Histogram<256>::Add(const DataType *,size_t)' being compiled with [ DataType=unsigned char ] ..\csrc\enc\block_splitter.cc(328): note: see reference to function template instantiation 'void brotli::InitialEntropyCodes(const DataType *,size_t,int,int,size_t,std::vector> *)' being compiled with [ DataType=unsigned char, _Ty=brotli::HistogramLiteral ] d:\node_modules\ttf2woff2\csrc\enc\./hash.h(396): warning C4018: '>': signed/unsigned mismatch (compiling source file ..\csrc\enc\backward_references.cc) [D:\node_modules\ttf2woff2\build\addon.vcxproj] d:\node_modules\ttf2woff2\csrc\enc\./hash.h(360): note: while compiling class template member function 'bool brotli::HashLongestMatch<15,8,2,16,true,false>::FindLongestMatch(const uint8_t *__restrict ,const size_t,const float *__restrict ,const size_t,const double,const int *__restrict ,const uint32_t,uint32_t,const uint32_t,int *__restrict ,int *__restrict ,int *__restrict ,double *__restrict )' (compiling source file ..\csrc\enc\backward_references.cc) ..\csrc\enc\backward_references.cc(99): note: see reference to function template instantiation 'bool brotli::HashLongestMatch<15,8,2,16,true,false>::FindLongestMatch(const uint8_t *__restrict ,const size_t,const float *__restrict ,const size_t,const double,const int *__restrict ,const uint32_t,uint32_t,const uint32_t,int *__restrict ,int *__restrict ,int *__restrict ,double *__restrict )' being compiled d:\node_modules\ttf2woff2\csrc\enc\./hash.h(612): note: see reference to class template instantiation 'brotli::HashLongestMatch<15,8,2,16,true,false>' being compiled (compiling source file ..\csrc\enc\backward_references.cc) d:\node_modules\ttf2woff2\csrc\enc\./hash.h(415): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data (compiling source file ..\csrc\enc\backward_references.cc) [D:\node_modules\ttf2woff2\build\addon.vcxproj] d:\node_modules\ttf2woff2\csrc\enc\./hash.h(425): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data (compiling source file ..\csrc\enc\backward_references.cc) [D:\node_modules\ttf2woff2\build\addon.vcxproj] d:\node_modules\ttf2woff2\csrc\enc\./hash.h(451): warning C4267: 'argument': conversion from 'size_t' to 'uint32_t', possible loss of data (compiling source file ..\csrc\enc\backward_references.cc) [D:\node_modules\ttf2woff2\build\addon.vcxproj] d:\node_modules\ttf2woff2\csrc\enc\./hash.h(458): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data (compiling source file ..\csrc\enc\backward_references.cc) [D:\node_modules\ttf2woff2\build\addon.vcxproj] d:\node_modules\ttf2woff2\csrc\enc\./hash.h(487): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data (compiling source file ..\csrc\enc\backward_references.cc) [D:\node_modules\ttf2woff2\build\addon.vcxproj] d:\node_modules\ttf2woff2\csrc\enc\./hash.h(493): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data (compiling source file ..\csrc\enc\backward_references.cc) [D:\node_modules\ttf2woff2\build\addon.vcxproj] d:\node_modules\ttf2woff2\csrc\enc\./hash.h(496): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data (compiling source file ..\csrc\enc\backward_references.cc) [D:\node_modules\ttf2woff2\build\addon.vcxproj] d:\node_modules\ttf2woff2\csrc\enc\./hash.h(512): warning C4018: '<=': signed/unsigned mismatch (compiling source file ..\csrc\enc\backward_references.cc) [D:\node_modules\ttf2woff2\build\addon.vcxproj] d:\node_modules\ttf2woff2\csrc\enc\./hash.h(519): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data (compiling source file ..\csrc\enc\backward_references.cc) [D:\node_modules\ttf2woff2\build\addon.vcxproj] d:\node_modules\ttf2woff2\csrc\enc\./hash.h(529): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data (compiling source file ..\csrc\enc\backward_references.cc) [D:\node_modules\ttf2woff2\build\addon.vcxproj] d:\node_modules\ttf2woff2\csrc\enc\./hash.h(543): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data (compiling source file ..\csrc\enc\backward_references.cc) [D:\node_modules\ttf2woff2\build\addon.vcxproj] d:\node_modules\ttf2woff2\csrc\enc\./hash.h(551): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data (compiling source file ..\csrc\enc\backward_references.cc) [D:\node_modules\ttf2woff2\build\addon.vcxproj] d:\node_modules\ttf2woff2\csrc\enc\./hash.h(558): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data (compiling source file ..\csrc\enc\backward_references.cc) [D:\node_modules\ttf2woff2\build\addon.vcxproj] d:\node_modules\ttf2woff2\csrc\enc\./hash.h(202): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data (compiling source file ..\csrc\enc\backward_references.cc) [D:\node_modules\ttf2woff2\build\addon.vcxproj] d:\node_modules\ttf2woff2\csrc\enc\./hash.h(166): note: while compiling class template member function 'bool brotli::HashLongestMatchQuickly<17,4>::FindLongestMatch(const uint8_t *__restrict ,const size_t,const float *__restrict ,const size_t,const double,const int *__restrict ,const uint32_t,const uint32_t,const uint32_t,int *__restrict ,int *__restrict ,int *__restrict ,double *__restrict )' (compiling source file ..\csrc\enc\backward_references.cc) ..\csrc\enc\backward_references.cc(99): note: see reference to function template instantiation 'bool brotli::HashLongestMatchQuickly<17,4>::FindLongestMatch(const uint8_t *__restrict ,const size_t,const float *__restrict ,const size_t,const double,const int *__restrict ,const uint32_t,const uint32_t,const uint32_t,int *__restrict ,int *__restrict ,int *__restrict ,double *__restrict )' being compiled d:\node_modules\ttf2woff2\csrc\enc\./hash.h(605): note: see reference to class template instantiation 'brotli::HashLongestMatchQuickly<17,4>' being compiled (compiling source file ..\csrc\enc\backward_references.cc) d:\node_modules\ttf2woff2\csrc\enc\./hash.h(207): warning C4018: '>': signed/unsigned mismatch (compiling source file ..\csrc\enc\backward_references.cc) [D:\node_modules\ttf2woff2\build\addon.vcxproj] d:\node_modules\ttf2woff2\csrc\enc\./hash.h(226): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data (compiling source file ..\csrc\enc\backward_references.cc) [D:\node_modules\ttf2woff2\build\addon.vcxproj] d:\node_modules\ttf2woff2\csrc\enc\./hash.h(226): warning C4267: 'initializing': conversion from 'size_t' to 'const int', possible loss of data (compiling source file ..\csrc\enc\backward_references.cc) [D:\node_modules\ttf2woff2\build\addon.vcxproj] d:\node_modules\ttf2woff2\csrc\enc\./hash.h(231): warning C4018: '>': signed/unsigned mismatch (compiling source file ..\csrc\enc\backward_references.cc) [D:\node_modules\ttf2woff2\build\addon.vcxproj] d:\node_modules\ttf2woff2\csrc\enc\./hash.h(261): warning C4018: '<=': signed/unsigned mismatch (compiling source file ..\csrc\enc\backward_references.cc) [D:\node_modules\ttf2woff2\build\addon.vcxproj] d:\node_modules\ttf2woff2\csrc\enc\./hash.h(268): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data (compiling source file ..\csrc\enc\backward_references.cc) [D:\node_modules\ttf2woff2\build\addon.vcxproj] d:\node_modules\ttf2woff2\csrc\enc\./hash.h(275): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data (compiling source file ..\csrc\enc\backward_references.cc) [D:\node_modules\ttf2woff2\build\addon.vcxproj] encode.cc encode_parallel.cc entropy_encode.cc histogram.cc ..\csrc\enc\entropy_encode.cc(99): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\entropy_encode.cc(99): warning C4267: 'initializing': conversion from 'size_t' to 'const int', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\entropy_encode.cc(138): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] d:\node_modules\ttf2woff2\csrc\enc\./metablock.h(28): warning C4099: 'brotli::BlockSplit': type name first seen using 'class' now seen using 'struct' (compiling source file ..\csrc\enc\histogram.cc) [D:\node_modules\ttf2woff2\build\addon.vcxproj] d:\node_modules\ttf2woff2\csrc\enc\./metablock.h(28): note: see declaration of 'brotli::BlockSplit' (compiling source file ..\csrc\enc\histogram.cc) ..\csrc\enc\entropy_encode.cc(192): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\entropy_encode.cc(199): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\entropy_encode.cc(200): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\entropy_encode.cc(220): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\entropy_encode.cc(227): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\entropy_encode.cc(228): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\entropy_encode.cc(377): warning C4018: '<': signed/unsigned mismatch [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\entropy_encode.cc(380): warning C4018: '<': signed/unsigned mismatch [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\entropy_encode.cc(407): warning C4018: '<': signed/unsigned mismatch [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\entropy_encode.cc(426): warning C4018: '<': signed/unsigned mismatch [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\entropy_encode.cc(431): warning C4018: '<': signed/unsigned mismatch [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\entropy_encode.cc(460): warning C4267: 'return': conversion from 'size_t' to 'uint16_t', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] literal_cost.cc metablock.cc d:\node_modules\ttf2woff2\csrc\enc\./static_dict.h(60): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data (compiling source file ..\csrc\enc\encode.cc) [D:\node_modules\ttf2woff2\build\addon.vcxproj] d:\node_modules\ttf2woff2\csrc\enc\./ringbuffer.h(40): warning C4334: '<<': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?) (compiling source file ..\csrc\enc\encode.cc) [D:\node_modules\ttf2woff2\build\addon.vcxproj] d:\node_modules\ttf2woff2\csrc\enc\./ringbuffer.h(40): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data (compiling source file ..\csrc\enc\encode.cc) [D:\node_modules\ttf2woff2\build\addon.vcxproj] d:\node_modules\ttf2woff2\csrc\enc\./ringbuffer.h(40): warning C4267: 'initializing': conversion from 'size_t' to 'const int', possible loss of data (compiling source file ..\csrc\enc\encode.cc) [D:\node_modules\ttf2woff2\build\addon.vcxproj] d:\node_modules\ttf2woff2\csrc\enc\./ringbuffer.h(56): warning C4334: '<<': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?) (compiling source file ..\csrc\enc\encode.cc) [D:\node_modules\ttf2woff2\build\addon.vcxproj] d:\node_modules\ttf2woff2\csrc\enc\./ringbuffer.h(63): warning C4334: '<<': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?) (compiling source file ..\csrc\enc\encode.cc) [D:\node_modules\ttf2woff2\build\addon.vcxproj] d:\node_modules\ttf2woff2\csrc\enc\./ringbuffer.h(65): warning C4334: '<<': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?) (compiling source file ..\csrc\enc\encode.cc) [D:\node_modules\ttf2woff2\build\addon.vcxproj] d:\node_modules\ttf2woff2\csrc\enc\./ringbuffer.h(66): warning C4334: '<<': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?) (compiling source file ..\csrc\enc\encode.cc) [D:\node_modules\ttf2woff2\build\addon.vcxproj] d:\node_modules\ttf2woff2\csrc\enc\./ringbuffer.h(89): warning C4334: '<<': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?) (compiling source file ..\csrc\enc\encode.cc) [D:\node_modules\ttf2woff2\build\addon.vcxproj] d:\node_modules\ttf2woff2\csrc\enc\./encode.h(77): warning C4334: '<<': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?) (compiling source file ..\csrc\enc\encode.cc) [D:\node_modules\ttf2woff2\build\addon.vcxproj] d:\node_modules\ttf2woff2\csrc\enc\./metablock.h(28): warning C4099: 'brotli::BlockSplit': type name first seen using 'class' now seen using 'struct' (compiling source file ..\csrc\enc\encode.cc) [D:\node_modules\ttf2woff2\build\addon.vcxproj] d:\node_modules\ttf2woff2\csrc\enc\./metablock.h(28): note: see declaration of 'brotli::BlockSplit' (compiling source file ..\csrc\enc\encode.cc) ..\csrc\enc\literal_cost.cc(72): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] d:\node_modules\ttf2woff2\csrc\enc\./static_dict.h(60): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data (compiling source file ..\csrc\enc\encode_parallel.cc) [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\literal_cost.cc(111): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\literal_cost.cc(116): warning C4244: 'initializing': conversion from 'double' to 'float', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\literal_cost.cc(117): warning C4305: '+=': truncation from 'double' to 'float' [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\encode.cc(97): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\literal_cost.cc(127): warning C4244: '+=': conversion from 'double' to 'float', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\literal_cost.cc(138): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\literal_cost.cc(161): warning C4244: 'initializing': conversion from 'double' to 'float', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\encode.cc(127): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\literal_cost.cc(162): warning C4305: '+=': truncation from 'double' to 'float' [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\encode.cc(369): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\encode.cc(495): warning C4267: 'argument': conversion from 'size_t' to 'uint32_t', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\encode.cc(498): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\encode.cc(526): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\encode.cc(527): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] d:\node_modules\ttf2woff2\csrc\enc\./metablock.h(28): warning C4099: 'brotli::BlockSplit': type name first seen using 'class' now seen using 'struct' (compiling source file ..\csrc\enc\metablock.cc) [D:\node_modules\ttf2woff2\build\addon.vcxproj] d:\node_modules\ttf2woff2\csrc\enc\./metablock.h(28): note: see declaration of 'brotli::BlockSplit' (compiling source file ..\csrc\enc\metablock.cc) d:\node_modules\ttf2woff2\csrc\enc\./ringbuffer.h(40): warning C4334: '<<': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?) (compiling source file ..\csrc\enc\encode_parallel.cc) [D:\node_modules\ttf2woff2\build\addon.vcxproj] d:\node_modules\ttf2woff2\csrc\enc\./ringbuffer.h(40): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data (compiling source file ..\csrc\enc\encode_parallel.cc) [D:\node_modules\ttf2woff2\build\addon.vcxproj] d:\node_modules\ttf2woff2\csrc\enc\./ringbuffer.h(40): warning C4267: 'initializing': conversion from 'size_t' to 'const int', possible loss of data (compiling source file ..\csrc\enc\encode_parallel.cc) [D:\node_modules\ttf2woff2\build\addon.vcxproj] d:\node_modules\ttf2woff2\csrc\enc\./ringbuffer.h(56): warning C4334: '<<': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?) (compiling source file ..\csrc\enc\encode_parallel.cc) [D:\node_modules\ttf2woff2\build\addon.vcxproj] d:\node_modules\ttf2woff2\csrc\enc\./ringbuffer.h(63): warning C4334: '<<': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?) (compiling source file ..\csrc\enc\encode_parallel.cc) [D:\node_modules\ttf2woff2\build\addon.vcxproj] d:\node_modules\ttf2woff2\csrc\enc\./ringbuffer.h(65): warning C4334: '<<': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?) (compiling source file ..\csrc\enc\encode_parallel.cc) [D:\node_modules\ttf2woff2\build\addon.vcxproj] d:\node_modules\ttf2woff2\csrc\enc\./ringbuffer.h(66): warning C4334: '<<': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?) (compiling source file ..\csrc\enc\encode_parallel.cc) [D:\node_modules\ttf2woff2\build\addon.vcxproj] d:\node_modules\ttf2woff2\csrc\enc\./ringbuffer.h(89): warning C4334: '<<': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?) (compiling source file ..\csrc\enc\encode_parallel.cc) [D:\node_modules\ttf2woff2\build\addon.vcxproj] d:\node_modules\ttf2woff2\csrc\enc\./encode.h(77): warning C4334: '<<': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?) (compiling source file ..\csrc\enc\encode_parallel.cc) [D:\node_modules\ttf2woff2\build\addon.vcxproj] d:\node_modules\ttf2woff2\csrc\enc\./metablock.h(28): warning C4099: 'brotli::BlockSplit': type name first seen using 'class' now seen using 'struct' (compiling source file ..\csrc\enc\encode_parallel.cc) [D:\node_modules\ttf2woff2\build\addon.vcxproj] d:\node_modules\ttf2woff2\csrc\enc\./metablock.h(28): note: see declaration of 'brotli::BlockSplit' (compiling source file ..\csrc\enc\encode_parallel.cc) streams.cc ..\csrc\enc\encode_parallel.cc(96): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\encode_parallel.cc(322): warning C4244: 'initializing': conversion from 'double' to 'size_t', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\metablock.cc(277): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\metablock.cc(280): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\streams.cc(42): warning C4267: '+=': conversion from 'size_t' to 'int', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\streams.cc(84): warning C4267: '+=': conversion from 'size_t' to 'int', possible loss of data [D:\node_modules\ttf2woff2\build\addon.vcxproj] Errors highlighted d:\node_modules\ttf2woff2\csrc\woff2\./port.h(40): error C3861: 'assert': identifier not found (compiling source file ..\csrc\woff2\normalize.cc) [D:\node_modules\ttf2woff2\build\addon.vcxproj] d:\node_modules\ttf2woff2\csrc\woff2\./port.h(40): error C3861: 'assert': identifier not found (compiling source file ..\csrc\woff2\font.cc) [D:\node_modules\ttf2woff2\build\addon.vcxproj] d:\node_modules\ttf2woff2\csrc\enc\./static_dict.h(60): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data (compiling source file ..\csrc\woff2\woff2_enc.cc) [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\addon.cc(25): error C2131: expression did not evaluate to a constant [D:\node_modules\ttf2woff2\build\addon.vcxproj] ..\csrc\addon.cc(25): note: failure was caused by non-constant arguments or reference to a non-constant symbol ..\csrc\addon.cc(25): note: see usage of 'max_output_length' |
Error (active) expression must have a constant value addon d:\node_modules\ttf2woff2\csrc\addon.cc 24 I think this commit is causing the error: 002c8ea
cc @nfroidure |
@GerjanOnline can you build with the last ttf2woff2 version ? Best would be to clone this repo and run: |
I did a Log: npm run configure > [email protected] configure D:\Git\ttf2woff2 > node-gyp configure D:\Git\ttf2woff2>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" configure ) else (node configure ) module.js:339 throw err; ^ Error: Cannot find module 'nan' at Function.Module._resolveFilename (module.js:337:15) at Function.Module._load (module.js:287:25) at Module.require (module.js:366:17) at require (module.js:385:17) at [eval]:1:1 at Object.exports.runInThisContext (vm.js:54:17) at Object. ([eval]-wrapper:6:22) at Module._compile (module.js:425:26) at node.js:587:27 at doNTCallback0 (node.js:428:9) gyp: Call to 'node -e "require('nan')"' returned exit status 1. while trying to load binding.gyp gyp ERR! configure error gyp ERR! stack Error: `gyp` failed with exit code: 1 gyp ERR! stack at ChildProcess.onCpExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:355:16) gyp ERR! stack at emitTwo (events.js:87:13) gyp ERR! stack at ChildProcess.emit (events.js:172:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12) gyp ERR! System Windows_NT 10.0.10240 gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "configure" gyp ERR! cwd D:\Git\ttf2woff2 gyp ERR! node -v v5.0.0 gyp ERR! node-gyp -v v3.0.3 gyp ERR! not ok npm ERR! Windows_NT 10.0.10240 npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "configure" npm ERR! node v5.0.0 npm ERR! npm v3.3.6 npm ERR! code ELIFECYCLE npm ERR! [email protected] configure: `node-gyp configure` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] configure script 'node-gyp configure'. npm ERR! This is most likely a problem with the ttf2woff2 package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node-gyp configure npm ERR! You can get their info via: npm ERR! npm owner ls ttf2woff2 npm ERR! There is likely additional logging output above. npm ERR! Please include the following file with any support request: npm ERR! D:\Git\ttf2woff2\npm-debug.log |
I forgot to mention you'll have to npm install first ;). |
Still the same issue
npm install > [email protected] install D:\Git\ttf2woff2 > (node-gyp rebuild > builderror.log) || (exit 0) gyp ERR! build error gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe` failed with exit code: 1 gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:270:23) gyp ERR! stack at emitTwo (events.js:87:13) gyp ERR! stack at ChildProcess.emit (events.js:172:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12) gyp ERR! System Windows_NT 10.0.10240 gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" gyp ERR! cwd D:\Git\ttf2woff2 gyp ERR! node -v v5.0.0 gyp ERR! node-gyp -v v3.0.3 gyp ERR! not ok builderror.log D:\Git\ttf2woff2>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. addon.cc glyph.cc font.cc normalize.cc d:\git\ttf2woff2\csrc\woff2\./port.h(40): error C3861: 'assert': identifier not found (compiling source file ..\csrc\woff2\normalize.cc) [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\woff2\glyph.cc(69): warning C4267: '=': conversion from 'size_t' to 'uint32_t', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\woff2\glyph.cc(236): warning C4267: '+=': conversion from 'size_t' to 'int', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\woff2\glyph.cc(366): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] d:\git\ttf2woff2\csrc\woff2\./port.h(40): error C3861: 'assert': identifier not found (compiling source file ..\csrc\woff2\font.cc) [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\woff2\normalize.cc(79): warning C4267: '+=': conversion from 'size_t' to 'uint32_t', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\woff2\normalize.cc(153): warning C4244: 'initializing': conversion from 'double' to 'size_t', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\woff2\normalize.cc(286): warning C4267: 'argument': conversion from 'size_t' to 'uint32_t', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\woff2\normalize.cc(286): warning C4267: 'initializing': conversion from 'size_t' to 'uint32_t', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] table_tags.cc transform.cc ..\csrc\woff2\font.cc(147): warning C4018: '<': signed/unsigned mismatch [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\woff2\font.cc(299): warning C4267: 'argument': conversion from 'size_t' to 'uint32_t', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\woff2\font.cc(316): warning C4267: 'argument': conversion from 'size_t' to 'uint32_t', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\woff2\font.cc(370): warning C4018: '>': signed/unsigned mismatch [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\woff2\font.cc(395): warning C4267: '=': conversion from 'size_t' to 'uint16_t', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] variable_length.cc woff2_common.cc woff2_enc.cc ..\csrc\woff2\transform.cc(83): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\woff2\transform.cc(84): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\woff2\transform.cc(85): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\woff2\transform.cc(86): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\woff2\transform.cc(87): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\woff2\transform.cc(88): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\woff2\transform.cc(89): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\woff2\transform.cc(138): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\woff2\transform.cc(144): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\woff2\transform.cc(149): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\woff2\transform.cc(278): warning C4267: '=': conversion from 'size_t' to 'uint32_t', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] backward_references.cc ..\csrc\addon.cc(25): error C2131: expression did not evaluate to a constant [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\addon.cc(25): note: failure was caused by non-constant arguments or reference to a non-constant symbol ..\csrc\addon.cc(25): note: see usage of 'max_output_length' ..\csrc\addon.cc(42): warning C4267: 'argument': conversion from 'size_t' to 'uint32_t', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] block_splitter.cc brotli_bit_stream.cc d:\git\ttf2woff2\csrc\enc\./metablock.h(28): warning C4099: 'brotli::BlockSplit': type name first seen using 'class' now seen using 'struct' (compiling source file ..\csrc\enc\block_splitter.cc) [D:\Git\ttf2woff2\build\addon.vcxproj] d:\git\ttf2woff2\csrc\enc\./metablock.h(28): note: see declaration of 'brotli::BlockSplit' (compiling source file ..\csrc\enc\block_splitter.cc) d:\git\ttf2woff2\csrc\enc\./metablock.h(28): warning C4099: 'brotli::BlockSplit': type name first seen using 'class' now seen using 'struct' (compiling source file ..\csrc\enc\brotli_bit_stream.cc) [D:\Git\ttf2woff2\build\addon.vcxproj] d:\git\ttf2woff2\csrc\enc\./metablock.h(28): note: see declaration of 'brotli::BlockSplit' (compiling source file ..\csrc\enc\brotli_bit_stream.cc) ..\csrc\enc\brotli_bit_stream.cc(38): warning C4267: 'argument': conversion from 'size_t' to 'uint32_t', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\brotli_bit_stream.cc(43): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\brotli_bit_stream.cc(230): warning C4267: 'argument': conversion from 'size_t' to 'uint32_t', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\brotli_bit_stream.cc(289): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\brotli_bit_stream.cc(412): warning C4244: 'initializing': conversion from 'double' to 'int', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\brotli_bit_stream.cc(491): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\brotli_bit_stream.cc(491): warning C4267: 'initializing': conversion from 'size_t' to 'const int', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\brotli_bit_stream.cc(710): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\brotli_bit_stream.cc(713): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\brotli_bit_stream.cc(718): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\brotli_bit_stream.cc(721): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\brotli_bit_stream.cc(798): warning C4267: '+=': conversion from 'size_t' to 'int', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\brotli_bit_stream.cc(803): warning C4267: '+=': conversion from 'size_t' to 'int', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] d:\git\ttf2woff2\csrc\enc\./static_dict.h(60): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data (compiling source file ..\csrc\woff2\woff2_enc.cc) [D:\Git\ttf2woff2\build\addon.vcxproj] d:\git\ttf2woff2\csrc\enc\./ringbuffer.h(40): warning C4334: '<<': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?) (compiling source file ..\csrc\woff2\woff2_enc.cc) [D:\Git\ttf2woff2\build\addon.vcxproj] d:\git\ttf2woff2\csrc\enc\./ringbuffer.h(40): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data (compiling source file ..\csrc\woff2\woff2_enc.cc) [D:\Git\ttf2woff2\build\addon.vcxproj] d:\git\ttf2woff2\csrc\enc\./ringbuffer.h(40): warning C4267: 'initializing': conversion from 'size_t' to 'const int', possible loss of data (compiling source file ..\csrc\woff2\woff2_enc.cc) [D:\Git\ttf2woff2\build\addon.vcxproj] d:\git\ttf2woff2\csrc\enc\./ringbuffer.h(56): warning C4334: '<<': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?) (compiling source file ..\csrc\woff2\woff2_enc.cc) [D:\Git\ttf2woff2\build\addon.vcxproj] d:\git\ttf2woff2\csrc\enc\./ringbuffer.h(63): warning C4334: '<<': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?) (compiling source file ..\csrc\woff2\woff2_enc.cc) [D:\Git\ttf2woff2\build\addon.vcxproj] d:\git\ttf2woff2\csrc\enc\./ringbuffer.h(65): warning C4334: '<<': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?) (compiling source file ..\csrc\woff2\woff2_enc.cc) [D:\Git\ttf2woff2\build\addon.vcxproj] d:\git\ttf2woff2\csrc\enc\./ringbuffer.h(66): warning C4334: '<<': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?) (compiling source file ..\csrc\woff2\woff2_enc.cc) [D:\Git\ttf2woff2\build\addon.vcxproj] d:\git\ttf2woff2\csrc\enc\./ringbuffer.h(89): warning C4334: '<<': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?) (compiling source file ..\csrc\woff2\woff2_enc.cc) [D:\Git\ttf2woff2\build\addon.vcxproj] d:\git\ttf2woff2\csrc\woff2\./../enc/encode.h(77): warning C4334: '<<': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?) (compiling source file ..\csrc\woff2\woff2_enc.cc) [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\block_splitter.cc(82): warning C4244: 'argument': conversion from 'const uint16_t' to 'const unsigned char', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\block_splitter.cc(154): warning C4244: 'return': conversion from 'double' to 'float', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\woff2\woff2_enc.cc(58): warning C4267: '=': conversion from 'size_t' to 'uint32_t', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] encode.cc ..\csrc\woff2\woff2_enc.cc(119): warning C4267: 'argument': conversion from 'size_t' to 'uint16_t', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\woff2\woff2_enc.cc(124): warning C4267: 'argument': conversion from 'size_t' to 'uint16_t', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] d:\git\ttf2woff2\csrc\enc\./static_dict.h(60): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data (compiling source file ..\csrc\enc\backward_references.cc) [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\woff2\woff2_enc.cc(171): warning C4267: 'argument': conversion from 'size_t' to 'uint32_t', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\woff2\woff2_enc.cc(210): warning C4244: 'return': conversion from 'double' to 'uint32_t', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\woff2\woff2_enc.cc(256): warning C4267: 'argument': conversion from 'size_t' to 'uint32_t', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\woff2\woff2_enc.cc(258): warning C4267: 'initializing': conversion from 'size_t' to 'uint32_t', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\woff2\woff2_enc.cc(285): warning C4267: 'argument': conversion from 'size_t' to 'uint32_t', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\woff2\woff2_enc.cc(312): warning C4267: '=': conversion from 'size_t' to 'unsigned short', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\woff2\woff2_enc.cc(361): warning C4267: 'argument': conversion from 'size_t' to 'uint32_t', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\woff2\woff2_enc.cc(362): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\woff2\woff2_enc.cc(365): warning C4267: 'argument': conversion from 'size_t' to 'uint32_t', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\woff2\woff2_enc.cc(373): warning C4267: 'argument': conversion from 'size_t' to 'uint32_t', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\woff2\woff2_enc.cc(375): warning C4267: 'argument': conversion from 'size_t' to 'uint32_t', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\woff2\woff2_enc.cc(393): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\block_splitter.cc(319): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\block_splitter.cc(366): note: see reference to function template instantiation 'void brotli::SplitByteVector(const std::vector> &,const int,const int,const int,const double,brotli::BlockSplit *)' being compiled with [ _Ty=uint8_t ] ..\csrc\enc\block_splitter.cc(101): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\block_splitter.cc(328): note: see reference to function template instantiation 'void brotli::InitialEntropyCodes(const DataType *,size_t,int,int,size_t,std::vector> *)' being compiled with [ DataType=unsigned char, _Ty=brotli::HistogramLiteral ] ..\csrc\enc\block_splitter.cc(366): note: see reference to function template instantiation 'void brotli::SplitByteVector(const std::vector> &,const int,const int,const int,const double,brotli::BlockSplit *)' being compiled with [ _Ty=uint8_t ] ..\csrc\enc\block_splitter.cc(106): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\block_splitter.cc(108): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\block_splitter.cc(113): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\block_splitter.cc(142): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\block_splitter.cc(331): note: see reference to function template instantiation 'void brotli::RefineEntropyCodes(const DataType *,size_t,size_t,std::vector> *)' being compiled with [ DataType=unsigned char, _Ty=brotli::HistogramLiteral ] ..\csrc\enc\block_splitter.cc(144): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\block_splitter.cc(168): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\block_splitter.cc(338): note: see reference to function template instantiation 'void brotli::FindBlocks(const DataType *,const size_t,const double,const std::vector> &,uint8_t *)' being compiled with [ DataType=unsigned char, _Ty=brotli::HistogramLiteral ] ..\csrc\enc\block_splitter.cc(188): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\block_splitter.cc(213): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\block_splitter.cc(280): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\block_splitter.cc(341): note: see reference to function template instantiation 'void brotli::ClusterBlocks(const DataType *,const size_t,uint8_t *)' being compiled with [ HistogramType=brotli::HistogramLiteral, DataType=unsigned char ] d:\git\ttf2woff2\csrc\enc\./histogram.h(52): warning C4267: '+=': conversion from 'size_t' to 'int', possible loss of data (compiling source file ..\csrc\enc\block_splitter.cc) [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\block_splitter.cc(116): note: see reference to function template instantiation 'void brotli::Histogram<256>::Add(const DataType *,size_t)' being compiled with [ DataType=unsigned char ] ..\csrc\enc\block_splitter.cc(116): note: see reference to function template instantiation 'void brotli::Histogram<256>::Add(const DataType *,size_t)' being compiled with [ DataType=unsigned char ] ..\csrc\enc\block_splitter.cc(328): note: see reference to function template instantiation 'void brotli::InitialEntropyCodes(const DataType *,size_t,int,int,size_t,std::vector> *)' being compiled with [ DataType=unsigned char, _Ty=brotli::HistogramLiteral ] ..\csrc\enc\backward_references.cc(46): warning C4267: 'argument': conversion from 'size_t' to 'const int', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\backward_references.cc(311): note: see reference to function template instantiation 'void brotli::CreateBackwardReferences(size_t,size_t,const uint8_t *,size_t,const float *,size_t,const size_t,const double,const int,Hasher *,int *,int *,brotli::Command *,int *)' being compiled with [ Hasher=brotli::Hashers::H1 ] ..\csrc\enc\backward_references.cc(48): warning C4267: 'argument': conversion from 'size_t' to 'const int', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\backward_references.cc(50): warning C4267: 'argument': conversion from 'size_t' to 'const int', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\backward_references.cc(55): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\backward_references.cc(55): warning C4267: 'initializing': conversion from 'size_t' to 'const int', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\backward_references.cc(60): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\backward_references.cc(65): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\backward_references.cc(83): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\backward_references.cc(99): warning C4267: 'argument': conversion from 'size_t' to 'const uint32_t', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\backward_references.cc(109): warning C4267: 'argument': conversion from 'size_t' to 'const int', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\backward_references.cc(125): warning C4267: 'argument': conversion from 'size_t' to 'const int', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\backward_references.cc(130): warning C4267: 'argument': conversion from 'size_t' to 'const uint32_t', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\backward_references.cc(172): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\backward_references.cc(215): warning C4267: 'argument': conversion from 'size_t' to 'const int', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\backward_references.cc(228): warning C4267: 'argument': conversion from 'size_t' to 'const uint32_t', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\backward_references.cc(241): warning C4267: 'argument': conversion from 'size_t' to 'const int', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\backward_references.cc(248): warning C4267: 'argument': conversion from 'size_t' to 'const int', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\backward_references.cc(255): warning C4267: 'argument': conversion from 'size_t' to 'const int', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\backward_references.cc(270): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\backward_references.cc(272): warning C4267: 'argument': conversion from 'size_t' to 'const int', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\backward_references.cc(276): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\backward_references.cc(278): warning C4267: 'argument': conversion from 'size_t' to 'const int', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\backward_references.cc(285): warning C4267: '+=': conversion from 'size_t' to 'int', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\backward_references.cc(287): warning C4244: '+=': conversion from '__int64' to 'int', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\backward_references.cc(228): warning C4267: 'argument': conversion from 'size_t' to 'uint32_t', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] d:\git\ttf2woff2\csrc\enc\./hash.h(396): warning C4018: '>': signed/unsigned mismatch (compiling source file ..\csrc\enc\backward_references.cc) [D:\Git\ttf2woff2\build\addon.vcxproj] d:\git\ttf2woff2\csrc\enc\./hash.h(360): note: while compiling class template member function 'bool brotli::HashLongestMatch<15,8,2,16,true,false>::FindLongestMatch(const uint8_t *__restrict ,const size_t,const float *__restrict ,const size_t,const double,const int *__restrict ,const uint32_t,uint32_t,const uint32_t,int *__restrict ,int *__restrict ,int *__restrict ,double *__restrict )' (compiling source file ..\csrc\enc\backward_references.cc) ..\csrc\enc\backward_references.cc(99): note: see reference to function template instantiation 'bool brotli::HashLongestMatch<15,8,2,16,true,false>::FindLongestMatch(const uint8_t *__restrict ,const size_t,const float *__restrict ,const size_t,const double,const int *__restrict ,const uint32_t,uint32_t,const uint32_t,int *__restrict ,int *__restrict ,int *__restrict ,double *__restrict )' being compiled d:\git\ttf2woff2\csrc\enc\./hash.h(612): note: see reference to class template instantiation 'brotli::HashLongestMatch<15,8,2,16,true,false>' being compiled (compiling source file ..\csrc\enc\backward_references.cc) d:\git\ttf2woff2\csrc\enc\./hash.h(415): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data (compiling source file ..\csrc\enc\backward_references.cc) [D:\Git\ttf2woff2\build\addon.vcxproj] d:\git\ttf2woff2\csrc\enc\./hash.h(425): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data (compiling source file ..\csrc\enc\backward_references.cc) [D:\Git\ttf2woff2\build\addon.vcxproj] d:\git\ttf2woff2\csrc\enc\./hash.h(451): warning C4267: 'argument': conversion from 'size_t' to 'uint32_t', possible loss of data (compiling source file ..\csrc\enc\backward_references.cc) [D:\Git\ttf2woff2\build\addon.vcxproj] d:\git\ttf2woff2\csrc\enc\./hash.h(458): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data (compiling source file ..\csrc\enc\backward_references.cc) [D:\Git\ttf2woff2\build\addon.vcxproj] d:\git\ttf2woff2\csrc\enc\./hash.h(487): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data (compiling source file ..\csrc\enc\backward_references.cc) [D:\Git\ttf2woff2\build\addon.vcxproj] d:\git\ttf2woff2\csrc\enc\./hash.h(493): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data (compiling source file ..\csrc\enc\backward_references.cc) [D:\Git\ttf2woff2\build\addon.vcxproj] d:\git\ttf2woff2\csrc\enc\./hash.h(496): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data (compiling source file ..\csrc\enc\backward_references.cc) [D:\Git\ttf2woff2\build\addon.vcxproj] d:\git\ttf2woff2\csrc\enc\./hash.h(512): warning C4018: '<=': signed/unsigned mismatch (compiling source file ..\csrc\enc\backward_references.cc) [D:\Git\ttf2woff2\build\addon.vcxproj] d:\git\ttf2woff2\csrc\enc\./hash.h(519): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data (compiling source file ..\csrc\enc\backward_references.cc) [D:\Git\ttf2woff2\build\addon.vcxproj] d:\git\ttf2woff2\csrc\enc\./hash.h(529): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data (compiling source file ..\csrc\enc\backward_references.cc) [D:\Git\ttf2woff2\build\addon.vcxproj] d:\git\ttf2woff2\csrc\enc\./hash.h(543): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data (compiling source file ..\csrc\enc\backward_references.cc) [D:\Git\ttf2woff2\build\addon.vcxproj] d:\git\ttf2woff2\csrc\enc\./hash.h(551): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data (compiling source file ..\csrc\enc\backward_references.cc) [D:\Git\ttf2woff2\build\addon.vcxproj] d:\git\ttf2woff2\csrc\enc\./hash.h(558): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data (compiling source file ..\csrc\enc\backward_references.cc) [D:\Git\ttf2woff2\build\addon.vcxproj] d:\git\ttf2woff2\csrc\enc\./hash.h(202): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data (compiling source file ..\csrc\enc\backward_references.cc) [D:\Git\ttf2woff2\build\addon.vcxproj] d:\git\ttf2woff2\csrc\enc\./hash.h(166): note: while compiling class template member function 'bool brotli::HashLongestMatchQuickly<17,4>::FindLongestMatch(const uint8_t *__restrict ,const size_t,const float *__restrict ,const size_t,const double,const int *__restrict ,const uint32_t,const uint32_t,const uint32_t,int *__restrict ,int *__restrict ,int *__restrict ,double *__restrict )' (compiling source file ..\csrc\enc\backward_references.cc) ..\csrc\enc\backward_references.cc(99): note: see reference to function template instantiation 'bool brotli::HashLongestMatchQuickly<17,4>::FindLongestMatch(const uint8_t *__restrict ,const size_t,const float *__restrict ,const size_t,const double,const int *__restrict ,const uint32_t,const uint32_t,const uint32_t,int *__restrict ,int *__restrict ,int *__restrict ,double *__restrict )' being compiled d:\git\ttf2woff2\csrc\enc\./hash.h(605): note: see reference to class template instantiation 'brotli::HashLongestMatchQuickly<17,4>' being compiled (compiling source file ..\csrc\enc\backward_references.cc) d:\git\ttf2woff2\csrc\enc\./hash.h(207): warning C4018: '>': signed/unsigned mismatch (compiling source file ..\csrc\enc\backward_references.cc) [D:\Git\ttf2woff2\build\addon.vcxproj] d:\git\ttf2woff2\csrc\enc\./hash.h(226): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data (compiling source file ..\csrc\enc\backward_references.cc) [D:\Git\ttf2woff2\build\addon.vcxproj] d:\git\ttf2woff2\csrc\enc\./hash.h(226): warning C4267: 'initializing': conversion from 'size_t' to 'const int', possible loss of data (compiling source file ..\csrc\enc\backward_references.cc) [D:\Git\ttf2woff2\build\addon.vcxproj] d:\git\ttf2woff2\csrc\enc\./hash.h(231): warning C4018: '>': signed/unsigned mismatch (compiling source file ..\csrc\enc\backward_references.cc) [D:\Git\ttf2woff2\build\addon.vcxproj] d:\git\ttf2woff2\csrc\enc\./hash.h(261): warning C4018: '<=': signed/unsigned mismatch (compiling source file ..\csrc\enc\backward_references.cc) [D:\Git\ttf2woff2\build\addon.vcxproj] d:\git\ttf2woff2\csrc\enc\./hash.h(268): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data (compiling source file ..\csrc\enc\backward_references.cc) [D:\Git\ttf2woff2\build\addon.vcxproj] d:\git\ttf2woff2\csrc\enc\./hash.h(275): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data (compiling source file ..\csrc\enc\backward_references.cc) [D:\Git\ttf2woff2\build\addon.vcxproj] encode_parallel.cc entropy_encode.cc histogram.cc d:\git\ttf2woff2\csrc\enc\./static_dict.h(60): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data (compiling source file ..\csrc\enc\encode.cc) [D:\Git\ttf2woff2\build\addon.vcxproj] d:\git\ttf2woff2\csrc\enc\./ringbuffer.h(40): warning C4334: '<<': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?) (compiling source file ..\csrc\enc\encode.cc) [D:\Git\ttf2woff2\build\addon.vcxproj] d:\git\ttf2woff2\csrc\enc\./ringbuffer.h(40): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data (compiling source file ..\csrc\enc\encode.cc) [D:\Git\ttf2woff2\build\addon.vcxproj] d:\git\ttf2woff2\csrc\enc\./ringbuffer.h(40): warning C4267: 'initializing': conversion from 'size_t' to 'const int', possible loss of data (compiling source file ..\csrc\enc\encode.cc) [D:\Git\ttf2woff2\build\addon.vcxproj] d:\git\ttf2woff2\csrc\enc\./ringbuffer.h(56): warning C4334: '<<': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?) (compiling source file ..\csrc\enc\encode.cc) [D:\Git\ttf2woff2\build\addon.vcxproj] d:\git\ttf2woff2\csrc\enc\./ringbuffer.h(63): warning C4334: '<<': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?) (compiling source file ..\csrc\enc\encode.cc) [D:\Git\ttf2woff2\build\addon.vcxproj] d:\git\ttf2woff2\csrc\enc\./ringbuffer.h(65): warning C4334: '<<': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?) (compiling source file ..\csrc\enc\encode.cc) [D:\Git\ttf2woff2\build\addon.vcxproj] d:\git\ttf2woff2\csrc\enc\./ringbuffer.h(66): warning C4334: '<<': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?) (compiling source file ..\csrc\enc\encode.cc) [D:\Git\ttf2woff2\build\addon.vcxproj] d:\git\ttf2woff2\csrc\enc\./ringbuffer.h(89): warning C4334: '<<': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?) (compiling source file ..\csrc\enc\encode.cc) [D:\Git\ttf2woff2\build\addon.vcxproj] d:\git\ttf2woff2\csrc\enc\./encode.h(77): warning C4334: '<<': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?) (compiling source file ..\csrc\enc\encode.cc) [D:\Git\ttf2woff2\build\addon.vcxproj] d:\git\ttf2woff2\csrc\enc\./metablock.h(28): warning C4099: 'brotli::BlockSplit': type name first seen using 'class' now seen using 'struct' (compiling source file ..\csrc\enc\encode.cc) [D:\Git\ttf2woff2\build\addon.vcxproj] d:\git\ttf2woff2\csrc\enc\./metablock.h(28): note: see declaration of 'brotli::BlockSplit' (compiling source file ..\csrc\enc\encode.cc) ..\csrc\enc\encode.cc(97): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\encode.cc(127): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\encode.cc(369): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\encode.cc(495): warning C4267: 'argument': conversion from 'size_t' to 'uint32_t', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\encode.cc(498): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\encode.cc(526): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\encode.cc(527): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\entropy_encode.cc(99): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\entropy_encode.cc(99): warning C4267: 'initializing': conversion from 'size_t' to 'const int', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\entropy_encode.cc(138): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\entropy_encode.cc(192): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\entropy_encode.cc(199): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\entropy_encode.cc(200): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\entropy_encode.cc(220): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\entropy_encode.cc(227): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\entropy_encode.cc(228): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\entropy_encode.cc(377): warning C4018: '<': signed/unsigned mismatch [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\entropy_encode.cc(380): warning C4018: '<': signed/unsigned mismatch [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\entropy_encode.cc(407): warning C4018: '<': signed/unsigned mismatch [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\entropy_encode.cc(426): warning C4018: '<': signed/unsigned mismatch [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\entropy_encode.cc(431): warning C4018: '<': signed/unsigned mismatch [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\entropy_encode.cc(460): warning C4267: 'return': conversion from 'size_t' to 'uint16_t', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] d:\git\ttf2woff2\csrc\enc\./metablock.h(28): warning C4099: 'brotli::BlockSplit': type name first seen using 'class' now seen using 'struct' (compiling source file ..\csrc\enc\histogram.cc) [D:\Git\ttf2woff2\build\addon.vcxproj] d:\git\ttf2woff2\csrc\enc\./metablock.h(28): note: see declaration of 'brotli::BlockSplit' (compiling source file ..\csrc\enc\histogram.cc) literal_cost.cc metablock.cc ..\csrc\enc\literal_cost.cc(72): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\literal_cost.cc(111): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\literal_cost.cc(116): warning C4244: 'initializing': conversion from 'double' to 'float', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\literal_cost.cc(117): warning C4305: '+=': truncation from 'double' to 'float' [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\literal_cost.cc(127): warning C4244: '+=': conversion from 'double' to 'float', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\literal_cost.cc(138): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\literal_cost.cc(161): warning C4244: 'initializing': conversion from 'double' to 'float', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\literal_cost.cc(162): warning C4305: '+=': truncation from 'double' to 'float' [D:\Git\ttf2woff2\build\addon.vcxproj] d:\git\ttf2woff2\csrc\enc\./static_dict.h(60): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data (compiling source file ..\csrc\enc\encode_parallel.cc) [D:\Git\ttf2woff2\build\addon.vcxproj] streams.cc d:\git\ttf2woff2\csrc\enc\./metablock.h(28): warning C4099: 'brotli::BlockSplit': type name first seen using 'class' now seen using 'struct' (compiling source file ..\csrc\enc\metablock.cc) [D:\Git\ttf2woff2\build\addon.vcxproj] d:\git\ttf2woff2\csrc\enc\./metablock.h(28): note: see declaration of 'brotli::BlockSplit' (compiling source file ..\csrc\enc\metablock.cc) d:\git\ttf2woff2\csrc\enc\./ringbuffer.h(40): warning C4334: '<<': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?) (compiling source file ..\csrc\enc\encode_parallel.cc) [D:\Git\ttf2woff2\build\addon.vcxproj] d:\git\ttf2woff2\csrc\enc\./ringbuffer.h(40): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data (compiling source file ..\csrc\enc\encode_parallel.cc) [D:\Git\ttf2woff2\build\addon.vcxproj] d:\git\ttf2woff2\csrc\enc\./ringbuffer.h(40): warning C4267: 'initializing': conversion from 'size_t' to 'const int', possible loss of data (compiling source file ..\csrc\enc\encode_parallel.cc) [D:\Git\ttf2woff2\build\addon.vcxproj] d:\git\ttf2woff2\csrc\enc\./ringbuffer.h(56): warning C4334: '<<': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?) (compiling source file ..\csrc\enc\encode_parallel.cc) [D:\Git\ttf2woff2\build\addon.vcxproj] d:\git\ttf2woff2\csrc\enc\./ringbuffer.h(63): warning C4334: '<<': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?) (compiling source file ..\csrc\enc\encode_parallel.cc) [D:\Git\ttf2woff2\build\addon.vcxproj] d:\git\ttf2woff2\csrc\enc\./ringbuffer.h(65): warning C4334: '<<': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?) (compiling source file ..\csrc\enc\encode_parallel.cc) [D:\Git\ttf2woff2\build\addon.vcxproj] d:\git\ttf2woff2\csrc\enc\./ringbuffer.h(66): warning C4334: '<<': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?) (compiling source file ..\csrc\enc\encode_parallel.cc) [D:\Git\ttf2woff2\build\addon.vcxproj] d:\git\ttf2woff2\csrc\enc\./ringbuffer.h(89): warning C4334: '<<': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?) (compiling source file ..\csrc\enc\encode_parallel.cc) [D:\Git\ttf2woff2\build\addon.vcxproj] d:\git\ttf2woff2\csrc\enc\./encode.h(77): warning C4334: '<<': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?) (compiling source file ..\csrc\enc\encode_parallel.cc) [D:\Git\ttf2woff2\build\addon.vcxproj] d:\git\ttf2woff2\csrc\enc\./metablock.h(28): warning C4099: 'brotli::BlockSplit': type name first seen using 'class' now seen using 'struct' (compiling source file ..\csrc\enc\encode_parallel.cc) [D:\Git\ttf2woff2\build\addon.vcxproj] d:\git\ttf2woff2\csrc\enc\./metablock.h(28): note: see declaration of 'brotli::BlockSplit' (compiling source file ..\csrc\enc\encode_parallel.cc) ..\csrc\enc\encode_parallel.cc(96): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\encode_parallel.cc(322): warning C4244: 'initializing': conversion from 'double' to 'size_t', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\metablock.cc(277): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\metablock.cc(280): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\streams.cc(42): warning C4267: '+=': conversion from 'size_t' to 'int', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\enc\streams.cc(84): warning C4267: '+=': conversion from 'size_t' to 'int', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj]
npm run make > [email protected] make D:\Git\ttf2woff2 > node-gyp build D:\Git\ttf2woff2>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" build ) else (node build ) Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch. addon.cc font.cc normalize.cc d:\git\ttf2woff2\csrc\woff2\./port.h(40): error C3861: 'assert': identifier not found (comp iling source file ..\csrc\woff2\normalize.cc) [D:\Git\ttf2woff2\build\addon.vcxproj] d:\git\ttf2woff2\csrc\woff2\./port.h(40): error C3861: 'assert': identifier not found (comp iling source file ..\csrc\woff2\font.cc) [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\woff2\normalize.cc(79): warning C4267: '+=': conversion from 'size_t' to 'uint32_t' , possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\woff2\normalize.cc(153): warning C4244: 'initializing': conversion from 'double' to 'size_t', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\woff2\normalize.cc(286): warning C4267: 'argument': conversion from 'size_t' to 'ui nt32_t', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\woff2\normalize.cc(286): warning C4267: 'initializing': conversion from 'size_t' to 'uint32_t', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\woff2\font.cc(147): warning C4018: '<': signed/unsigned mismatch [D:\Git\ttf2woff2\ build\addon.vcxproj] ..\csrc\woff2\font.cc(299): warning C4267: 'argument': conversion from 'size_t' to 'uint32_ t', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\woff2\font.cc(316): warning C4267: 'argument': conversion from 'size_t' to 'uint32_ t', possible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\woff2\font.cc(370): warning C4018: '>': signed/unsigned mismatch [D:\Git\ttf2woff2\ build\addon.vcxproj] ..\csrc\woff2\font.cc(395): warning C4267: '=': conversion from 'size_t' to 'uint16_t', pos sible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] ..\csrc\addon.cc(25): error C2131: expression did not evaluate to a constant [D:\Git\ttf2wo ff2\build\addon.vcxproj] ..\csrc\addon.cc(25): note: failure was caused by non-constant arguments or reference to a non-constant symbol ..\csrc\addon.cc(25): note: see usage of 'max_output_length' ..\csrc\addon.cc(42): warning C4267: 'argument': conversion from 'size_t' to 'uint32_t', po ssible loss of data [D:\Git\ttf2woff2\build\addon.vcxproj] gyp ERR! build error gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe` failed with exit code: 1 gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:270:23) gyp ERR! stack at emitTwo (events.js:87:13) gyp ERR! stack at ChildProcess.emit (events.js:172:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12) gyp ERR! System Windows_NT 10.0.10240 gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "build" gyp ERR! cwd D:\Git\ttf2woff2 gyp ERR! node -v v5.0.0 gyp ERR! node-gyp -v v3.0.3 gyp ERR! not ok npm ERR! Windows_NT 10.0.10240 npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "make" npm ERR! node v5.0.0 npm ERR! npm v3.3.6 npm ERR! code ELIFECYCLE npm ERR! [email protected] make: `node-gyp build` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] make script 'node-gyp build'. npm ERR! This is most likely a problem with the ttf2woff2 package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node-gyp build npm ERR! You can get their info via: npm ERR! npm owner ls ttf2woff2 npm ERR! There is likely additional logging output above. npm ERR! Please include the following file with any support request: npm ERR! D:\Git\ttf2woff2\npm-debug.log |
This commit should fix the last error 540e4fa But we still need to fix this two errors: Since they concern the original code, you should try to build this project first and report any issue to that repo https://github.com/google/woff2 |
Thank you, the first issue is fixed now 👍 The other issue lies here: https://github.com/nfroidure/ttf2woff2/blob/master/csrc/woff2/port.h#L40 ==> https://github.com/google/woff2/blob/master/src/port.h#L40 When I manually add Log: D:\Git\ttf2woff2 [master +0 ~1 -0]> npm run configure > [email protected] configure D:\Git\ttf2woff2 > node-gyp configure D:\Git\ttf2woff2>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" configure ) else (node configure ) D:\Git\ttf2woff2 [master +0 ~1 -0]> npm run make > [email protected] make D:\Git\ttf2woff2 > node-gyp build D:\Git\ttf2woff2>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" build ) else (node build ) Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch. Creating library D:\Git\ttf2woff2\build\Release\addon.lib and object D:\Git\ttf2woff2\build\Release\addon. exp Generating code Finished generating code addon.vcxproj -> D:\Git\ttf2woff2\build\Release\\addon.node D:\Git\ttf2woff2 [master +0 ~1 -0]> npm test > [email protected] test D:\Git\ttf2woff2 > mocha tests/*.mocha.js Testing CLI √ should work (393ms) ttf2woff2 √ should work from the main endpoint √ should work from the native build √ should work from the emscripten endpoint (827ms) 4 passing (1s) I am not sure how to fix this, should this be fixed in https://github.com/google/woff2? Seems that they do not have this issue (due to other compiler, build, linker props?) |
@GerjanOnline if it fixes the build, i assume it wont hurt to make those changes here and let windows users enjoy the native experience ;) Feel free to PR your working version. |
Any news on the build part? trying to use gulp-iconfont and seeing errors related to ttf2woff2 on build. |
@TolotraRam please paste the error |
hi sorry, think it's the same error as tihs issue but : if not defined npm_config_node_gyp (node "C:\Users\user\AppData\Roaming\nvm\v4.1.1\node_modules\npm\bin\node-gyp-bin....\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node rebuild )
gyp ERR! build error |
Seems @GerjanOnline have already find the solution, isn't it? for the build part. |
@nfroidure you mean this? Or should i do it in https://github.com/google/woff2 |
@GerjanOnline did you solve your problem with this PR ? or is there another bug. |
Yes my PR (#16) together with 540e4fa solves the build issues on Windows. However, this and corresponding packages still need to be version-bumped/upgraded for the normal node dev workflow, ie: |
Thanks, so waiting for the PR to test it. |
According to the Travis build it works well on Linux, @Psiablo could you build it on OSX to be sure it doesn't break it either? The PR #16 |
Re, using node v4.1.2 still fails on windows, here is my step :
Build and test fails both. |
here the log of build : D:\ttf2woff2 {git}{hg} npm ERR! Windows_NT 10.0.10240 npm ERR! Please include the following file with any support request: Something to know is that i was thinking it's a problem with node gyp but when in install socket io it not fails. |
@TolotraRam seems more a C++ tooling problem Please verify your system: |
@GerjanOnline seems to work perfectly with windows 7 + VS13 but not with windows 10 VS15. |
@nfroidure So build work on windows, but npm install ttf2woff2 and npm install gulp-iconfont still fails, version dumped/upgrade needed. |
@TolotraRam i'm waiting for an OSX user for confirming we didn't break their build before releasing. Won't be long. |
@nfroidure Nice, great work!!! |
@nfroidure @GerjanOnline I've jsut tested it on mac yosemite here's a screen capture : As seen the test passed succesfully but i don't know if the build is done (Not a mac user). |
Any news on this ? |
Hi ! I also have that error on my windows. Thx and have a nice day ! |
@nfroidure can confirm build success on OSX
|
It's also possible we could update Issue for tracking #19. |
@Psiablo That would be awesome! |
Closing this issue since i'm going to make a new version in a few ours. |
I get the following error
The text was updated successfully, but these errors were encountered: