Git Product home page Git Product logo

Comments (7)

lawlite avatar lawlite commented on May 7, 2024

I think that #32 (comment) maybe same issue, so I close this.
(When I removed ConvertWOFF2ToTTF function, it compiled well.)

from woff2.

anhthu110618 avatar anhthu110618 commented on May 7, 2024

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.

rsheeter avatar rsheeter commented on May 7, 2024

My guess would be you have an older gcc; what does gcc -v say?

from woff2.

anthrotype avatar anthrotype commented on May 7, 2024

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.

rsheeter avatar rsheeter commented on May 7, 2024

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.

anhthu110618 avatar anhthu110618 commented on May 7, 2024

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.

rsheeter avatar rsheeter commented on May 7, 2024

Unfortunately the best course of action for gcc 4.4 is probably to update.

from woff2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.