Comments (7)
I think that #32 (comment) maybe same issue, so I close this.
(When I removed ConvertWOFF2ToTTF function, it compiled well.)
from woff2.
Error when complie on CentOS 6.7. How to fix that? thanks
rm -f src/font.o src/glyph.o src/normalize.o src/table_tags.o src/transform.o src/woff2_dec.o src/woff2_enc.o src/woff2_common.o src/variable_length.o src/woff2_compress.o src/woff2_decompress.o woff2_compress woff2_decompress
make -C brotli/dec clean
make[1]: Entering directory /nhan/nhan2/woff2/brotli/dec' rm -f bit_reader.o decode.o huffman.o safe_malloc.o state.o streams.o make[1]: Leaving directory
/nhan/nhan2/woff2/brotli/dec'
make -C brotli/enc clean
make[1]: Entering directory /nhan/nhan2/woff2/brotli/enc' rm -f backward_references.o block_splitter.o brotli_bit_stream.o encode.o encode_parallel.o entropy_encode.o histogram.o literal_cost.o metablock.o static_dict.o streams.o make[1]: Leaving directory
/nhan/nhan2/woff2/brotli/enc'
g++ -fno-omit-frame-pointer -no-canonical-prefixes -DFONT_COMPRESSION_BIN -fno-tree-vrp -std=c++11 -I./brotli/dec/ -I./brotli/enc/ -I./src -c -o src/font.o src/font.cc
g++: unrecognized option '-no-canonical-prefixes'
cc1plus: error: unrecognized command line option "-std=c++11"
make: *** [src/font.o] Error 1
from woff2.
My guess would be you have an older gcc; what does gcc -v say?
from woff2.
The brotli encoder no longer requires a compiler with C++11 support, so the -std=c++11
flag in woff2 Makefile could be dropped.
from woff2.
Good catch, will fix. However, my guess would be a gcc old enough to not support -std=c++11
is likely to have the __STDC_FORMAT_MACROS issue (#19) as well.
from woff2.
My gcc version gcc version 4.4.7 20120313 (Red Hat 4.4.7-16) (GCC). I have try to change std=c++11 to std=c++0x but have another error.
g++: unrecognized option '-no-canonical-prefixes'
src/font.cc: In member function ‘std::vector<unsigned int, std::allocator > woff2::Font::OutputOrderedTags() const’:
src/font.cc:42: error: expected initializer before ‘:’ token
src/font.cc:400: error: expected primary-expression at end of input
src/font.cc:400: error: expected ‘;’ at end of input
src/font.cc:400: error: expected primary-expression at end of input
src/font.cc:400: error: expected ‘)’ at end of input
src/font.cc:400: error: expected statement at end of input
src/font.cc:400: error: expected ‘}’ at end of input
src/font.cc: At global scope:
src/font.cc:400: error: expected ‘}’ at end of input
from woff2.
Unfortunately the best course of action for gcc 4.4 is probably to update.
from woff2.
Related Issues (20)
- Update brotli to v1.0.9 HOT 1
- Build failed on Pop_os HOT 1
- Pre-compiled binaries for Windows? HOT 1
- Yahoo is now HOT 1
- How to I compile Windows x64 binaries either on Windows 10 or Ubuntu WSL2? HOT 4
- Silent woff2_decompress failure? HOT 7
- build a static link executable
- fix README.md for https://github.com/google/woff2/tree/master#build
- make woff2_compress less verbose
- Can't uninstall.
- Compres multiple .ttf HOT 4
- Google cc+
- command not found: woff2_compress HOT 1
- Compress glyf table generically if it fails specifically HOT 1
- Windows binary? HOT 3
- Parsing of the input font failed. HOT 4
- 🔥 Windows Version
- Web version with progress bar support HOT 1
- Daniela's HOT 1
- Compressing a variable TTF to WOFF2 suffixes font name with lightest weight
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from woff2.