ggarlic / ttf2eot

Automatically exported from code.google.com/p/ttf2eot
0 stars 0 forks source link

ttf2eot doesn't compilable on Linux platform #29

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. make

What is the expected output? What do you see instead?

feniks@anna /tmp/ttf $ make
g++    -c -o OpenTypeUtilities.o OpenTypeUtilities.cpp
OpenTypeUtilities.cpp:227:18: warning: multi-character character constant 
[-Wmultichar]
OpenTypeUtilities.cpp:247:18: warning: multi-character character constant 
[-Wmultichar]
OpenTypeUtilities.cpp:257:18: warning: multi-character character constant 
[-Wmultichar]
OpenTypeUtilities.cpp: In function ‘bool getEOTHeader(unsigned char*, size_t, 
std::vector<unsigned char>&, size_t&, size_t&, size_t&)’:
OpenTypeUtilities.cpp:197:41: error: expected primary-expression before ‘,’ 
token
OpenTypeUtilities.cpp:197:43: error: ‘tables’ was not declared in this scope
OpenTypeUtilities.cpp:197:49: error: ‘offsetof’ was not declared in this 
scope
OpenTypeUtilities.cpp:202:41: error: expected primary-expression before ‘,’ 
token
OpenTypeUtilities.cpp:202:43: error: ‘tables’ was not declared in this scope
OpenTypeUtilities.cpp:202:49: error: ‘offsetof’ was not declared in this 
scope
OpenTypeUtilities.cpp:259:70: error: expected primary-expression before ‘,’ 
token
OpenTypeUtilities.cpp:259:72: error: ‘nameRecords’ was not declared in this 
scope                                                                           

OpenTypeUtilities.cpp:259:83: error: ‘offsetof’ was not declared in this 
scope                                                                           

OpenTypeUtilities.cpp:265:74: error: expected primary-expression before ‘,’ 
token                                                                           

OpenTypeUtilities.cpp:265:76: error: ‘nameRecords’ was not declared in this 
scope                                                                           

OpenTypeUtilities.cpp:265:87: error: ‘offsetof’ was not declared in this 
scope                                                                           

make: *** [OpenTypeUtilities.o] Error 1

What version of the product are you using? On what operating system?
Product: ttf2eot-0.0.2-2.tar.gz 
OS: Gentoo
gcc: gcc version 4.7.3 (Gentoo 4.7.3-r1 p1.3, pie-0.5.5)

Please provide any additional information below.
chromium source file OpenTypeUtilities.cpp doesn't copmiled because it doesn't 
include <stddef.h> . As file OpenTypeUtilities.cpp from other project and can 
be updated in a future, it is usefull to patch it from Makefile.

I attached fix for Makefile + patch OpenTypeUtilities.cpp file.

To apply this changes (ttf2eot_compile_fix.zip), please:
1. Store in project root file: add_stddef.patch
2. patch Makefiles with command: $ patch Makefile < Makefile.patch
3. Commit to svn.

Please, mention that author of this changes is: Maksym Sditanov 
<feniksa@rambler.ru>

Original issue reported on code.google.com by feniksgo...@gmail.com on 15 Jan 2014 at 3:52

Attachments: