Myrhiam86 / ttf2eot

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

Compiling under Mac Os X 10.5.7 #7

Closed GoogleCodeExporter closed 8 years ago

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

What is the expected output? What do you see instead?
Instead of compiling I get the following errors:
g++    -c -o OpenTypeUtilities.o OpenTypeUtilities.cpp
OpenTypeUtilities.cpp: In function ‘bool getEOTHeader(unsigned char*, size_t, 
std::vector<uint8_t, 
std::allocator<uint8_t> >&, size_t&, size_t&, size_t&)’:
OpenTypeUtilities.cpp:197: warning: invalid access to non-static data member 
‘sfntHeader::tables’ of NULL object
OpenTypeUtilities.cpp:197: warning: (perhaps the ‘offsetof’ macro was used 
incorrectly)
OpenTypeUtilities.cpp:202: warning: invalid access to non-static data member 
‘sfntHeader::tables’ of NULL object
OpenTypeUtilities.cpp:202: warning: (perhaps the ‘offsetof’ macro was used 
incorrectly)
OpenTypeUtilities.cpp:259: warning: invalid access to non-static data member 
‘nameTable::nameRecords’ of NULL 
object
OpenTypeUtilities.cpp:259: warning: (perhaps the ‘offsetof’ macro was used 
incorrectly)
OpenTypeUtilities.cpp:265: warning: invalid access to non-static data member 
‘nameTable::nameRecords’ of NULL 
object
OpenTypeUtilities.cpp:265: warning: (perhaps the ‘offsetof’ macro was used 
incorrectly)
g++    -c -o ttf2eot.o ttf2eot.cpp
g++ -o ttf2eot OpenTypeUtilities.o ttf2eot.o

What version of the product are you using? On what operating system?
ttf2eot: 0.0.2-2
Mac OS X: 10.5.7
Compiler: i686-apple-darwin9-g++-4.0.1

Original issue reported on code.google.com by pedro%fa...@gtempaccount.com on 28 Jun 2009 at 10:53

GoogleCodeExporter commented 8 years ago
Hi.
I'm not use if this helps, but I also tried to compline on my Ubuntu 9.04 
(virtual)box and also got into some trouble.

g++    -c -o OpenTypeUtilities.o OpenTypeUtilities.cpp
OpenTypeUtilities.cpp:227:18: warning: multi-character character constant
OpenTypeUtilities.cpp:247:18: warning: multi-character character constant
OpenTypeUtilities.cpp:257:18: warning: multi-character character constant
OpenTypeUtilities.cpp: In function ‘bool getEOTHeader(unsigned char*, size_t, 
std::vector<unsigned char, std::allocator<unsigned char> >&, 
size_t&, size_t&, size_t&)’:
OpenTypeUtilities.cpp:197: warning: invalid access to non-static data member 
‘sfntHeader::tables’ of NULL object
OpenTypeUtilities.cpp:197: warning: (perhaps the ‘offsetof’ macro was used 
incorrectly)
OpenTypeUtilities.cpp:202: warning: invalid access to non-static data member 
‘sfntHeader::tables’ of NULL object
OpenTypeUtilities.cpp:202: warning: (perhaps the ‘offsetof’ macro was used 
incorrectly)
OpenTypeUtilities.cpp:259: warning: invalid access to non-static data member 
‘nameTable::nameRecords’ of NULL object
OpenTypeUtilities.cpp:259: warning: (perhaps the ‘offsetof’ macro was used 
incorrectly)
OpenTypeUtilities.cpp:265: warning: invalid access to non-static data member 
‘nameTable::nameRecords’ of NULL object
OpenTypeUtilities.cpp:265: warning: (perhaps the ‘offsetof’ macro was used 
incorrectly)
g++    -c -o ttf2eot.o ttf2eot.cpp
g++ -o ttf2eot OpenTypeUtilities.o ttf2eot.o

Compiler: gcc version 4.3.3 (Ubuntu 4.3.3-5ubuntu4)

Original comment by pedro%fa...@gtempaccount.com on 29 Jun 2009 at 11:16

GoogleCodeExporter commented 8 years ago
Hey, these are just warnings and can be safely ignored.

The executable produced should work correctly, I'll eventually get around to 
fixing
the warnings.

Original comment by taviso on 7 Jul 2009 at 11:50

GoogleCodeExporter commented 8 years ago
Hi, thank you for your replay.

Unfortunately the executable doesn't work at all.
If I try to convert a font all I get is some gibberish being written to the 
terminal and that's it.
I tried to convert the exact same font using the Windows (arggh!) binary and it 
worked just fine.

Thank you!
Pedro Fardilha

Original comment by pedro%fa...@gtempaccount.com on 7 Jul 2009 at 12:50

GoogleCodeExporter commented 8 years ago
I'm having the same exact problem as Pedro. Same errors, same gibberish, same 
non-
workingness.

Original comment by Cassidy....@gmail.com on 29 Sep 2009 at 9:13

GoogleCodeExporter commented 8 years ago
When running the utility, you need to redirect stdout to a file.

Per the README file:

"Usage:

    $ ./ttf2eot < input.ttf > output.eot"

After doing the redirect, see if the generated EOT font works in IE.

Good luck!

Original comment by tommyd...@gmail.com on 7 Jul 2010 at 6:29