SourceForge logo
SourceForge logo
Menu

matplotlib-users — Discussion related to using matplotlib

You can subscribe to this list here.

2003 Jan
Feb
Mar
Apr
May
(3)
Jun
Jul
Aug
(12)
Sep
(12)
Oct
(56)
Nov
(65)
Dec
(37)
2004 Jan
(59)
Feb
(78)
Mar
(153)
Apr
(205)
May
(184)
Jun
(123)
Jul
(171)
Aug
(156)
Sep
(190)
Oct
(120)
Nov
(154)
Dec
(223)
2005 Jan
(184)
Feb
(267)
Mar
(214)
Apr
(286)
May
(320)
Jun
(299)
Jul
(348)
Aug
(283)
Sep
(355)
Oct
(293)
Nov
(232)
Dec
(203)
2006 Jan
(352)
Feb
(358)
Mar
(403)
Apr
(313)
May
(165)
Jun
(281)
Jul
(316)
Aug
(228)
Sep
(279)
Oct
(243)
Nov
(315)
Dec
(345)
2007 Jan
(260)
Feb
(323)
Mar
(340)
Apr
(319)
May
(290)
Jun
(296)
Jul
(221)
Aug
(292)
Sep
(242)
Oct
(248)
Nov
(242)
Dec
(332)
2008 Jan
(312)
Feb
(359)
Mar
(454)
Apr
(287)
May
(340)
Jun
(450)
Jul
(403)
Aug
(324)
Sep
(349)
Oct
(385)
Nov
(363)
Dec
(437)
2009 Jan
(500)
Feb
(301)
Mar
(409)
Apr
(486)
May
(545)
Jun
(391)
Jul
(518)
Aug
(497)
Sep
(492)
Oct
(429)
Nov
(357)
Dec
(310)
2010 Jan
(371)
Feb
(657)
Mar
(519)
Apr
(432)
May
(312)
Jun
(416)
Jul
(477)
Aug
(386)
Sep
(419)
Oct
(435)
Nov
(320)
Dec
(202)
2011 Jan
(321)
Feb
(413)
Mar
(299)
Apr
(215)
May
(284)
Jun
(203)
Jul
(207)
Aug
(314)
Sep
(321)
Oct
(259)
Nov
(347)
Dec
(209)
2012 Jan
(322)
Feb
(414)
Mar
(377)
Apr
(179)
May
(173)
Jun
(234)
Jul
(295)
Aug
(239)
Sep
(276)
Oct
(355)
Nov
(144)
Dec
(108)
2013 Jan
(170)
Feb
(89)
Mar
(204)
Apr
(133)
May
(142)
Jun
(89)
Jul
(160)
Aug
(180)
Sep
(69)
Oct
(136)
Nov
(83)
Dec
(32)
2014 Jan
(71)
Feb
(90)
Mar
(161)
Apr
(117)
May
(78)
Jun
(94)
Jul
(60)
Aug
(83)
Sep
(102)
Oct
(132)
Nov
(154)
Dec
(96)
2015 Jan
(45)
Feb
(138)
Mar
(176)
Apr
(132)
May
(119)
Jun
(124)
Jul
(77)
Aug
(31)
Sep
(34)
Oct
(22)
Nov
(23)
Dec
(9)
2016 Jan
(26)
Feb
(17)
Mar
(10)
Apr
(8)
May
(4)
Jun
(8)
Jul
(6)
Aug
(5)
Sep
(9)
Oct
(4)
Nov
Dec
2017 Jan
(5)
Feb
(7)
Mar
(1)
Apr
(5)
May
Jun
(3)
Jul
(6)
Aug
(1)
Sep
Oct
(2)
Nov
(1)
Dec
2018 Jan
Feb
Mar
Apr
(1)
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
2020 Jan
Feb
Mar
Apr
May
(1)
Jun
Jul
Aug
Sep
Oct
Nov
Dec
2025 Jan
(1)
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
S M T W T F S





1
(12)
2
(13)
3
(4)
4
(34)
5
(14)
6
(23)
7
(26)
8
(12)
9
(7)
10
(7)
11
(9)
12
(12)
13
(20)
14
(14)
15
(13)
16
(5)
17
(4)
18
(22)
19
(29)
20
(13)
21
(9)
22
(22)
23
(3)
24
(3)
25
(29)
26
(9)
27
(10)
28
(16)
29
(16)
30
(16)
31
(9)






Showing results of 34

1 2 > >> (Page 1 of 2)
From: Justin M. <jn...@gm...> - 2010年10月04日 21:28:12
On Mon, Oct 4, 2010 at 4:50 PM, Sanjay Kairam <san...@gm...> wrote:
> Hi there,
>
> I'm having a problem installing matplotlib, I'm guessing that I am missing
> some dependency, but I am having trouble figuring out what the issue is (I
>...
> REQUIRED DEPENDENCIES
>         numpy: 1.5.0
>       freetype2: found, but unknown version (no pkg-config)
>             * WARNING: Could not find 'freetype2' headers in any
>             * of '.', './freetype2'.
>...
> /usr/include/AvailabilityMacros.h:108:14: warning: #warning Building for
> Intel with Mac OS X Deployment Target < 10.4 is invalid.
> In file included from src/ft2font.cpp:1:
> src/ft2font.h:14:22: error: ft2build.h: No such file or directory
> src/ft2font.h:15:10: error: #include expects "FILENAME" or <FILENAME>
>...
You're missing the freetype2 library, or the build scripts can't find
it. You can install freetype2 using macports (www.macports.org), or if
you've done that already you can tell the build scripts where to find
it by specifying the PKG_CONFIG_PATH.
PKG_CONFIG_PATH=/opt/local/lib/pkgconfig:/usr/local/lib/pkgconfig:/usr/lib/pkgconfig
python setup.py build
Macports installs into /opt/local by default, so that will tell the
build script to look there first.
Back when I installed everything, the default Python build on OS X was
32-bit, so I compiled a 64-bit Python "framework" version myself. That
may have been fixed already, so you may not want/need to do that. If
you do build your own, don't overwrite the /System/ version; put your
custom version into /Library/Frameworks/Python.framework/ and point to
that for your scripts.
hth,
 Justin
From: Erik T. <eri...@gm...> - 2010年10月04日 21:06:56
You're right - if I just change the surface to be opaque, some of the
scatter points randomly disappear and reappear depending on "camera"
angle.
So how does it decide which points are behind/in front of the surface,
then? I can't figure out any obvious pattern...
And is it possible to use the z-order mechanism to get around this?
(e.g. individually set the z-order of scatter points and the patches
in the surface so that at least very roughly the correct pieces are
rendered in front?)
On Mon, Oct 4, 2010 at 1:04 PM, Benjamin Root <ben...@ou...> wrote:
> On Mon, Oct 4, 2010 at 2:21 PM, Erik Tollerud <eri...@gm...>
> wrote:
>>
>> I've noticed some odd behavior in the mplot3d toolkit when using
>> scatter3D with plot_surface. What I want to do is generate the
>> surface with an alpha level of 0.5, such that any points that are
>> between me and the surface should come out fully opaque, and any
>> points behind the surface should be rendered blended with the surface.
>> Instead, the scattered points are blended with the surface regardless
>> of whether they are in front of it or behind. There's also a weird
>> behavior where, depending on the viewing angle, the points will
>> suddenly snap from fully opaque (even if behind the surface) to
>> transparent. An example is attached, with renderings of the two
>> states in the URLs below.
>>
>> Is this a bug, or am I doing something wrong?
>>
>> http://dl.dropbox.com/u/8683962/mpl3dalpha-1.png
>> http://dl.dropbox.com/u/8683962/mpl3dalpha-2.png
>>
>> --
>> Erik Tollerud
>>
>
> At first glance, I wonder if this is just because of mplot3d's naive
> approach of figuring out what is behind other things. mplot3d doesn't do
> any sort of physics or ray-tracing to figure out how elements are positioned
> relative to the camera. Try it again with perfectly opaque surface and
> dots, and I bet you will have dots "magically" appearing in front of the
> surface at certain viewing angles and then disappearing.
>
> Note, I have only looked at the photos, not the code.
>
> Ben Root
>
>
-- 
Erik Tollerud
From: Nicolas R. <Nic...@lo...> - 2010年10月04日 20:57:52
Thanks. Unfortunately wx and tk backends are broken on my machine (but they may be easier to fix).
I will file a bug report for the native backend bug. 
Nicolas
On Oct 4, 2010, at 22:27 , Friedrich Romstedt wrote:
> 2010年10月4日 Nicolas Rougier <Nic...@lo...>:
>> I'm trying to have animated plots using draw_artist on mac os x and I got an error with the following script:
>> 
>> import numpy as np
>> import matplotlib.pyplot as plt
>> 
>> plt.ion()
>> plt.figure()
>> subplot = plt.subplot(1,1,1)
>> axis = plt.imshow(np.random.random((10,10)))
>> plt.draw()
>> subplot.draw_artist(axis)
>> plt.show()
>> 
>> The traceback is:
>> 
>> Traceback (most recent call last):
>> File "matplotlib-bug.py", line 8, in <module>
>> subplot.draw_artist(axis)
>> File "/Volumes/Data/Local/lib/python2.7/site-packages/matplotlib/axes.py", line 1946, in draw_artist
>> a.draw(self._cachedRenderer)
>> File "/Volumes/Data/Local/lib/python2.7/site-packages/matplotlib/artist.py", line 55, in draw_wrapper
>> draw(artist, renderer, *args, **kwargs)
>> File "/Volumes/Data/Local/lib/python2.7/site-packages/matplotlib/image.py", line 338, in draw
>> gc = renderer.new_gc()
>> File "/Volumes/Data/Local/lib/python2.7/site-packages/matplotlib/backends/backend_macosx.py", line 105, in new_gc
>> self.gc.save()
>> RuntimeError: CGContextRef is NULL
>> 
>> 
>> Is there something wrong in my script (it seems to be working on linux) ?
> 
> I don't know what it is, and it looks like some problem with the
> Mac-native backend, but I believe you can sort it out by just
> switching the backend to e.g. TkAgg.
> 
> Friedrich
From: Sanjay K. <san...@gm...> - 2010年10月04日 20:55:31
Apologies if this is coming to you a second time - I got a bounce message
earlier b/c I wasn't a member.
-Sanjay
On Mon, Oct 4, 2010 at 1:50 PM, Sanjay Kairam <san...@gm...>wrote:
> Hi there,
>
> I'm having a problem installing matplotlib, I'm guessing that I am missing
> some dependency, but I am having trouble figuring out what the issue is (I
> don't have a ton of experience dealing with python libraries and
> troubleshooting install issues).
>
> I'm using Mac OSX 10.6.4 (Snow Leopard)
> I'm trying to install matplotlib 1.0.0, which I downloaded as a tar.gz file
> from the website.
>
> So, hopefully this won't be too annoying, but here is the full output from
> when I try to install the library - it is very possible that I am doing
> something really stupid, so please be nice! *Thanks so much* for any help
> that anyone can provide.
>
> *Terminal Output:*
> dnab434de2:matplotlib-1.0.0 skairam$ python setup.py install
> basedirlist is: []
>
> ============================================================================
> BUILDING MATPLOTLIB
> matplotlib: 1.0.0
> python: 2.6.6 (r266:84374, Aug 31 2010, 11:00:51) [GCC
> 4.0.1 (Apple Inc. build 5493)]
> platform: darwin
>
> REQUIRED DEPENDENCIES
> numpy: 1.5.0
> freetype2: found, but unknown version (no pkg-config)
> * WARNING: Could not find 'freetype2' headers in
> any
> * of '.', './freetype2'.
>
> OPTIONAL BACKEND DEPENDENCIES
> libpng: found, but unknown version (no pkg-config)
> * Could not find 'libpng' headers in any of '.'
> Tkinter: Tkinter: 73770, Tk: 8.4, Tcl: 8.4
> wxPython: no
> * wxPython not found
> Gtk+: no
> * Building for Gtk+ requires pygtk; you must be
> able
> * to "import gtk" in your build/install environment
> Mac OS X native: yes
> Qt: no
> Qt4: no
> Cairo: no
>
> OPTIONAL DATE/TIMEZONE DEPENDENCIES
> datetime: present, version unknown
> dateutil: matplotlib will provide
> pytz: matplotlib will provide
> adding pytz
>
> OPTIONAL USETEX DEPENDENCIES
> dvipng: no
> ghostscript: 8.63
> latex: no
>
> [Edit setup.cfg to suppress the above messages]
>
> ============================================================================
> pymods ['pylab']
> packages ['matplotlib', 'matplotlib.backends',
> 'matplotlib.backends.qt4_editor', 'matplotlib.projections',
> 'matplotlib.testing', 'matplotlib.testing.jpl_units', 'matplotlib.tests',
> 'mpl_toolkits', 'mpl_toolkits.mplot3d', 'mpl_toolkits.axes_grid',
> 'mpl_toolkits.axes_grid1', 'mpl_toolkits.axisartist',
> 'matplotlib.sphinxext', 'matplotlib.numerix', 'matplotlib.numerix.mlab', '
> matplotlib.numerix.ma', 'matplotlib.numerix.linear_algebra',
> 'matplotlib.numerix.random_array', 'matplotlib.numerix.fft',
> 'matplotlib.tri', 'matplotlib.delaunay', 'pytz', 'dateutil',
> 'dateutil/zoneinfo']
> running install
> running build
> running build_py
> copying lib/matplotlib/mpl-data/matplotlibrc ->
> build/lib.macosx-10.3-fat-2.6/matplotlib/mpl-data
> copying lib/matplotlib/mpl-data/matplotlib.conf ->
> build/lib.macosx-10.3-fat-2.6/matplotlib/mpl-data
> running build_ext
> building 'matplotlib.ft2font' extension
> gcc-4.0 -fno-strict-aliasing -fno-common -dynamic -arch ppc -arch i386 -g
> -O2 -DNDEBUG -g -O3 -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API
> -DPYCXX_ISO_CPP_LIB=1
> -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include
> -I.
> -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include/freetype2
> -I./freetype2
> -I/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c
> src/ft2font.cpp -o build/temp.macosx-10.3-fat-2.6/src/ft2font.o
> In file included from /usr/include/architecture/i386/math.h:626,
> from /usr/include/math.h:28,
> from
> /Library/Frameworks/Python.framework/Versions/2.6/include/python2.6/pyport.h:235,
> from
> /Library/Frameworks/Python.framework/Versions/2.6/include/python2.6/Python.h:58,
> from ./CXX/WrapPython.h:61,
> from ./CXX/Extensions.hxx:37,
> from src/ft2font.h:4,
> from src/ft2font.cpp:1:
> /usr/include/AvailabilityMacros.h:108:14: warning: #warning Building for
> Intel with Mac OS X Deployment Target < 10.4 is invalid.
> In file included from src/ft2font.cpp:1:
> src/ft2font.h:14:22: error: ft2build.h: No such file or directory
> src/ft2font.h:15:10: error: #include expects "FILENAME" or <FILENAME>
> src/ft2font.h:16:10: error: #include expects "FILENAME" or <FILENAME>
> src/ft2font.h:17:10: error: #include expects "FILENAME" or <FILENAME>
> src/ft2font.h:18:10: error: #include expects "FILENAME" or <FILENAME>
> src/ft2font.h:19:10: error: #include expects "FILENAME" or <FILENAME>
> In file included from src/ft2font.cpp:1:
> src/ft2font.h:14:22: error: ft2build.h: No such file or directory
> src/ft2font.h:15:10: error: #include expects "FILENAME" or <FILENAME>
> src/ft2font.h:16:10: error: #include expects "FILENAME" or <FILENAME>
> src/ft2font.h:17:10: error: #include expects "FILENAME" or <FILENAME>
> src/ft2font.h:18:10: error: #include expects "FILENAME" or <FILENAME>
> src/ft2font.h:19:10: error: #include expects "FILENAME" or <FILENAME>
> src/ft2font.h:33: error: ‘FT_Bitmap’ has not been declared
> src/ft2font.h:33: error: ‘FT_Int’ has not been declared
> src/ft2font.h:33: error: ‘FT_Int’ has not been declared
> src/ft2font.h:89: error: expected ‘,’ or ‘...’ before ‘&’ token
> src/ft2font.h:89: error: ISO C++ forbids declaration of ‘FT_Face’ with no
> type
> src/ft2font.h:95: error: expected ‘,’ or ‘...’ before ‘&’ token
> src/ft2font.h:95: error: ISO C++ forbids declaration of ‘FT_Face’ with no
> type
> src/ft2font.h:137: error: ‘FT_Face’ does not name a type
> src/ft2font.h:138: error: ‘FT_Matrix’ does not name a type
> src/ft2font.h:139: error: ‘FT_Vector’ does not name a type
> src/ft2font.h:140: error: ‘FT_Error’ does not name a type
> src/ft2font.h:141: error: ‘FT_Glyph’ was not declared in this scope
> src/ft2font.h:141: error: template argument 1 is invalid
> src/ft2font.h:141: error: template argument 2 is invalid
> src/ft2font.h:142: error: ‘FT_Vector’ was not declared in this scope
> src/ft2font.h:142: error: template argument 1 is invalid
> src/ft2font.h:142: error: template argument 2 is invalid
> src/ft2font.h:148: error: ‘FT_BBox’ does not name a type
> src/ft2font.cpp:45: error: ‘FT_Library’ does not name a type
> src/ft2font.cpp:108: error: variable or field ‘draw_bitmap’ declared void
> src/ft2font.cpp:108: error: ‘int FT2Image::draw_bitmap’ is not a static
> member of ‘class FT2Image’
> src/ft2font.cpp:108: error: ‘FT_Bitmap’ was not declared in this scope
> src/ft2font.cpp:108: error: ‘bitmap’ was not declared in this scope
> src/ft2font.cpp:109: error: ‘FT_Int’ was not declared in this scope
> src/ft2font.cpp:110: error: ‘FT_Int’ was not declared in this scope
> src/ft2font.cpp:110: error: initializer expression list treated as compound
> expression
> src/ft2font.cpp:111: error: expected ‘,’ or ‘;’ before ‘{’ token
> src/ft2font.h:33: error: ‘FT_Bitmap’ has not been declared
> src/ft2font.h:33: error: ‘FT_Int’ has not been declared
> src/ft2font.h:33: error: ‘FT_Int’ has not been declared
> src/ft2font.cpp:423: error: expected ‘,’ or ‘...’ before ‘&’ token
> src/ft2font.cpp:423: error: ISO C++ forbids declaration of ‘FT_Face’ with
> no type
> src/ft2font.cpp: In constructor ‘Glyph::Glyph(int)’:
> src/ft2font.cpp:424: error: ‘ind’ was not declared in this scope
> src/ft2font.cpp:428: error: ‘FT_BBox’ was not declared in this scope
> src/ft2font.cpp:428: error: expected `;' before ‘bbox’
> src/ft2font.cpp:429: error: ‘glyph’ was not declared in this scope
> src/ft2font.cpp:429: error: ‘ft_glyph_bbox_subpixels’ was not declared in
> this scope
> src/ft2font.cpp:429: error: ‘bbox’ was not declared in this scope
> src/ft2font.cpp:429: error: ‘FT_Glyph_Get_CBox’ was not declared in this
> scope
> src/ft2font.cpp:431: error: ‘face’ was not declared in this scope
> src/ft2font.cpp:451: error: no matching function for call to
> ‘Glyph::get_path(<type error>)’
> src/ft2font.h:95: note: candidates are: Py::Object Glyph::get_path(int)
> src/ft2font.cpp: At global scope:
> src/ft2font.cpp:483: error: expected ‘,’ or ‘...’ before ‘&’ token
> src/ft2font.cpp:483: error: ISO C++ forbids declaration of ‘FT_Face’ with
> no type
> src/ft2font.cpp: In member function ‘Py::Object Glyph::get_path(int)’:
> src/ft2font.cpp:489: error: ‘FT_Outline’ was not declared in this scope
> src/ft2font.cpp:489: error: ‘outline’ was not declared in this scope
> src/ft2font.cpp:489: error: ‘face’ was not declared in this scope
> src/ft2font.cpp:494: error: ‘FT_Vector’ was not declared in this scope
> src/ft2font.cpp:494: error: expected `;' before ‘v_last’
> src/ft2font.cpp:495: error: expected `;' before ‘v_control’
> src/ft2font.cpp:496: error: expected `;' before ‘v_start’
> src/ft2font.cpp:498: error: ‘point’ was not declared in this scope
> src/ft2font.cpp:499: error: ‘limit’ was not declared in this scope
> src/ft2font.cpp:515: error: ‘v_start’ was not declared in this scope
> src/ft2font.cpp:516: error: ‘v_last’ was not declared in this scope
> src/ft2font.cpp:518: error: ‘v_control’ was not declared in this scope
> src/ft2font.cpp:522: error: ‘FT_CURVE_TAG’ was not declared in this scope
> src/ft2font.cpp:525: error: ‘FT_CURVE_TAG_CUBIC’ was not declared in this
> scope
> src/ft2font.cpp:531: error: ‘FT_CURVE_TAG_CONIC’ was not declared in this
> scope
> src/ft2font.cpp:534: error: ‘FT_CURVE_TAG_ON’ was not declared in this
> scope
> src/ft2font.cpp:574: error: ‘FT_CURVE_TAG_ON’ was not declared in this
> scope
> src/ft2font.cpp:587: error: ‘FT_CURVE_TAG_CONIC’ was not declared in this
> scope
> src/ft2font.cpp:595: error: expected `;' before ‘vec’
> src/ft2font.cpp:596: error: expected `;' before ‘v_middle’
> src/ft2font.cpp:602: error: ‘vec’ was not declared in this scope
> src/ft2font.cpp:626: error: ‘v_middle’ was not declared in this scope
> src/ft2font.cpp:660: error: expected `;' before ‘vec1’
> src/ft2font.cpp:662: error: ‘FT_CURVE_TAG_CUBIC’ was not declared in this
> scope
> src/ft2font.cpp:667: error: ‘vec1’ was not declared in this scope
> src/ft2font.cpp:669: error: ‘vec2’ was not declared in this scope
> src/ft2font.cpp:677: error: expected `;' before ‘vec’
> src/ft2font.cpp:679: error: ‘vec’ was not declared in this scope
> src/ft2font.cpp: In constructor ‘FT2Font::FT2Font(std::string)’:
> src/ft2font.cpp:739: error: ‘_ft2Library’ was not declared in this scope
> src/ft2font.cpp:739: error: ‘face’ was not declared in this scope
> src/ft2font.cpp:739: error: ‘FT_New_Face’ was not declared in this scope
> src/ft2font.cpp:741: error: ‘FT_Err_Unknown_File_Format’ was not declared
> in this scope
> src/ft2font.cpp:748: error: ‘FT_Err_Cannot_Open_Resource’ was not declared
> in this scope
> src/ft2font.cpp:755: error: ‘FT_Err_Invalid_File_Format’ was not declared
> in this scope
> src/ft2font.h:89: error: expected ‘,’ or ‘...’ before ‘&’ token
> src/ft2font.h:89: error: ISO C++ forbids declaration of ‘FT_Face’ with no
> type
> src/ft2font.h:95: error: expected ‘,’ or ‘...’ before ‘&’ token
> src/ft2font.h:95: error: ISO C++ forbids declaration of ‘FT_Face’ with no
> type
> src/ft2font.cpp:772: error: ‘FT_Set_Char_Size’ was not declared in this
> scope
> src/ft2font.cpp:773: error: ‘FT_Matrix’ does not name a type
> src/ft2font.cpp:774: error: ‘transform’ was not declared in this scope
> src/ft2font.cpp:774: error: ‘FT_Set_Transform’ was not declared in this
> scope
> src/ft2font.h:137: error: ‘FT_Face’ does not name a type
> src/ft2font.h:138: error: ‘FT_Matrix’ does not name a type
> src/ft2font.h:139: error: ‘FT_Vector’ does not name a type
> src/ft2font.h:140: error: ‘FT_Error’ does not name a type
> src/ft2font.h:141: error: ‘FT_Glyph’ was not declared in this scope
> src/ft2font.h:141: error: template argument 1 is invalid
> src/ft2font.h:141: error: template argument 2 is invalid
> src/ft2font.h:142: error: ‘FT_Vector’ was not declared in this scope
> src/ft2font.h:142: error: template argument 1 is invalid
> src/ft2font.h:142: error: template argument 2 is invalid
> src/ft2font.h:148: error: ‘FT_BBox’ does not name a type
> src/ft2font.cpp:791: error: ‘FT_Get_Postscript_Name’ was not declared in
> this scope
> src/ft2font.cpp:819: error: ‘FT_IS_SCALABLE’ was not declared in this scope
> src/ft2font.cpp: In destructor ‘virtual FT2Font::~FT2Font()’:
> src/ft2font.cpp:852: error: ‘face’ was not declared in this scope
> src/ft2font.cpp:852: error: ‘FT_Done_Face’ was not declared in this scope
> src/ft2font.cpp:854: error: request for member ‘size’ in
> ‘((FT2Font*)this)->FT2Font::glyphs’, which is of non-class type ‘int’
> src/ft2font.cpp:856: error: invalid types ‘int[size_t]’ for array subscript
> src/ft2font.cpp:856: error: ‘FT_Done_Glyph’ was not declared in this scope
> src/ft2font.cpp:45: error: ‘FT_Library’ does not name a type
> src/ft2font.cpp: In member function ‘Py::Object FT2Font::clear(const
> Py::Tuple&)’:
> src/ft2font.cpp:893: error: ‘pen’ was not declared in this scope
> src/ft2font.cpp:896: error: request for member ‘size’ in
> ‘((FT2Font*)this)->FT2Font::glyphs’, which is of non-class type ‘int’
> src/ft2font.cpp:898: error: invalid types ‘int[size_t]’ for array subscript
> src/ft2font.cpp:898: error: ‘FT_Done_Glyph’ was not declared in this scope
> src/ft2font.cpp:901: error: request for member ‘clear’ in
> ‘((FT2Font*)this)->FT2Font::glyphs’, which is of non-class type ‘int’
> src/ft2font.cpp: In member function ‘Py::Object FT2Font::set_size(const
> Py::Tuple&)’:
> src/ft2font.cpp:925: error: ‘face’ was not declared in this scope
> src/ft2font.cpp:927: error: ‘FT_Set_Char_Size’ was not declared in this
> scope
> src/ft2font.cpp:928: error: ‘FT_Matrix’ does not name a type
> src/ft2font.cpp:929: error: ‘transform’ was not declared in this scope
> src/ft2font.cpp:929: error: ‘FT_Set_Transform’ was not declared in this
> scope
> src/ft2font.cpp:108: error: variable or field ‘draw_bitmap’ declared void
> src/ft2font.cpp:108: error: ‘int FT2Image::draw_bitmap’ is not a static
> member of ‘class FT2Image’
> src/ft2font.cpp:108: error: ‘FT_Bitmap’ was not declared in this scope
> src/ft2font.cpp:108: error: ‘bitmap’ was not declared in this scope
> src/ft2font.cpp:109: error: ‘FT_Int’ was not declared in this scope
> src/ft2font.cpp:110: error: ‘FT_Int’ was not declared in this scope
> src/ft2font.cpp:110: error: initializer expression list treated as compound
> expression
> src/ft2font.cpp:111: error: expected ‘,’ or ‘;’ before ‘{’ token
> src/ft2font.cpp: In member function ‘Py::Object FT2Font::set_charmap(const
> Py::Tuple&)’:
> src/ft2font.cpp:956: error: ‘face’ was not declared in this scope
> src/ft2font.cpp:960: error: ‘FT_CharMap’ was not declared in this scope
> src/ft2font.cpp:960: error: expected `;' before ‘charmap’
> src/ft2font.cpp:961: error: ‘face’ was not declared in this scope
> src/ft2font.cpp:961: error: ‘charmap’ was not declared in this scope
> src/ft2font.cpp:961: error: ‘FT_Set_Charmap’ was not declared in this scope
> src/ft2font.cpp: In member function ‘Py::Object
> FT2Font::select_charmap(const Py::Tuple&)’:
> src/ft2font.cpp:982: error: ‘face’ was not declared in this scope
> src/ft2font.cpp:982: error: ‘FT_Encoding’ was not declared in this scope
> src/ft2font.cpp:982: error: ‘FT_Select_Charmap’ was not declared in this
> scope
> src/ft2font.cpp: At global scope:
> src/ft2font.cpp:989: error: ‘FT_BBox’ does not name a type
> src/ft2font.cpp: In member function ‘Py::Object FT2Font::get_kerning(const
> Py::Tuple&)’:
> src/ft2font.cpp:1048: error: ‘face’ was not declared in this scope
> src/ft2font.cpp:1048: error: ‘FT_HAS_KERNING’ was not declared in this
> scope
> src/ft2font.cpp:1052: error: ‘FT_Vector’ was not declared in this scope
> src/ft2font.cpp:1052: error: expected `;' before ‘delta’
> src/ft2font.cpp:1054: error: ‘face’ was not declared in this scope
> src/ft2font.cpp:1054: error: ‘delta’ was not declared in this scope
> src/ft2font.cpp:1054: error: ‘FT_Get_Kerning’ was not declared in this
> scope
> src/ft2font.cpp: In member function ‘Py::Object FT2Font::set_text(const
> Py::Tuple&, const Py::Dict&)’:
> src/ft2font.cpp:1100: error: ‘FT_LOAD_FORCE_AUTOHINT’ was not declared in
> this scope
> src/ft2font.cpp:1107: error: ‘matrix’ was not declared in this scope
> src/ft2font.cpp:1107: error: ‘FT_Fixed’ was not declared in this scope
> src/ft2font.cpp:1112: error: ‘FT_Bool’ was not declared in this scope
> src/ft2font.cpp:1112: error: expected `;' before ‘use_kerning’
> src/ft2font.cpp:1113: error: ‘FT_UInt’ was not declared in this scope
> src/ft2font.cpp:1113: error: expected `;' before ‘previous’
> src/ft2font.cpp:1115: error: request for member ‘resize’ in
> ‘((FT2Font*)this)->FT2Font::glyphs’, which is of non-class type ‘int’
> src/ft2font.cpp:1116: error: ‘pen’ was not declared in this scope
> src/ft2font.cpp:1123: error: expected `;' before ‘glyph_index’
> src/ft2font.cpp:1130: error: ‘glyph_index’ was not declared in this scope
> src/ft2font.cpp:1130: error: ‘face’ was not declared in this scope
> src/ft2font.cpp:1130: error: ‘FT_Get_Char_Index’ was not declared in this
> scope
> src/ft2font.cpp:1135: error: ‘glyph_index’ was not declared in this scope
> src/ft2font.cpp:1135: error: ‘face’ was not declared in this scope
> src/ft2font.cpp:1135: error: ‘FT_Get_Char_Index’ was not declared in this
> scope
> src/ft2font.cpp:1139: error: ‘use_kerning’ was not declared in this scope
> src/ft2font.cpp:1139: error: ‘previous’ was not declared in this scope
> src/ft2font.cpp:1139: error: ‘glyph_index’ was not declared in this scope
> src/ft2font.cpp:1141: error: ‘FT_Vector’ was not declared in this scope
> src/ft2font.cpp:1141: error: expected `;' before ‘delta’
> src/ft2font.cpp:1142: error: ‘face’ was not declared in this scope
> src/ft2font.cpp:1143: error: ‘FT_KERNING_DEFAULT’ was not declared in this
> scope
> src/ft2font.cpp:1143: error: ‘delta’ was not declared in this scope
> src/ft2font.cpp:1143: error: ‘FT_Get_Kerning’ was not declared in this
> scope
> src/ft2font.cpp:1146: error: ‘error’ was not declared in this scope
> src/ft2font.cpp:1146: error: ‘face’ was not declared in this scope
> src/ft2font.cpp:1146: error: ‘glyph_index’ was not declared in this scope
> src/ft2font.cpp:1146: error: ‘FT_Load_Glyph’ was not declared in this scope
> src/ft2font.cpp:1156: error: ‘FT_Glyph’ was not declared in this scope
> src/ft2font.cpp:1156: error: expected `;' before ‘thisGlyph’
> src/ft2font.cpp:1157: error: ‘thisGlyph’ was not declared in this scope
> src/ft2font.cpp:1157: error: ‘FT_Get_Glyph’ was not declared in this scope
> src/ft2font.cpp:1166: error: ‘FT_Glyph_Transform’ was not declared in this
> scope
> src/ft2font.cpp:423: error: expected ‘,’ or ‘...’ before ‘&’ token
> src/ft2font.cpp:423: error: ISO C++ forbids declaration of ‘FT_Face’ with
> no type
> src/ft2font.cpp:1173: error: ‘previous’ was not declared in this scope
> src/ft2font.cpp: In constructor ‘Glyph::Glyph(int)’:
> src/ft2font.cpp:424: error: ‘ind’ was not declared in this scope
> src/ft2font.cpp:1174: error: request for member ‘push_back’ in
> ‘((FT2Font*)this)->FT2Font::glyphs’, which is of non-class type ‘int’
> src/ft2font.cpp:1178: error: request for member ‘size’ in
> ‘((FT2Font*)this)->FT2Font::glyphs’, which is of non-class type ‘int’
> src/ft2font.cpp:1180: error: invalid types ‘int[unsigned int]’ for array
> subscript
> src/ft2font.cpp:1180: error: ‘FT_Glyph_Transform’ was not declared in this
> scope
> src/ft2font.cpp:428: error: ‘FT_BBox’ was not declared in this scope
> src/ft2font.cpp:428: error: expected `;' before ‘bbox’
> src/ft2font.cpp:429: error: ‘glyph’ was not declared in this scope
> src/ft2font.cpp:429: error: ‘ft_glyph_bbox_subpixels’ was not declared in
> this scope
> src/ft2font.cpp:429: error: ‘bbox’ was not declared in this scope
> src/ft2font.cpp:429: error: ‘FT_Glyph_Get_CBox’ was not declared in this
> scope
> src/ft2font.cpp:431: error: ‘face’ was not declared in this scope
> src/ft2font.cpp:451: error: no matching function for call to
> ‘Glyph::get_path(<type error>)’
> src/ft2font.h:95: note: candidates are: Py::Object Glyph::get_path(int)
> src/ft2font.cpp: In member function ‘Py::Object
> FT2Font::get_num_glyphs(const Py::Tuple&)’:
> src/ft2font.cpp:1198: error: request for member ‘size’ in
> ‘((FT2Font*)this)->FT2Font::glyphs’, which is of non-class type ‘int’
> src/ft2font.cpp: In member function ‘Py::Object FT2Font::load_char(const
> Py::Tuple&, const Py::Dict&)’:
> src/ft2font.cpp:1224: error: ‘FT_LOAD_FORCE_AUTOHINT’ was not declared in
> this scope
> src/ft2font.cpp:1230: error: ‘face’ was not declared in this scope
> src/ft2font.cpp:1230: error: ‘FT_Load_Char’ was not declared in this scope
> src/ft2font.cpp:1237: error: ‘FT_Glyph’ was not declared in this scope
> src/ft2font.cpp:1237: error: expected `;' before ‘thisGlyph’
> src/ft2font.cpp:1238: error: ‘thisGlyph’ was not declared in this scope
> src/ft2font.cpp:1238: error: ‘FT_Get_Glyph’ was not declared in this scope
> src/ft2font.cpp:1245: error: request for member ‘size’ in
> ‘((FT2Font*)this)->FT2Font::glyphs’, which is of non-class type ‘int’
> src/ft2font.cpp:1246: error: request for member ‘push_back’ in
> ‘((FT2Font*)this)->FT2Font::glyphs’, which is of non-class type ‘int’
> src/ft2font.cpp:1247: error: no matching function for call to
> ‘Glyph::Glyph(<type error>, <type error>, size_t&)’
> src/ft2font.cpp:423: note: candidates are: Glyph::Glyph(int)
> src/ft2font.h:87: note: Glyph::Glyph(const Glyph&)
> src/ft2font.cpp: In member function ‘Py::Object FT2Font::load_glyph(const
> Py::Tuple&, const Py::Dict&)’:
> src/ft2font.cpp:1275: error: ‘FT_LOAD_FORCE_AUTOHINT’ was not declared in
> this scope
> src/ft2font.cpp:1281: error: ‘face’ was not declared in this scope
> src/ft2font.cpp:1281: error: ‘FT_Load_Glyph’ was not declared in this scope
> src/ft2font.cpp: At global scope:
> src/ft2font.cpp:483: error: expected ‘,’ or ‘...’ before ‘&’ token
> src/ft2font.cpp:1288: error: ‘FT_Glyph’ was not declared in this scope
> src/ft2font.cpp:483: error: ISO C++ forbids declaration of ‘FT_Face’ with
> no type
> src/ft2font.cpp:1288: error: expected `;' before ‘thisGlyph’
> src/ft2font.cpp:1289: error: ‘thisGlyph’ was not declared in this scope
> src/ft2font.cpp:1289: error: ‘FT_Get_Glyph’ was not declared in this scope
> src/ft2font.cpp: In member function ‘Py::Object Glyph::get_path(int)’:
> src/ft2font.cpp:489: error: ‘FT_Outline’ was not declared in this scope
> src/ft2font.cpp:489: error: ‘outline’ was not declared in this scope
> src/ft2font.cpp:489: error: ‘face’ was not declared in this scope
> src/ft2font.cpp:1296: error: request for member ‘size’ in
> ‘((FT2Font*)this)->FT2Font::glyphs’, which is of non-class type
> ‘int’src/ft2font.cpp:494: error: ‘FT_Vector’ was not declared in this scope
>
> src/ft2fsrc/ft2font.cpp:1297: error: request for member ‘push_back’ in
> ‘((FT2Font*)this)->FT2Font::glyphs’, which is of non-class type ‘int’
> src/ft2font.cpp:1298: error: no matching function for call to
> ‘Glyph::Glyph(<type error>, <type error>, size_t&)’
> src/ft2font.cpp:423: note: candidates are: Glyph::Glyph(int)
> src/ft2font.h:87: note: Glyph::Glyph(const Glyph&)
> ont.cpp:494: error: expected `;' before ‘v_last’
> src/ft2font.cpp:495: error: expected `;' before ‘v_control’
> src/ft2font.cpp:496: error: expected `;' before ‘v_start’
> src/ft2font.cpp:498: error: ‘point’ was not declared in this scope
> src/ft2font.cpp:499: error: ‘limit’ was not declared in this scope
> src/ft2font.cpp:515: error: ‘v_start’ was not declared in this scope
> src/ft2font.cpp:516: error: ‘v_last’ was not declared in this scope
> src/ft2font.cpp:518: error: ‘v_control’ was not declared in this scope
> src/ft2font.cpp:522: error: ‘FT_CURVE_TAG’ was not declared in this scope
> ssrc/ft2font.cpp: In member function ‘Py::Object
> FT2Font::get_width_height(const Py::Tuple&)’:
> src/ft2font.cpp:1316: error: ‘FT_BBox’ was not declared in this scope
> src/ft2font.cpp:1316: error: expected `;' before ‘bbox’
> src/ft2font.cpp:1319: error: ‘bbox’ was not declared in this scope
> rc/ft2font.cpp:525: error: ‘FT_CURVE_TAG_CUBIC’ was not declared in this
> scope
> src/ft2font.cpp:531: error: ‘FT_CURVE_TAG_CONIC’ was not declared in this
> scopesrc/ft2font.cpp: In member function ‘Py::Object
> FT2Font::get_descent(const Py::Tuple&)’:
> src/ft2font.cpp:1337: error: ‘FT_BBox’ was not declared in this scope
>
> src/ft2font.cpp:1337: error: expected `;' before ‘bbox’
> src/ft2font.cpp:534: error: ‘FT_CURVE_TAG_ON’ was not declared in this
> scope
> src/ft2font.cpp:1338: error: ‘bbox’ was not declared in this scope
> src/ft2font.cpp: In member function ‘Py::Object
> FT2Font::draw_glyphs_to_bitmap(const Py::Tuple&)’:
> src/ft2font.cpp:1354: error: ‘FT_BBox’ was not declared in this scope
> src/ft2font.cpp:1354: error: expected `;' before ‘string_bbox’
> src/ft2font.cpp:1355: error: ‘string_bbox’ was not declared in this scope
> src/ft2font.cpp:1362: error: request for member ‘size’ in
> ‘((FT2Font*)this)->FT2Font::glyphs’, which is of non-class type ‘int’
> src/ft2font.cpp:1364: error: expected `;' before ‘bbox’
> src/ft2font.cpp:1365: error: invalid types ‘int[size_t]’ for array
> subscript
> src/ft2font.cpp:1365: error: ‘ft_glyph_bbox_pixels’ was not declared in
> this scope
> src/ft2font.cpp:1365: error: ‘bbox’ was not declared in this scope
> src/ft2font.cpp:1365: error: ‘FT_Glyph_Get_CBox’ was not declared in this
> scope
> src/ft2font.cpp:1367: error: ‘error’ was not declared in this scope
> src/ft2font.cpp:1367: error: invalid types ‘int[size_t]’ for array
> subscript
> src/ft2font.cpp:1368: error: ‘ft_render_mode_normal’ was not declared in
> this scope
> src/ft2font.cpp:1371: error: ‘FT_Glyph_To_Bitmap’ was not declared in this
> scope
> src/ft2font.cpp:1377: error: ‘FT_BitmapGlyph’ was not declared in this
> scope
> src/ft2font.cpp:1377: error: expected `;' before ‘bitmap’
> src/ft2font.cpp:1381: error: ‘FT_Int’ was not declared in this scope
> src/ft2font.cpp:1381: error: expected `;' before ‘x’
> src/ft2font.cpp:1382: error: expected `;' before ‘y’
> src/ft2font.cpp:1384: error: ‘bitmap’ was not declared in this scope
> src/ft2font.cpp:1384: error: ‘x’ was not declared in this scope
> src/ft2font.cpp:1384: error: ‘y’ was not declared in this scope
> src/ft2font.cpp: In member function ‘Py::Object FT2Font::get_xys(const
> Py::Tuple&)’:
> src/ft2font.cpp:1403: error: ‘FT_BBox’ was not declared in this scope
> src/ft2font.cpp:1403: error: expected `;' before ‘string_bbox’
> src/ft2font.cpp:574: error: ‘FT_CURVE_TAG_ON’ was not declared in this
> scope
> src/ft2font.cpp:1404: error: request for member ‘size’ in
> ‘((FT2Font*)this)->FT2Font::glyphs’, which is of non-class type ‘int’
> src/ft2font.cpp:1406: error: request for member ‘size’ in
> ‘((FT2Font*)this)->FT2Font::glyphs’, which is of non-class type ‘int’
> src/ft2font.cpp:1409: error: expected `;' before ‘bbox’
> src/ft2font.cpp:1410: error: invalid types ‘int[size_t]’ for array
> subscript
> src/ft2font.cpp:1410: error: ‘ft_glyph_bbox_pixels’ was not declared in
> this scope
> src/ft2font.cpp:1410: error: ‘bbox’ was not declared in this scope
> src/ft2font.cpp:1410: error: ‘FT_Glyph_Get_CBox’ was not declared in this
> scope
> src/ft2font.cpp:1412: error: ‘error’ was not declared in this scope
> src/ft2font.cpp:1412: error: invalid types ‘int[size_t]’ for array
> subscript
> src/ft2font.cpp:1413: error: ‘ft_render_mode_normal’ was not declared in
> this scope
> src/ft2font.cpp:1416: error: ‘FT_Glyph_To_Bitmap’ was not declared in this
> scope
> src/ft2font.cpp:1422: error: ‘FT_BitmapGlyph’ was not declared in this
> scope
> src/ft2font.cpp:1422: error: expected `;' before ‘bitmap’
> src/ft2font.cpp:1426: error: ‘FT_Int’ was not declared in this scope
> src/ft2font.cpp:587: error: ‘FT_CURVE_TAG_CONIC’ was not declared in this
> scope
> src/ft2font.cpp:1426: error: expected `;' before ‘x’
> src/ft2font.cpp:1427: error: expected `;' before ‘y’
> src/ft2font.cpp:595: error: expected `;' before ‘vec’
> src/ft2font.cpp:1429: error: ‘x’ was not declared in this scope
> src/ft2font.cpp:596: error: expected `;' before ‘v_middle’
> src/ft2font.cpp:1430: error: ‘y’ was not declared in this scope
> src/ft2font.cpp:602: error: ‘vec’ was not declared in this scope
> src/ft2font.cpp:626: error: ‘v_middle’ was not declared in this scope
> src/ft2font.cpp: In member function ‘Py::Object
> FT2Font::draw_glyph_to_bitmap(const Py::Tuple&)’:
> src/ft2font.cpp:1468: error: ‘FT_Vector’ was not declared in this scope
> src/ft2font.cpp:1468: error: expected `;' before ‘sub_offset’
> src/ft2font.cpp:1469: error: ‘sub_offset’ was not declared in this scope
> src/ft2font.cpp:1478: error: request for member ‘size’ in
> ‘((FT2Font*)this)->FT2Font::glyphs’, which is of non-class type ‘int’
> src/ft2font.cpp:1483: error: ‘error’ was not declared in this scope
> src/ft2font.cpp:1483: error: invalid types ‘int[size_t]’ for array
> subscript
> src/ft2font.cpp:1484: error: ‘ft_render_mode_normal’ was not declared in
> this scope
> src/ft2font.cpp:1487: error: ‘FT_Glyph_To_Bitmap’ was not declared in this
> scope
> src/ft2font.cpp:1493: error: ‘FT_BitmapGlyph’ was not declared in this
> scope
> src/ft2font.cpp:1493: error: expected `;' before ‘bitmap’
> src/ft2font.cpp:1495: error: ‘bitmap’ was not declared in this scope
> src/ft2font.cpp:660: error: expected `;' before ‘vec1’
> src/ft2font.cpp:662: error: ‘FT_CURVE_TAG_CUBIC’ was not declared in this
> scope
> src/ft2font.cpp:667: error: ‘vec1’ was not declared in this scope
> src/ft2font.cpp:669: error: ‘vec2’ was not declared in this scope
> src/ft2font.cpp:677: error: expected `;' before ‘vec’
> src/ft2font.cpp:679: error: ‘vec’ was not declared in this scope
> src/ft2font.cpp: In member function ‘Py::Object
> FT2Font::get_glyph_name(const Py::Tuple&)’:
> src/ft2font.cpp:1510: error: ‘face’ was not declared in this scope
> src/ft2font.cpp:1510: error: ‘FT_HAS_GLYPH_NAMES’ was not declared in this
> scope
> src/ft2font.cpp:1516: error: ‘face’ was not declared in this scope
> src/ft2font.cpp:1516: error: ‘FT_UInt’ was not declared in this scope
> src/ft2font.cpp:1516: error: ‘FT_Get_Glyph_Name’ was not declared in this
> scope
> src/ft2font.cpp: In member function ‘Py::Object FT2Font::get_charmap(const
> Py::Tuple&)’:
> src/ft2font.cpp:1535: error: ‘FT_UInt’ was not declared in this scope
> src/ft2font.cpp:1535: error: expected `;' before ‘index’
> src/ft2font.cpp:1539: error: ‘FT_ULong’ was not declared in this scope
> src/ft2font.cpp:1539: error: expected `;' before ‘code’
> src/ft2font.cpp:1542: error: ‘code’ was not declared in this scope
> src/ft2font.cpp:1543: error: ‘face’ was not declared in this scope
> src/ft2font.cpp:1543: error: ‘FT_Get_Next_Char’ was not declared in this
> scope
> src/ft2font.cpp: In member function ‘Py::Object FT2Font::get_sfnt(const
> Py::Tuple&)’:
> src/ft2font.cpp:1612: error: ‘face’ was not declared in this scope
> src/ft2font.cpp:1612: error: ‘FT_FACE_FLAG_SFNT’ was not declared in this
> scope
> src/ft2font.cpp:1617: error: ‘face’ was not declared in this scope
> src/ft2font.cpp:1617: error: ‘FT_Get_Sfnt_Name_Count’ was not declared in
> this scope
> src/ft2font.cpp:1622: error: ‘FT_SfntName’ was not declared in this scope
> src/ft2font.cpp:1622: error: expected `;' before ‘sfnt’
> src/ft2font.cpp:1623: error: ‘FT_Error’ was not declared in this scope
> src/ft2font.cpp:1623: error: expected `;' before ‘error’
> src/ft2font.cpp:1625: error: ‘error’ was not declared in this scope
> src/ft2font.cpp:1631: error: ‘sfnt’ was not declared in this scope
> src/ft2font.cpp: In constructor ‘FT2Font::FT2Font(std::string)’:
> src/ft2font.cpp:739: error: ‘_ft2Library’ was not declared in this scope
> src/ft2font.cpp:739: error: ‘face’ was not declared in this scope
> src/ft2font.cpp:739: error: ‘FT_New_Face’ was not declared in this scope
> src/ft2font.cpp:741: error: ‘FT_Err_Unknown_File_Format’ was not declared
> in this scope
> src/ft2font.cpp:748: error: ‘FT_Err_Cannot_Open_Resource’ was not declared
> in this scope
> src/ft2font.cpp: In member function ‘Py::Object
> FT2Font::get_name_index(const Py::Tuple&)’:
> src/ft2font.cpp:1655: error: ‘face’ was not declared in this scope
> src/ft2font.cpp:1655: error: ‘FT_String’ was not declared in this scope
> src/ft2font.cpp:1655: error: ‘FT_Get_Name_Index’ was not declared in this
> scope
> src/ft2font.cpp:1654: error: expected primary-expression before ‘(’ token
> src/ft2font.cpp:1654: error: expected primary-expression before ‘long’
> src/ft2font.cpp:1654: error: expected `)' before ‘long’
> src/ft2font.cpp: In member function ‘Py::Object
> FT2Font::get_ps_font_info(const Py::Tuple&)’:
> src/ft2font.cpp:1668: error: ‘PS_FontInfoRec’ was not declared in this
> scope
> src/ft2font.cpp:1668: error: expected `;' before ‘fontinfo’
> src/ft2font.cpp:1670: error: ‘FT_Error’ was not declared in this scope
> src/ft2font.cpp:1670: error: expected `;' before ‘error’
> src/ft2font.cpp:1671: error: ‘error’ was not declared in this scope
> src/ft2font.cpp:755:src/ft2font.cpp:1678: error: ‘fontinfo’ was not
> declared in this scope
> error: ‘FT_Err_Invalid_File_Format’ was not declared in this scope
> src/ft2font.cpp: In member function ‘Py::Object
> FT2Font::get_sfnt_table(const Py::Tuple&)’:
> src/ft2font.cpp:1716: error: ‘face’ was not declared in this scope
> src/ft2font.cpp:1716: error: ‘FT_Sfnt_Tag’ was not declared in this scope
> src/ft2font.cpp:1716: error: ‘FT_Get_Sfnt_Table’ was not declared in this
> scope
> src/ft2font.cpp:1728: error: ‘TT_Header’ was not declared in this scope
> src/ft2font.cpp:1728: error: ‘t’ was not declared in this scope
> src/ft2font.cpp:1728: error: expected primary-expression before ‘)’ token
> src/ft2font.cpp:1728: error: expected `;' before ‘table’
> src/ft2font.cpp:1756: error: ‘TT_MaxProfile’ was not declared in this scope
> src/ft2font.cpp:1756: error: ‘t’ was not declared in this scope
> src/ft2font.cpp:1756: error: expected primary-expression before ‘)’ token
> src/ft2font.cpp:1756: error: expected `;' before ‘table’
> src/ft2font.cpp:772: error: ‘FT_Set_Char_Size’ was not declared in this
> scope
> src/ft2font.cpp:773: error: ‘FT_Matrix’ does not name a type
> src/ft2font.cpp:1787: error: ‘TT_OS2’ was not declared in this scope
> src/ft2font.cpp:1787: error: ‘t’ was not declared in this scope
> src/ft2font.cpp:1787: error: expected primary-expression before ‘)’ token
> src/ft2font.cpp:1787: error: expected `;' before ‘table’
> src/ft2font.cpp:774: error: ‘transform’ was not declared in this scope
> src/ft2font.cpp:774: error: ‘FT_Set_Transform’ was not declared in this
> scope
> src/ft2font.cpp:1820: error: ‘TT_HoriHeader’ was not declared in this scope
> src/ft2font.cpp:1820: error: ‘t’ was not declared in this scope
> src/ft2font.cpp:1820: error: expected primary-expression before ‘)’ token
> src/ft2font.cpp:1820: error: expected `;' before ‘table’
> src/ft2font.cpp:1843: error: ‘TT_VertHeader’ was not declared in this scope
> src/ft2font.cpp:1843: error: ‘t’ was not declared in this scope
> src/ft2font.cpp:1843: error: expected primary-expression before ‘)’ token
> src/ft2font.cpp:1843: error: expected `;' before ‘table’
> src/ft2font.cpp:1864: error: ‘TT_Postscript’ was not declared in this scope
> src/ft2font.cpp:1864: error: ‘t’ was not declared in this scope
> src/ft2font.cpp:1864: error: expected primary-expression before ‘)’ token
> src/ft2font.cpp:1864: error: expected `;' before ‘table’
> src/ft2font.cpp:791: error: ‘FT_Get_Postscript_Name’ was not declared in
> this scope
> src/ft2font.cpp:819: error: ‘FT_IS_SCALABLE’ was not declared in this scope
> src/ft2font.cpp:1884: error: ‘TT_PCLT’ was not declared in this scope
> src/ft2font.cpp:1884: error: ‘t’ was not declared in this scope
> src/ft2font.cpp:1884: error: expected primary-expression before ‘)’ token
> src/ft2font.cpp:1884: error: expected `;' before ‘table’
> src/ft2font.cpp: In destructor ‘virtual FT2Font::~FT2Font()’:
> src/ft2font.cpp:852: error: ‘face’ was not declared in this scope
> src/ft2font.cpp:852: error: ‘FT_Done_Face’ was not declared in this scope
> src/ft2font.cpp:854: error: request for member ‘size’ in
> ‘((FT2Font*)this)->FT2Font::glyphs’, which is of non-class type ‘int’
> src/ft2font.cpp:856: error: invalid types ‘int[size_t]’ for array subscript
> src/ft2font.cpp:856: error: ‘FT_Done_Glyph’ was not declared in this scope
> src/ft2font.cpp: In member function ‘Py::Object FT2Font::attach_file(const
> Py::Tuple&)’:
> src/ft2font.cpp:1939: error: ‘FT_Error’ was not declared in this scope
> src/ft2font.cpp:1939: error: expected `;' before ‘error’
> src/ft2font.cpp:1941: error: ‘error’ was not declared in this scope
> src/ft2font.cpp: In member function ‘Py::Object FT2Font::clear(const
> Py::Tuple&)’:
> src/ft2font.cpp:893: error: ‘pen’ was not declared in this scope
> src/ft2font.cpp:896: error: request for member ‘size’ in
> ‘((FT2Font*)this)->FT2Font::glyphs’, which is of non-class type ‘int’
> src/ft2font.cpp:898: error: invalid types ‘int[size_t]’ for array subscript
> src/ft2font.cpp:898: error: ‘FT_Done_Glyph’ was not declared in this scope
> src/ft2font.cpp:901: error: request for member ‘clear’ in
> ‘((FT2Font*)this)->FT2Font::glyphs’, which is of non-class type ‘int’
> src/ft2font.cpp: In member function ‘Py::Object FT2Font::set_size(const
> Py::Tuple&)’:
> src/ft2font.cpp:925: error: ‘face’ was not declared in this scope
> src/ft2font.cpp:927: error: ‘FT_Set_Char_Size’ was not declared in this
> scope
> src/ft2font.cpp:928: error: ‘FT_Matrix’ does not name a type
> src/ft2font.cpp:929: error: ‘transform’ was not declared in this scope
> src/ft2font.cpp:929: error: ‘FT_Set_Transform’ was not declared in this
> scope
> src/ft2font.cpp: In member function ‘Py::Object FT2Font::set_charmap(const
> Py::Tuple&)’:
> src/ft2font.cpp:956: error: ‘face’ was not declared in this scope
> src/ft2font.cpp:960: error: ‘FT_CharMap’ was not declared in this scope
> src/ft2font.cpp:960: error: expected `;' before ‘charmap’
> src/ft2font.cpp:961: error: ‘face’ was not declared in this scope
> src/ft2font.cpp:961: error: ‘charmap’ was not declared in this scope
> src/ft2font.cpp:961: error: ‘FT_Set_Charmap’ was not declared in this scope
> src/ft2font.cpp: In function ‘void initft2font()’:
> src/ft2font.cpp:2133: error: ‘FT_FACE_FLAG_SCALABLE’ was not declared in
> this scope
> src/ft2font.cpp:2134: error: ‘FT_FACE_FLAG_FIXED_SIZES’ was not declared in
> this scope
> src/ft2font.cpp:2135: error: ‘FT_FACE_FLAG_FIXED_WIDTH’ was not declared in
> this scope
> src/ft2font.cpp:2136: error: ‘FT_FACE_FLAG_SFNT’ was not declared in this
> scope
> src/ft2font.cpp:2137: error: ‘FT_FACE_FLAG_HORIZONTAL’ was not declared in
> this scope
> src/ft2font.cpp: In member function ‘Py::Object
> FT2Font::select_charmap(const Py::Tuple&)’:
> src/ft2font.cpp:982: error: ‘face’ was not declared in this scope
> src/ft2font.cpp:2139: error: ‘FT_FACE_FLAG_KERNING’ was not declared in
> this scope
> src/ft2font.cpp:982: error: ‘FT_Encoding’ was not declared in this scope
> src/ft2font.cpp:982: error: ‘FT_Select_Charmap’ was not declared in this
> scope
> src/ft2font.cpp:2140: error: ‘FT_FACE_FLAG_FAST_GLYPHS’ was not declared in
> this scope
> src/ft2fosrc/ft2font.cpp: At global scope:
> src/ft2font.cpp:989: error: ‘FT_BBox’ does not name a type
> nt.cpp:2141: error: ‘FT_FACE_FLAG_MULTIPLE_MASTERS’ was not declared in
> this scope
> src/ft2font.cpp: In member function ‘Py::Object FT2Font::get_kerning(const
> Py::Tuple&)’:
> src/ft2font.cpp:1048: error: ‘face’ was not declared in this scope
> src/ft2font.cpp:1048: error: ‘FT_HAS_KERNING’ was not declared in this
> scope
> src/ft2font.cpp:2142: error: ‘FT_FACE_FLAG_GLYPH_NAMES’ was not declared in
> this scope
> src/ft2font.cpp:1052: error: ‘FT_Vector’ was not declared in this scope
> src/ft2font.cpp:1052: error: expected `;' before ‘delta’
> src/ft2font.cpp:1054: error: ‘face’ was not declared in this scope
> src/ft2font.cpp:2143: error: ‘FT_FACE_FLAG_EXTERNAL_STREAM’ was not
> declared in this scope
> src/ft2font.cpp:1054: error: ‘delta’ was not declared in this scope
> src/ft2font.cpp:1054: error: ‘FT_Get_Kerning’ was not declared in this
> scope
> src/ft2font.cpp:2144: error: ‘FT_STYLE_FLAG_ITALIC’ was not declared in
> this scope
> src/ft2font.cpp:2145: error: ‘FT_STYLE_FLAG_BOLD’ was not declared in this
> scope
> src/ft2font.cpp:2146: error: ‘FT_KERNING_DEFAULT’ was not declared in this
> scope
> src/ft2font.cpp:2147: error: ‘FT_KERNING_UNFITTED’ was not declared in this
> scope
> src/ft2font.cpp:2148: error: ‘FT_KERNING_UNSCALED’ was not declared in this
> scope
> src/ft2font.cpp:2150: error: ‘FT_LOAD_DEFAULT’ was not declared in this
> scope
> src/ft2font.cpp: In member function ‘Py::Object FT2Font::set_text(const
> Py::Tuple&, const Py::Dict&)’:
> src/ft2font.cpp:1100: error: ‘FT_LOAD_FORCE_AUTOHINT’ was not declared in
> this scope
> src/ft2font.cpp:1107: error: ‘matrix’ was not declared in this scope
> src/ft2font.cpp:1107: error: ‘FT_Fixed’ was not declared in this scope
> src/ft2font.cpp:1112: error: ‘FT_Bool’ was not declared in this scope
> src/ft2font.cpp:1112: error: expected `;' before ‘use_kerning’
> src/ft2font.cpp:1113: error: ‘FT_UInt’ was not declared in this scope
> src/ft2font.cpp:1113: error: expected `;' before ‘previous’
> src/ft2font.cpp:1115: error: request for member ‘resize’ in
> ‘((FT2Font*)this)->FT2Font::glyphs’, which is of non-class type ‘int’
> src/ft2font.cpp:1116: error: ‘pen’ was not declared in this scope
> src/ft2font.cpp:1123: error: expected `;' before ‘glyph_index’
> src/ft2font.cpp:1130: error: ‘glyph_index’ was not declared in this scope
> src/ft2font.cpp:1130: error: ‘face’ was not declared in this scope
> src/ft2font.cpp:1130: error: ‘FT_Get_Char_Index’ was not declared in this
> scope
> src/ft2font.cpp:1135: error: ‘glyph_index’ was not declared in this scope
> src/ft2font.cpp:1135: error: ‘face’ was not declared in this scope
> src/ft2font.cpp:1135: error: ‘FT_Get_Char_Index’ was not declared in this
> scope
> src/ft2font.cpp:1139: error: ‘use_kerning’ was not declared in this scope
> src/ft2font.cpp:1139: error: ‘previous’ was not declared in this scope
> src/ft2font.cpp:1139: error: ‘glyph_index’ was not declared in this scope
> src/ft2font.cpp:1141: error: ‘FT_Vector’ was not declared in this scope
> src/ft2font.cpp:1141: error: expected `;' before ‘delta’
> src/ft2font.cpp:1142: error: ‘face
From: Sanjay K. <san...@gm...> - 2010年10月04日 20:50:16
Hi there,
I'm having a problem installing matplotlib, I'm guessing that I am missing
some dependency, but I am having trouble figuring out what the issue is (I
don't have a ton of experience dealing with python libraries and
troubleshooting install issues).
I'm using Mac OSX 10.6.4 (Snow Leopard)
I'm trying to install matplotlib 1.0.0, which I downloaded as a tar.gz file
from the website.
So, hopefully this won't be too annoying, but here is the full output from
when I try to install the library - it is very possible that I am doing
something really stupid, so please be nice! *Thanks so much* for any help
that anyone can provide.
*Terminal Output:*
dnab434de2:matplotlib-1.0.0 skairam$ python setup.py install
basedirlist is: []
============================================================================
BUILDING MATPLOTLIB
 matplotlib: 1.0.0
 python: 2.6.6 (r266:84374, Aug 31 2010, 11:00:51) [GCC
 4.0.1 (Apple Inc. build 5493)]
 platform: darwin
REQUIRED DEPENDENCIES
 numpy: 1.5.0
 freetype2: found, but unknown version (no pkg-config)
 * WARNING: Could not find 'freetype2' headers in any
 * of '.', './freetype2'.
OPTIONAL BACKEND DEPENDENCIES
 libpng: found, but unknown version (no pkg-config)
 * Could not find 'libpng' headers in any of '.'
 Tkinter: Tkinter: 73770, Tk: 8.4, Tcl: 8.4
 wxPython: no
 * wxPython not found
 Gtk+: no
 * Building for Gtk+ requires pygtk; you must be able
 * to "import gtk" in your build/install environment
 Mac OS X native: yes
 Qt: no
 Qt4: no
 Cairo: no
OPTIONAL DATE/TIMEZONE DEPENDENCIES
 datetime: present, version unknown
 dateutil: matplotlib will provide
 pytz: matplotlib will provide
adding pytz
OPTIONAL USETEX DEPENDENCIES
 dvipng: no
 ghostscript: 8.63
 latex: no
[Edit setup.cfg to suppress the above messages]
============================================================================
pymods ['pylab']
packages ['matplotlib', 'matplotlib.backends',
'matplotlib.backends.qt4_editor', 'matplotlib.projections',
'matplotlib.testing', 'matplotlib.testing.jpl_units', 'matplotlib.tests',
'mpl_toolkits', 'mpl_toolkits.mplot3d', 'mpl_toolkits.axes_grid',
'mpl_toolkits.axes_grid1', 'mpl_toolkits.axisartist',
'matplotlib.sphinxext', 'matplotlib.numerix', 'matplotlib.numerix.mlab', '
matplotlib.numerix.ma', 'matplotlib.numerix.linear_algebra',
'matplotlib.numerix.random_array', 'matplotlib.numerix.fft',
'matplotlib.tri', 'matplotlib.delaunay', 'pytz', 'dateutil',
'dateutil/zoneinfo']
running install
running build
running build_py
copying lib/matplotlib/mpl-data/matplotlibrc ->
build/lib.macosx-10.3-fat-2.6/matplotlib/mpl-data
copying lib/matplotlib/mpl-data/matplotlib.conf ->
build/lib.macosx-10.3-fat-2.6/matplotlib/mpl-data
running build_ext
building 'matplotlib.ft2font' extension
gcc-4.0 -fno-strict-aliasing -fno-common -dynamic -arch ppc -arch i386 -g
-O2 -DNDEBUG -g -O3 -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API
-DPYCXX_ISO_CPP_LIB=1
-I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include
-I.
-I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include/freetype2
-I./freetype2
-I/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c
src/ft2font.cpp -o build/temp.macosx-10.3-fat-2.6/src/ft2font.o
In file included from /usr/include/architecture/i386/math.h:626,
 from /usr/include/math.h:28,
 from
/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6/pyport.h:235,
 from
/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6/Python.h:58,
 from ./CXX/WrapPython.h:61,
 from ./CXX/Extensions.hxx:37,
 from src/ft2font.h:4,
 from src/ft2font.cpp:1:
/usr/include/AvailabilityMacros.h:108:14: warning: #warning Building for
Intel with Mac OS X Deployment Target < 10.4 is invalid.
In file included from src/ft2font.cpp:1:
src/ft2font.h:14:22: error: ft2build.h: No such file or directory
src/ft2font.h:15:10: error: #include expects "FILENAME" or <FILENAME>
src/ft2font.h:16:10: error: #include expects "FILENAME" or <FILENAME>
src/ft2font.h:17:10: error: #include expects "FILENAME" or <FILENAME>
src/ft2font.h:18:10: error: #include expects "FILENAME" or <FILENAME>
src/ft2font.h:19:10: error: #include expects "FILENAME" or <FILENAME>
In file included from src/ft2font.cpp:1:
src/ft2font.h:14:22: error: ft2build.h: No such file or directory
src/ft2font.h:15:10: error: #include expects "FILENAME" or <FILENAME>
src/ft2font.h:16:10: error: #include expects "FILENAME" or <FILENAME>
src/ft2font.h:17:10: error: #include expects "FILENAME" or <FILENAME>
src/ft2font.h:18:10: error: #include expects "FILENAME" or <FILENAME>
src/ft2font.h:19:10: error: #include expects "FILENAME" or <FILENAME>
src/ft2font.h:33: error: ‘FT_Bitmap’ has not been declared
src/ft2font.h:33: error: ‘FT_Int’ has not been declared
src/ft2font.h:33: error: ‘FT_Int’ has not been declared
src/ft2font.h:89: error: expected ‘,’ or ‘...’ before ‘&’ token
src/ft2font.h:89: error: ISO C++ forbids declaration of ‘FT_Face’ with no
type
src/ft2font.h:95: error: expected ‘,’ or ‘...’ before ‘&’ token
src/ft2font.h:95: error: ISO C++ forbids declaration of ‘FT_Face’ with no
type
src/ft2font.h:137: error: ‘FT_Face’ does not name a type
src/ft2font.h:138: error: ‘FT_Matrix’ does not name a type
src/ft2font.h:139: error: ‘FT_Vector’ does not name a type
src/ft2font.h:140: error: ‘FT_Error’ does not name a type
src/ft2font.h:141: error: ‘FT_Glyph’ was not declared in this scope
src/ft2font.h:141: error: template argument 1 is invalid
src/ft2font.h:141: error: template argument 2 is invalid
src/ft2font.h:142: error: ‘FT_Vector’ was not declared in this scope
src/ft2font.h:142: error: template argument 1 is invalid
src/ft2font.h:142: error: template argument 2 is invalid
src/ft2font.h:148: error: ‘FT_BBox’ does not name a type
src/ft2font.cpp:45: error: ‘FT_Library’ does not name a type
src/ft2font.cpp:108: error: variable or field ‘draw_bitmap’ declared void
src/ft2font.cpp:108: error: ‘int FT2Image::draw_bitmap’ is not a static
member of ‘class FT2Image’
src/ft2font.cpp:108: error: ‘FT_Bitmap’ was not declared in this scope
src/ft2font.cpp:108: error: ‘bitmap’ was not declared in this scope
src/ft2font.cpp:109: error: ‘FT_Int’ was not declared in this scope
src/ft2font.cpp:110: error: ‘FT_Int’ was not declared in this scope
src/ft2font.cpp:110: error: initializer expression list treated as compound
expression
src/ft2font.cpp:111: error: expected ‘,’ or ‘;’ before ‘{’ token
src/ft2font.h:33: error: ‘FT_Bitmap’ has not been declared
src/ft2font.h:33: error: ‘FT_Int’ has not been declared
src/ft2font.h:33: error: ‘FT_Int’ has not been declared
src/ft2font.cpp:423: error: expected ‘,’ or ‘...’ before ‘&’ token
src/ft2font.cpp:423: error: ISO C++ forbids declaration of ‘FT_Face’ with no
type
src/ft2font.cpp: In constructor ‘Glyph::Glyph(int)’:
src/ft2font.cpp:424: error: ‘ind’ was not declared in this scope
src/ft2font.cpp:428: error: ‘FT_BBox’ was not declared in this scope
src/ft2font.cpp:428: error: expected `;' before ‘bbox’
src/ft2font.cpp:429: error: ‘glyph’ was not declared in this scope
src/ft2font.cpp:429: error: ‘ft_glyph_bbox_subpixels’ was not declared in
this scope
src/ft2font.cpp:429: error: ‘bbox’ was not declared in this scope
src/ft2font.cpp:429: error: ‘FT_Glyph_Get_CBox’ was not declared in this
scope
src/ft2font.cpp:431: error: ‘face’ was not declared in this scope
src/ft2font.cpp:451: error: no matching function for call to
‘Glyph::get_path(<type error>)’
src/ft2font.h:95: note: candidates are: Py::Object Glyph::get_path(int)
src/ft2font.cpp: At global scope:
src/ft2font.cpp:483: error: expected ‘,’ or ‘...’ before ‘&’ token
src/ft2font.cpp:483: error: ISO C++ forbids declaration of ‘FT_Face’ with no
type
src/ft2font.cpp: In member function ‘Py::Object Glyph::get_path(int)’:
src/ft2font.cpp:489: error: ‘FT_Outline’ was not declared in this scope
src/ft2font.cpp:489: error: ‘outline’ was not declared in this scope
src/ft2font.cpp:489: error: ‘face’ was not declared in this scope
src/ft2font.cpp:494: error: ‘FT_Vector’ was not declared in this scope
src/ft2font.cpp:494: error: expected `;' before ‘v_last’
src/ft2font.cpp:495: error: expected `;' before ‘v_control’
src/ft2font.cpp:496: error: expected `;' before ‘v_start’
src/ft2font.cpp:498: error: ‘point’ was not declared in this scope
src/ft2font.cpp:499: error: ‘limit’ was not declared in this scope
src/ft2font.cpp:515: error: ‘v_start’ was not declared in this scope
src/ft2font.cpp:516: error: ‘v_last’ was not declared in this scope
src/ft2font.cpp:518: error: ‘v_control’ was not declared in this scope
src/ft2font.cpp:522: error: ‘FT_CURVE_TAG’ was not declared in this scope
src/ft2font.cpp:525: error: ‘FT_CURVE_TAG_CUBIC’ was not declared in this
scope
src/ft2font.cpp:531: error: ‘FT_CURVE_TAG_CONIC’ was not declared in this
scope
src/ft2font.cpp:534: error: ‘FT_CURVE_TAG_ON’ was not declared in this scope
src/ft2font.cpp:574: error: ‘FT_CURVE_TAG_ON’ was not declared in this scope
src/ft2font.cpp:587: error: ‘FT_CURVE_TAG_CONIC’ was not declared in this
scope
src/ft2font.cpp:595: error: expected `;' before ‘vec’
src/ft2font.cpp:596: error: expected `;' before ‘v_middle’
src/ft2font.cpp:602: error: ‘vec’ was not declared in this scope
src/ft2font.cpp:626: error: ‘v_middle’ was not declared in this scope
src/ft2font.cpp:660: error: expected `;' before ‘vec1’
src/ft2font.cpp:662: error: ‘FT_CURVE_TAG_CUBIC’ was not declared in this
scope
src/ft2font.cpp:667: error: ‘vec1’ was not declared in this scope
src/ft2font.cpp:669: error: ‘vec2’ was not declared in this scope
src/ft2font.cpp:677: error: expected `;' before ‘vec’
src/ft2font.cpp:679: error: ‘vec’ was not declared in this scope
src/ft2font.cpp: In constructor ‘FT2Font::FT2Font(std::string)’:
src/ft2font.cpp:739: error: ‘_ft2Library’ was not declared in this scope
src/ft2font.cpp:739: error: ‘face’ was not declared in this scope
src/ft2font.cpp:739: error: ‘FT_New_Face’ was not declared in this scope
src/ft2font.cpp:741: error: ‘FT_Err_Unknown_File_Format’ was not declared in
this scope
src/ft2font.cpp:748: error: ‘FT_Err_Cannot_Open_Resource’ was not declared
in this scope
src/ft2font.cpp:755: error: ‘FT_Err_Invalid_File_Format’ was not declared in
this scope
src/ft2font.h:89: error: expected ‘,’ or ‘...’ before ‘&’ token
src/ft2font.h:89: error: ISO C++ forbids declaration of ‘FT_Face’ with no
type
src/ft2font.h:95: error: expected ‘,’ or ‘...’ before ‘&’ token
src/ft2font.h:95: error: ISO C++ forbids declaration of ‘FT_Face’ with no
type
src/ft2font.cpp:772: error: ‘FT_Set_Char_Size’ was not declared in this
scope
src/ft2font.cpp:773: error: ‘FT_Matrix’ does not name a type
src/ft2font.cpp:774: error: ‘transform’ was not declared in this scope
src/ft2font.cpp:774: error: ‘FT_Set_Transform’ was not declared in this
scope
src/ft2font.h:137: error: ‘FT_Face’ does not name a type
src/ft2font.h:138: error: ‘FT_Matrix’ does not name a type
src/ft2font.h:139: error: ‘FT_Vector’ does not name a type
src/ft2font.h:140: error: ‘FT_Error’ does not name a type
src/ft2font.h:141: error: ‘FT_Glyph’ was not declared in this scope
src/ft2font.h:141: error: template argument 1 is invalid
src/ft2font.h:141: error: template argument 2 is invalid
src/ft2font.h:142: error: ‘FT_Vector’ was not declared in this scope
src/ft2font.h:142: error: template argument 1 is invalid
src/ft2font.h:142: error: template argument 2 is invalid
src/ft2font.h:148: error: ‘FT_BBox’ does not name a type
src/ft2font.cpp:791: error: ‘FT_Get_Postscript_Name’ was not declared in
this scope
src/ft2font.cpp:819: error: ‘FT_IS_SCALABLE’ was not declared in this scope
src/ft2font.cpp: In destructor ‘virtual FT2Font::~FT2Font()’:
src/ft2font.cpp:852: error: ‘face’ was not declared in this scope
src/ft2font.cpp:852: error: ‘FT_Done_Face’ was not declared in this scope
src/ft2font.cpp:854: error: request for member ‘size’ in
‘((FT2Font*)this)->FT2Font::glyphs’, which is of non-class type ‘int’
src/ft2font.cpp:856: error: invalid types ‘int[size_t]’ for array subscript
src/ft2font.cpp:856: error: ‘FT_Done_Glyph’ was not declared in this scope
src/ft2font.cpp:45: error: ‘FT_Library’ does not name a type
src/ft2font.cpp: In member function ‘Py::Object FT2Font::clear(const
Py::Tuple&)’:
src/ft2font.cpp:893: error: ‘pen’ was not declared in this scope
src/ft2font.cpp:896: error: request for member ‘size’ in
‘((FT2Font*)this)->FT2Font::glyphs’, which is of non-class type ‘int’
src/ft2font.cpp:898: error: invalid types ‘int[size_t]’ for array subscript
src/ft2font.cpp:898: error: ‘FT_Done_Glyph’ was not declared in this scope
src/ft2font.cpp:901: error: request for member ‘clear’ in
‘((FT2Font*)this)->FT2Font::glyphs’, which is of non-class type ‘int’
src/ft2font.cpp: In member function ‘Py::Object FT2Font::set_size(const
Py::Tuple&)’:
src/ft2font.cpp:925: error: ‘face’ was not declared in this scope
src/ft2font.cpp:927: error: ‘FT_Set_Char_Size’ was not declared in this
scope
src/ft2font.cpp:928: error: ‘FT_Matrix’ does not name a type
src/ft2font.cpp:929: error: ‘transform’ was not declared in this scope
src/ft2font.cpp:929: error: ‘FT_Set_Transform’ was not declared in this
scope
src/ft2font.cpp:108: error: variable or field ‘draw_bitmap’ declared void
src/ft2font.cpp:108: error: ‘int FT2Image::draw_bitmap’ is not a static
member of ‘class FT2Image’
src/ft2font.cpp:108: error: ‘FT_Bitmap’ was not declared in this scope
src/ft2font.cpp:108: error: ‘bitmap’ was not declared in this scope
src/ft2font.cpp:109: error: ‘FT_Int’ was not declared in this scope
src/ft2font.cpp:110: error: ‘FT_Int’ was not declared in this scope
src/ft2font.cpp:110: error: initializer expression list treated as compound
expression
src/ft2font.cpp:111: error: expected ‘,’ or ‘;’ before ‘{’ token
src/ft2font.cpp: In member function ‘Py::Object FT2Font::set_charmap(const
Py::Tuple&)’:
src/ft2font.cpp:956: error: ‘face’ was not declared in this scope
src/ft2font.cpp:960: error: ‘FT_CharMap’ was not declared in this scope
src/ft2font.cpp:960: error: expected `;' before ‘charmap’
src/ft2font.cpp:961: error: ‘face’ was not declared in this scope
src/ft2font.cpp:961: error: ‘charmap’ was not declared in this scope
src/ft2font.cpp:961: error: ‘FT_Set_Charmap’ was not declared in this scope
src/ft2font.cpp: In member function ‘Py::Object
FT2Font::select_charmap(const Py::Tuple&)’:
src/ft2font.cpp:982: error: ‘face’ was not declared in this scope
src/ft2font.cpp:982: error: ‘FT_Encoding’ was not declared in this scope
src/ft2font.cpp:982: error: ‘FT_Select_Charmap’ was not declared in this
scope
src/ft2font.cpp: At global scope:
src/ft2font.cpp:989: error: ‘FT_BBox’ does not name a type
src/ft2font.cpp: In member function ‘Py::Object FT2Font::get_kerning(const
Py::Tuple&)’:
src/ft2font.cpp:1048: error: ‘face’ was not declared in this scope
src/ft2font.cpp:1048: error: ‘FT_HAS_KERNING’ was not declared in this scope
src/ft2font.cpp:1052: error: ‘FT_Vector’ was not declared in this scope
src/ft2font.cpp:1052: error: expected `;' before ‘delta’
src/ft2font.cpp:1054: error: ‘face’ was not declared in this scope
src/ft2font.cpp:1054: error: ‘delta’ was not declared in this scope
src/ft2font.cpp:1054: error: ‘FT_Get_Kerning’ was not declared in this scope
src/ft2font.cpp: In member function ‘Py::Object FT2Font::set_text(const
Py::Tuple&, const Py::Dict&)’:
src/ft2font.cpp:1100: error: ‘FT_LOAD_FORCE_AUTOHINT’ was not declared in
this scope
src/ft2font.cpp:1107: error: ‘matrix’ was not declared in this scope
src/ft2font.cpp:1107: error: ‘FT_Fixed’ was not declared in this scope
src/ft2font.cpp:1112: error: ‘FT_Bool’ was not declared in this scope
src/ft2font.cpp:1112: error: expected `;' before ‘use_kerning’
src/ft2font.cpp:1113: error: ‘FT_UInt’ was not declared in this scope
src/ft2font.cpp:1113: error: expected `;' before ‘previous’
src/ft2font.cpp:1115: error: request for member ‘resize’ in
‘((FT2Font*)this)->FT2Font::glyphs’, which is of non-class type ‘int’
src/ft2font.cpp:1116: error: ‘pen’ was not declared in this scope
src/ft2font.cpp:1123: error: expected `;' before ‘glyph_index’
src/ft2font.cpp:1130: error: ‘glyph_index’ was not declared in this scope
src/ft2font.cpp:1130: error: ‘face’ was not declared in this scope
src/ft2font.cpp:1130: error: ‘FT_Get_Char_Index’ was not declared in this
scope
src/ft2font.cpp:1135: error: ‘glyph_index’ was not declared in this scope
src/ft2font.cpp:1135: error: ‘face’ was not declared in this scope
src/ft2font.cpp:1135: error: ‘FT_Get_Char_Index’ was not declared in this
scope
src/ft2font.cpp:1139: error: ‘use_kerning’ was not declared in this scope
src/ft2font.cpp:1139: error: ‘previous’ was not declared in this scope
src/ft2font.cpp:1139: error: ‘glyph_index’ was not declared in this scope
src/ft2font.cpp:1141: error: ‘FT_Vector’ was not declared in this scope
src/ft2font.cpp:1141: error: expected `;' before ‘delta’
src/ft2font.cpp:1142: error: ‘face’ was not declared in this scope
src/ft2font.cpp:1143: error: ‘FT_KERNING_DEFAULT’ was not declared in this
scope
src/ft2font.cpp:1143: error: ‘delta’ was not declared in this scope
src/ft2font.cpp:1143: error: ‘FT_Get_Kerning’ was not declared in this scope
src/ft2font.cpp:1146: error: ‘error’ was not declared in this scope
src/ft2font.cpp:1146: error: ‘face’ was not declared in this scope
src/ft2font.cpp:1146: error: ‘glyph_index’ was not declared in this scope
src/ft2font.cpp:1146: error: ‘FT_Load_Glyph’ was not declared in this scope
src/ft2font.cpp:1156: error: ‘FT_Glyph’ was not declared in this scope
src/ft2font.cpp:1156: error: expected `;' before ‘thisGlyph’
src/ft2font.cpp:1157: error: ‘thisGlyph’ was not declared in this scope
src/ft2font.cpp:1157: error: ‘FT_Get_Glyph’ was not declared in this scope
src/ft2font.cpp:1166: error: ‘FT_Glyph_Transform’ was not declared in this
scope
src/ft2font.cpp:423: error: expected ‘,’ or ‘...’ before ‘&’ token
src/ft2font.cpp:423: error: ISO C++ forbids declaration of ‘FT_Face’ with no
type
src/ft2font.cpp:1173: error: ‘previous’ was not declared in this scope
src/ft2font.cpp: In constructor ‘Glyph::Glyph(int)’:
src/ft2font.cpp:424: error: ‘ind’ was not declared in this scope
src/ft2font.cpp:1174: error: request for member ‘push_back’ in
‘((FT2Font*)this)->FT2Font::glyphs’, which is of non-class type ‘int’
src/ft2font.cpp:1178: error: request for member ‘size’ in
‘((FT2Font*)this)->FT2Font::glyphs’, which is of non-class type ‘int’
src/ft2font.cpp:1180: error: invalid types ‘int[unsigned int]’ for array
subscript
src/ft2font.cpp:1180: error: ‘FT_Glyph_Transform’ was not declared in this
scope
src/ft2font.cpp:428: error: ‘FT_BBox’ was not declared in this scope
src/ft2font.cpp:428: error: expected `;' before ‘bbox’
src/ft2font.cpp:429: error: ‘glyph’ was not declared in this scope
src/ft2font.cpp:429: error: ‘ft_glyph_bbox_subpixels’ was not declared in
this scope
src/ft2font.cpp:429: error: ‘bbox’ was not declared in this scope
src/ft2font.cpp:429: error: ‘FT_Glyph_Get_CBox’ was not declared in this
scope
src/ft2font.cpp:431: error: ‘face’ was not declared in this scope
src/ft2font.cpp:451: error: no matching function for call to
‘Glyph::get_path(<type error>)’
src/ft2font.h:95: note: candidates are: Py::Object Glyph::get_path(int)
src/ft2font.cpp: In member function ‘Py::Object
FT2Font::get_num_glyphs(const Py::Tuple&)’:
src/ft2font.cpp:1198: error: request for member ‘size’ in
‘((FT2Font*)this)->FT2Font::glyphs’, which is of non-class type ‘int’
src/ft2font.cpp: In member function ‘Py::Object FT2Font::load_char(const
Py::Tuple&, const Py::Dict&)’:
src/ft2font.cpp:1224: error: ‘FT_LOAD_FORCE_AUTOHINT’ was not declared in
this scope
src/ft2font.cpp:1230: error: ‘face’ was not declared in this scope
src/ft2font.cpp:1230: error: ‘FT_Load_Char’ was not declared in this scope
src/ft2font.cpp:1237: error: ‘FT_Glyph’ was not declared in this scope
src/ft2font.cpp:1237: error: expected `;' before ‘thisGlyph’
src/ft2font.cpp:1238: error: ‘thisGlyph’ was not declared in this scope
src/ft2font.cpp:1238: error: ‘FT_Get_Glyph’ was not declared in this scope
src/ft2font.cpp:1245: error: request for member ‘size’ in
‘((FT2Font*)this)->FT2Font::glyphs’, which is of non-class type ‘int’
src/ft2font.cpp:1246: error: request for member ‘push_back’ in
‘((FT2Font*)this)->FT2Font::glyphs’, which is of non-class type ‘int’
src/ft2font.cpp:1247: error: no matching function for call to
‘Glyph::Glyph(<type error>, <type error>, size_t&)’
src/ft2font.cpp:423: note: candidates are: Glyph::Glyph(int)
src/ft2font.h:87: note: Glyph::Glyph(const Glyph&)
src/ft2font.cpp: In member function ‘Py::Object FT2Font::load_glyph(const
Py::Tuple&, const Py::Dict&)’:
src/ft2font.cpp:1275: error: ‘FT_LOAD_FORCE_AUTOHINT’ was not declared in
this scope
src/ft2font.cpp:1281: error: ‘face’ was not declared in this scope
src/ft2font.cpp:1281: error: ‘FT_Load_Glyph’ was not declared in this scope
src/ft2font.cpp: At global scope:
src/ft2font.cpp:483: error: expected ‘,’ or ‘...’ before ‘&’ token
src/ft2font.cpp:1288: error: ‘FT_Glyph’ was not declared in this scope
src/ft2font.cpp:483: error: ISO C++ forbids declaration of ‘FT_Face’ with no
type
src/ft2font.cpp:1288: error: expected `;' before ‘thisGlyph’
src/ft2font.cpp:1289: error: ‘thisGlyph’ was not declared in this scope
src/ft2font.cpp:1289: error: ‘FT_Get_Glyph’ was not declared in this scope
src/ft2font.cpp: In member function ‘Py::Object Glyph::get_path(int)’:
src/ft2font.cpp:489: error: ‘FT_Outline’ was not declared in this scope
src/ft2font.cpp:489: error: ‘outline’ was not declared in this scope
src/ft2font.cpp:489: error: ‘face’ was not declared in this scope
src/ft2font.cpp:1296: error: request for member ‘size’ in
‘((FT2Font*)this)->FT2Font::glyphs’, which is of non-class type
‘int’src/ft2font.cpp:494: error: ‘FT_Vector’ was not declared in this scope
src/ft2fsrc/ft2font.cpp:1297: error: request for member ‘push_back’ in
‘((FT2Font*)this)->FT2Font::glyphs’, which is of non-class type ‘int’
src/ft2font.cpp:1298: error: no matching function for call to
‘Glyph::Glyph(<type error>, <type error>, size_t&)’
src/ft2font.cpp:423: note: candidates are: Glyph::Glyph(int)
src/ft2font.h:87: note: Glyph::Glyph(const Glyph&)
ont.cpp:494: error: expected `;' before ‘v_last’
src/ft2font.cpp:495: error: expected `;' before ‘v_control’
src/ft2font.cpp:496: error: expected `;' before ‘v_start’
src/ft2font.cpp:498: error: ‘point’ was not declared in this scope
src/ft2font.cpp:499: error: ‘limit’ was not declared in this scope
src/ft2font.cpp:515: error: ‘v_start’ was not declared in this scope
src/ft2font.cpp:516: error: ‘v_last’ was not declared in this scope
src/ft2font.cpp:518: error: ‘v_control’ was not declared in this scope
src/ft2font.cpp:522: error: ‘FT_CURVE_TAG’ was not declared in this scope
ssrc/ft2font.cpp: In member function ‘Py::Object
FT2Font::get_width_height(const Py::Tuple&)’:
src/ft2font.cpp:1316: error: ‘FT_BBox’ was not declared in this scope
src/ft2font.cpp:1316: error: expected `;' before ‘bbox’
src/ft2font.cpp:1319: error: ‘bbox’ was not declared in this scope
rc/ft2font.cpp:525: error: ‘FT_CURVE_TAG_CUBIC’ was not declared in this
scope
src/ft2font.cpp:531: error: ‘FT_CURVE_TAG_CONIC’ was not declared in this
scopesrc/ft2font.cpp: In member function ‘Py::Object
FT2Font::get_descent(const Py::Tuple&)’:
src/ft2font.cpp:1337: error: ‘FT_BBox’ was not declared in this scope
src/ft2font.cpp:1337: error: expected `;' before ‘bbox’
src/ft2font.cpp:534: error: ‘FT_CURVE_TAG_ON’ was not declared in this scope
src/ft2font.cpp:1338: error: ‘bbox’ was not declared in this scope
src/ft2font.cpp: In member function ‘Py::Object
FT2Font::draw_glyphs_to_bitmap(const Py::Tuple&)’:
src/ft2font.cpp:1354: error: ‘FT_BBox’ was not declared in this scope
src/ft2font.cpp:1354: error: expected `;' before ‘string_bbox’
src/ft2font.cpp:1355: error: ‘string_bbox’ was not declared in this scope
src/ft2font.cpp:1362: error: request for member ‘size’ in
‘((FT2Font*)this)->FT2Font::glyphs’, which is of non-class type ‘int’
src/ft2font.cpp:1364: error: expected `;' before ‘bbox’
src/ft2font.cpp:1365: error: invalid types ‘int[size_t]’ for array subscript
src/ft2font.cpp:1365: error: ‘ft_glyph_bbox_pixels’ was not declared in this
scope
src/ft2font.cpp:1365: error: ‘bbox’ was not declared in this scope
src/ft2font.cpp:1365: error: ‘FT_Glyph_Get_CBox’ was not declared in this
scope
src/ft2font.cpp:1367: error: ‘error’ was not declared in this scope
src/ft2font.cpp:1367: error: invalid types ‘int[size_t]’ for array subscript
src/ft2font.cpp:1368: error: ‘ft_render_mode_normal’ was not declared in
this scope
src/ft2font.cpp:1371: error: ‘FT_Glyph_To_Bitmap’ was not declared in this
scope
src/ft2font.cpp:1377: error: ‘FT_BitmapGlyph’ was not declared in this scope
src/ft2font.cpp:1377: error: expected `;' before ‘bitmap’
src/ft2font.cpp:1381: error: ‘FT_Int’ was not declared in this scope
src/ft2font.cpp:1381: error: expected `;' before ‘x’
src/ft2font.cpp:1382: error: expected `;' before ‘y’
src/ft2font.cpp:1384: error: ‘bitmap’ was not declared in this scope
src/ft2font.cpp:1384: error: ‘x’ was not declared in this scope
src/ft2font.cpp:1384: error: ‘y’ was not declared in this scope
src/ft2font.cpp: In member function ‘Py::Object FT2Font::get_xys(const
Py::Tuple&)’:
src/ft2font.cpp:1403: error: ‘FT_BBox’ was not declared in this scope
src/ft2font.cpp:1403: error: expected `;' before ‘string_bbox’
src/ft2font.cpp:574: error: ‘FT_CURVE_TAG_ON’ was not declared in this scope
src/ft2font.cpp:1404: error: request for member ‘size’ in
‘((FT2Font*)this)->FT2Font::glyphs’, which is of non-class type ‘int’
src/ft2font.cpp:1406: error: request for member ‘size’ in
‘((FT2Font*)this)->FT2Font::glyphs’, which is of non-class type ‘int’
src/ft2font.cpp:1409: error: expected `;' before ‘bbox’
src/ft2font.cpp:1410: error: invalid types ‘int[size_t]’ for array subscript
src/ft2font.cpp:1410: error: ‘ft_glyph_bbox_pixels’ was not declared in this
scope
src/ft2font.cpp:1410: error: ‘bbox’ was not declared in this scope
src/ft2font.cpp:1410: error: ‘FT_Glyph_Get_CBox’ was not declared in this
scope
src/ft2font.cpp:1412: error: ‘error’ was not declared in this scope
src/ft2font.cpp:1412: error: invalid types ‘int[size_t]’ for array subscript
src/ft2font.cpp:1413: error: ‘ft_render_mode_normal’ was not declared in
this scope
src/ft2font.cpp:1416: error: ‘FT_Glyph_To_Bitmap’ was not declared in this
scope
src/ft2font.cpp:1422: error: ‘FT_BitmapGlyph’ was not declared in this scope
src/ft2font.cpp:1422: error: expected `;' before ‘bitmap’
src/ft2font.cpp:1426: error: ‘FT_Int’ was not declared in this scope
src/ft2font.cpp:587: error: ‘FT_CURVE_TAG_CONIC’ was not declared in this
scope
src/ft2font.cpp:1426: error: expected `;' before ‘x’
src/ft2font.cpp:1427: error: expected `;' before ‘y’
src/ft2font.cpp:595: error: expected `;' before ‘vec’
src/ft2font.cpp:1429: error: ‘x’ was not declared in this scope
src/ft2font.cpp:596: error: expected `;' before ‘v_middle’
src/ft2font.cpp:1430: error: ‘y’ was not declared in this scope
src/ft2font.cpp:602: error: ‘vec’ was not declared in this scope
src/ft2font.cpp:626: error: ‘v_middle’ was not declared in this scope
src/ft2font.cpp: In member function ‘Py::Object
FT2Font::draw_glyph_to_bitmap(const Py::Tuple&)’:
src/ft2font.cpp:1468: error: ‘FT_Vector’ was not declared in this scope
src/ft2font.cpp:1468: error: expected `;' before ‘sub_offset’
src/ft2font.cpp:1469: error: ‘sub_offset’ was not declared in this scope
src/ft2font.cpp:1478: error: request for member ‘size’ in
‘((FT2Font*)this)->FT2Font::glyphs’, which is of non-class type ‘int’
src/ft2font.cpp:1483: error: ‘error’ was not declared in this scope
src/ft2font.cpp:1483: error: invalid types ‘int[size_t]’ for array subscript
src/ft2font.cpp:1484: error: ‘ft_render_mode_normal’ was not declared in
this scope
src/ft2font.cpp:1487: error: ‘FT_Glyph_To_Bitmap’ was not declared in this
scope
src/ft2font.cpp:1493: error: ‘FT_BitmapGlyph’ was not declared in this scope
src/ft2font.cpp:1493: error: expected `;' before ‘bitmap’
src/ft2font.cpp:1495: error: ‘bitmap’ was not declared in this scope
src/ft2font.cpp:660: error: expected `;' before ‘vec1’
src/ft2font.cpp:662: error: ‘FT_CURVE_TAG_CUBIC’ was not declared in this
scope
src/ft2font.cpp:667: error: ‘vec1’ was not declared in this scope
src/ft2font.cpp:669: error: ‘vec2’ was not declared in this scope
src/ft2font.cpp:677: error: expected `;' before ‘vec’
src/ft2font.cpp:679: error: ‘vec’ was not declared in this scope
src/ft2font.cpp: In member function ‘Py::Object
FT2Font::get_glyph_name(const Py::Tuple&)’:
src/ft2font.cpp:1510: error: ‘face’ was not declared in this scope
src/ft2font.cpp:1510: error: ‘FT_HAS_GLYPH_NAMES’ was not declared in this
scope
src/ft2font.cpp:1516: error: ‘face’ was not declared in this scope
src/ft2font.cpp:1516: error: ‘FT_UInt’ was not declared in this scope
src/ft2font.cpp:1516: error: ‘FT_Get_Glyph_Name’ was not declared in this
scope
src/ft2font.cpp: In member function ‘Py::Object FT2Font::get_charmap(const
Py::Tuple&)’:
src/ft2font.cpp:1535: error: ‘FT_UInt’ was not declared in this scope
src/ft2font.cpp:1535: error: expected `;' before ‘index’
src/ft2font.cpp:1539: error: ‘FT_ULong’ was not declared in this scope
src/ft2font.cpp:1539: error: expected `;' before ‘code’
src/ft2font.cpp:1542: error: ‘code’ was not declared in this scope
src/ft2font.cpp:1543: error: ‘face’ was not declared in this scope
src/ft2font.cpp:1543: error: ‘FT_Get_Next_Char’ was not declared in this
scope
src/ft2font.cpp: In member function ‘Py::Object FT2Font::get_sfnt(const
Py::Tuple&)’:
src/ft2font.cpp:1612: error: ‘face’ was not declared in this scope
src/ft2font.cpp:1612: error: ‘FT_FACE_FLAG_SFNT’ was not declared in this
scope
src/ft2font.cpp:1617: error: ‘face’ was not declared in this scope
src/ft2font.cpp:1617: error: ‘FT_Get_Sfnt_Name_Count’ was not declared in
this scope
src/ft2font.cpp:1622: error: ‘FT_SfntName’ was not declared in this scope
src/ft2font.cpp:1622: error: expected `;' before ‘sfnt’
src/ft2font.cpp:1623: error: ‘FT_Error’ was not declared in this scope
src/ft2font.cpp:1623: error: expected `;' before ‘error’
src/ft2font.cpp:1625: error: ‘error’ was not declared in this scope
src/ft2font.cpp:1631: error: ‘sfnt’ was not declared in this scope
src/ft2font.cpp: In constructor ‘FT2Font::FT2Font(std::string)’:
src/ft2font.cpp:739: error: ‘_ft2Library’ was not declared in this scope
src/ft2font.cpp:739: error: ‘face’ was not declared in this scope
src/ft2font.cpp:739: error: ‘FT_New_Face’ was not declared in this scope
src/ft2font.cpp:741: error: ‘FT_Err_Unknown_File_Format’ was not declared in
this scope
src/ft2font.cpp:748: error: ‘FT_Err_Cannot_Open_Resource’ was not declared
in this scope
src/ft2font.cpp: In member function ‘Py::Object
FT2Font::get_name_index(const Py::Tuple&)’:
src/ft2font.cpp:1655: error: ‘face’ was not declared in this scope
src/ft2font.cpp:1655: error: ‘FT_String’ was not declared in this scope
src/ft2font.cpp:1655: error: ‘FT_Get_Name_Index’ was not declared in this
scope
src/ft2font.cpp:1654: error: expected primary-expression before ‘(’ token
src/ft2font.cpp:1654: error: expected primary-expression before ‘long’
src/ft2font.cpp:1654: error: expected `)' before ‘long’
src/ft2font.cpp: In member function ‘Py::Object
FT2Font::get_ps_font_info(const Py::Tuple&)’:
src/ft2font.cpp:1668: error: ‘PS_FontInfoRec’ was not declared in this scope
src/ft2font.cpp:1668: error: expected `;' before ‘fontinfo’
src/ft2font.cpp:1670: error: ‘FT_Error’ was not declared in this scope
src/ft2font.cpp:1670: error: expected `;' before ‘error’
src/ft2font.cpp:1671: error: ‘error’ was not declared in this scope
src/ft2font.cpp:755:src/ft2font.cpp:1678: error: ‘fontinfo’ was not declared
in this scope
 error: ‘FT_Err_Invalid_File_Format’ was not declared in this scope
src/ft2font.cpp: In member function ‘Py::Object
FT2Font::get_sfnt_table(const Py::Tuple&)’:
src/ft2font.cpp:1716: error: ‘face’ was not declared in this scope
src/ft2font.cpp:1716: error: ‘FT_Sfnt_Tag’ was not declared in this scope
src/ft2font.cpp:1716: error: ‘FT_Get_Sfnt_Table’ was not declared in this
scope
src/ft2font.cpp:1728: error: ‘TT_Header’ was not declared in this scope
src/ft2font.cpp:1728: error: ‘t’ was not declared in this scope
src/ft2font.cpp:1728: error: expected primary-expression before ‘)’ token
src/ft2font.cpp:1728: error: expected `;' before ‘table’
src/ft2font.cpp:1756: error: ‘TT_MaxProfile’ was not declared in this scope
src/ft2font.cpp:1756: error: ‘t’ was not declared in this scope
src/ft2font.cpp:1756: error: expected primary-expression before ‘)’ token
src/ft2font.cpp:1756: error: expected `;' before ‘table’
src/ft2font.cpp:772: error: ‘FT_Set_Char_Size’ was not declared in this
scope
src/ft2font.cpp:773: error: ‘FT_Matrix’ does not name a type
src/ft2font.cpp:1787: error: ‘TT_OS2’ was not declared in this scope
src/ft2font.cpp:1787: error: ‘t’ was not declared in this scope
src/ft2font.cpp:1787: error: expected primary-expression before ‘)’ token
src/ft2font.cpp:1787: error: expected `;' before ‘table’
src/ft2font.cpp:774: error: ‘transform’ was not declared in this scope
src/ft2font.cpp:774: error: ‘FT_Set_Transform’ was not declared in this
scope
src/ft2font.cpp:1820: error: ‘TT_HoriHeader’ was not declared in this scope
src/ft2font.cpp:1820: error: ‘t’ was not declared in this scope
src/ft2font.cpp:1820: error: expected primary-expression before ‘)’ token
src/ft2font.cpp:1820: error: expected `;' before ‘table’
src/ft2font.cpp:1843: error: ‘TT_VertHeader’ was not declared in this scope
src/ft2font.cpp:1843: error: ‘t’ was not declared in this scope
src/ft2font.cpp:1843: error: expected primary-expression before ‘)’ token
src/ft2font.cpp:1843: error: expected `;' before ‘table’
src/ft2font.cpp:1864: error: ‘TT_Postscript’ was not declared in this scope
src/ft2font.cpp:1864: error: ‘t’ was not declared in this scope
src/ft2font.cpp:1864: error: expected primary-expression before ‘)’ token
src/ft2font.cpp:1864: error: expected `;' before ‘table’
src/ft2font.cpp:791: error: ‘FT_Get_Postscript_Name’ was not declared in
this scope
src/ft2font.cpp:819: error: ‘FT_IS_SCALABLE’ was not declared in this scope
src/ft2font.cpp:1884: error: ‘TT_PCLT’ was not declared in this scope
src/ft2font.cpp:1884: error: ‘t’ was not declared in this scope
src/ft2font.cpp:1884: error: expected primary-expression before ‘)’ token
src/ft2font.cpp:1884: error: expected `;' before ‘table’
src/ft2font.cpp: In destructor ‘virtual FT2Font::~FT2Font()’:
src/ft2font.cpp:852: error: ‘face’ was not declared in this scope
src/ft2font.cpp:852: error: ‘FT_Done_Face’ was not declared in this scope
src/ft2font.cpp:854: error: request for member ‘size’ in
‘((FT2Font*)this)->FT2Font::glyphs’, which is of non-class type ‘int’
src/ft2font.cpp:856: error: invalid types ‘int[size_t]’ for array subscript
src/ft2font.cpp:856: error: ‘FT_Done_Glyph’ was not declared in this scope
src/ft2font.cpp: In member function ‘Py::Object FT2Font::attach_file(const
Py::Tuple&)’:
src/ft2font.cpp:1939: error: ‘FT_Error’ was not declared in this scope
src/ft2font.cpp:1939: error: expected `;' before ‘error’
src/ft2font.cpp:1941: error: ‘error’ was not declared in this scope
src/ft2font.cpp: In member function ‘Py::Object FT2Font::clear(const
Py::Tuple&)’:
src/ft2font.cpp:893: error: ‘pen’ was not declared in this scope
src/ft2font.cpp:896: error: request for member ‘size’ in
‘((FT2Font*)this)->FT2Font::glyphs’, which is of non-class type ‘int’
src/ft2font.cpp:898: error: invalid types ‘int[size_t]’ for array subscript
src/ft2font.cpp:898: error: ‘FT_Done_Glyph’ was not declared in this scope
src/ft2font.cpp:901: error: request for member ‘clear’ in
‘((FT2Font*)this)->FT2Font::glyphs’, which is of non-class type ‘int’
src/ft2font.cpp: In member function ‘Py::Object FT2Font::set_size(const
Py::Tuple&)’:
src/ft2font.cpp:925: error: ‘face’ was not declared in this scope
src/ft2font.cpp:927: error: ‘FT_Set_Char_Size’ was not declared in this
scope
src/ft2font.cpp:928: error: ‘FT_Matrix’ does not name a type
src/ft2font.cpp:929: error: ‘transform’ was not declared in this scope
src/ft2font.cpp:929: error: ‘FT_Set_Transform’ was not declared in this
scope
src/ft2font.cpp: In member function ‘Py::Object FT2Font::set_charmap(const
Py::Tuple&)’:
src/ft2font.cpp:956: error: ‘face’ was not declared in this scope
src/ft2font.cpp:960: error: ‘FT_CharMap’ was not declared in this scope
src/ft2font.cpp:960: error: expected `;' before ‘charmap’
src/ft2font.cpp:961: error: ‘face’ was not declared in this scope
src/ft2font.cpp:961: error: ‘charmap’ was not declared in this scope
src/ft2font.cpp:961: error: ‘FT_Set_Charmap’ was not declared in this scope
src/ft2font.cpp: In function ‘void initft2font()’:
src/ft2font.cpp:2133: error: ‘FT_FACE_FLAG_SCALABLE’ was not declared in
this scope
src/ft2font.cpp:2134: error: ‘FT_FACE_FLAG_FIXED_SIZES’ was not declared in
this scope
src/ft2font.cpp:2135: error: ‘FT_FACE_FLAG_FIXED_WIDTH’ was not declared in
this scope
src/ft2font.cpp:2136: error: ‘FT_FACE_FLAG_SFNT’ was not declared in this
scope
src/ft2font.cpp:2137: error: ‘FT_FACE_FLAG_HORIZONTAL’ was not declared in
this scope
src/ft2font.cpp: In member function ‘Py::Object
FT2Font::select_charmap(const Py::Tuple&)’:
src/ft2font.cpp:982: error: ‘face’ was not declared in this scope
src/ft2font.cpp:2139: error: ‘FT_FACE_FLAG_KERNING’ was not declared in this
scope
src/ft2font.cpp:982: error: ‘FT_Encoding’ was not declared in this scope
src/ft2font.cpp:982: error: ‘FT_Select_Charmap’ was not declared in this
scope
src/ft2font.cpp:2140: error: ‘FT_FACE_FLAG_FAST_GLYPHS’ was not declared in
this scope
src/ft2fosrc/ft2font.cpp: At global scope:
src/ft2font.cpp:989: error: ‘FT_BBox’ does not name a type
nt.cpp:2141: error: ‘FT_FACE_FLAG_MULTIPLE_MASTERS’ was not declared in this
scope
src/ft2font.cpp: In member function ‘Py::Object FT2Font::get_kerning(const
Py::Tuple&)’:
src/ft2font.cpp:1048: error: ‘face’ was not declared in this scope
src/ft2font.cpp:1048: error: ‘FT_HAS_KERNING’ was not declared in this scope
src/ft2font.cpp:2142: error: ‘FT_FACE_FLAG_GLYPH_NAMES’ was not declared in
this scope
src/ft2font.cpp:1052: error: ‘FT_Vector’ was not declared in this scope
src/ft2font.cpp:1052: error: expected `;' before ‘delta’
src/ft2font.cpp:1054: error: ‘face’ was not declared in this scope
src/ft2font.cpp:2143: error: ‘FT_FACE_FLAG_EXTERNAL_STREAM’ was not declared
in this scope
src/ft2font.cpp:1054: error: ‘delta’ was not declared in this scope
src/ft2font.cpp:1054: error: ‘FT_Get_Kerning’ was not declared in this scope
src/ft2font.cpp:2144: error: ‘FT_STYLE_FLAG_ITALIC’ was not declared in this
scope
src/ft2font.cpp:2145: error: ‘FT_STYLE_FLAG_BOLD’ was not declared in this
scope
src/ft2font.cpp:2146: error: ‘FT_KERNING_DEFAULT’ was not declared in this
scope
src/ft2font.cpp:2147: error: ‘FT_KERNING_UNFITTED’ was not declared in this
scope
src/ft2font.cpp:2148: error: ‘FT_KERNING_UNSCALED’ was not declared in this
scope
src/ft2font.cpp:2150: error: ‘FT_LOAD_DEFAULT’ was not declared in this
scope
src/ft2font.cpp: In member function ‘Py::Object FT2Font::set_text(const
Py::Tuple&, const Py::Dict&)’:
src/ft2font.cpp:1100: error: ‘FT_LOAD_FORCE_AUTOHINT’ was not declared in
this scope
src/ft2font.cpp:1107: error: ‘matrix’ was not declared in this scope
src/ft2font.cpp:1107: error: ‘FT_Fixed’ was not declared in this scope
src/ft2font.cpp:1112: error: ‘FT_Bool’ was not declared in this scope
src/ft2font.cpp:1112: error: expected `;' before ‘use_kerning’
src/ft2font.cpp:1113: error: ‘FT_UInt’ was not declared in this scope
src/ft2font.cpp:1113: error: expected `;' before ‘previous’
src/ft2font.cpp:1115: error: request for member ‘resize’ in
‘((FT2Font*)this)->FT2Font::glyphs’, which is of non-class type ‘int’
src/ft2font.cpp:1116: error: ‘pen’ was not declared in this scope
src/ft2font.cpp:1123: error: expected `;' before ‘glyph_index’
src/ft2font.cpp:1130: error: ‘glyph_index’ was not declared in this scope
src/ft2font.cpp:1130: error: ‘face’ was not declared in this scope
src/ft2font.cpp:1130: error: ‘FT_Get_Char_Index’ was not declared in this
scope
src/ft2font.cpp:1135: error: ‘glyph_index’ was not declared in this scope
src/ft2font.cpp:1135: error: ‘face’ was not declared in this scope
src/ft2font.cpp:1135: error: ‘FT_Get_Char_Index’ was not declared in this
scope
src/ft2font.cpp:1139: error: ‘use_kerning’ was not declared in this scope
src/ft2font.cpp:1139: error: ‘previous’ was not declared in this scope
src/ft2font.cpp:1139: error: ‘glyph_index’ was not declared in this scope
src/ft2font.cpp:1141: error: ‘FT_Vector’ was not declared in this scope
src/ft2font.cpp:1141: error: expected `;' before ‘delta’
src/ft2font.cpp:1142: error: ‘face’ was not declared in this scope
src/ft2font.cpp:1143: error: ‘FT_KERNING_DEFAULT’ was not declared in this
scope
src/ft2font.cpp:1143: error: ‘delta’ was not declared in this scope
src/ft2font.cpp:1143: error: ‘FT_Get_Kerning’ was not declared in this scope
src/ft2font.cpp:1146: error: ‘error’ was not declared in this scope
src/ft2font.cpp:1146: error: ‘face’ was not declared in this scope
src/ft2font.cpp:1146: error: ‘glyph_index’ was not declared in this scope
src/ft2font.cpp:1146: error: ‘FT_Load_Glyph’ was not declared in this scope
src/ft2font.cpp:2151: error: ‘FT_LOAD_NO_SCALE’ was not declared in this
scope
src/ft2font.cpp:1156: error: ‘FT_Glyph’ was not declared in this scope
src/ft2font.cpp:1156: error: expected `;' before ‘thisGlyph’
src/ft2font.cpp:1157: error: ‘thisGlyph’ was not declared in this scope
src/ft2font.cpp:1157: error: ‘FT_Get_Glyph’ was not declared in this scope
src/ft2font.cpp:2152: error: ‘FT_LOAD_NO_HINTING’ was not declared in this
scope
src/ft2font.cpp:2153: error: ‘FT_LOAD_RENDER’ was not declared in this scope
src/ft2font.cpp:2154: error: ‘FT_LOAD_NO_BITMAP’ was not declared in this
scope
src/ft2font.cpp:1166: error: ‘FT_Glyph_Transform’ was not declared in this
scope
src/ft2font.cpp:1173: error: ‘previous’ was not declared in this scope
src/ft2font.cpp:1174: error: request for member ‘push_back’ in
‘((FT2Font*)this)->FT2Font::glyphs’, which is of non-class type ‘int’
src/ft2font.cpp:1178: error: request for member ‘size’ in
‘((FT2Font*)this)->FT2Font::glyphs’, which is of non-class type ‘int’
src/ft2font.cpp:1180: error: invalid types ‘int[unsigned int]’ for array
subscript
src/ft2font.cpp:1180: error: ‘FT_Glyph_Transform’ was not declared in this
scope
src/ft2font.cpp: In member function ‘Py::Object
FT2Font::get_num_glyphs(const Py::Tuple&)’:
src/ft2font.cpp:1198: error: request for member ‘size’ in
‘((FT2Font*)this)->FT2Font::glyphs’, which is of non-class type ‘int’
src/ft2font.cpp:2155: error: ‘FT_LOAD_VERTICAL_LAYOUT’ was not declared in
this scope
src/ft2font.cpp:2156: error: ‘FT_LOAD_FORCE_AUTOHINT’ was not declared in
this scopesrc/ft2font.cpp: In member function ‘Py::Object
FT2Font::load_char(const Py::Tuple&, const Py::Dict&)’:
src/ft2font.cpp:1224: error: ‘FT_LOAD_FORCE_AUTOHINT’ was not declared in
this scope
src/ft2font.cpp:1230: error: ‘face’ was not declared in this scope
src/ft2font.cpp:1230: error: ‘FT_Load_Char’ was not declared in this scope
src/ft2font.cpp:1237: error: ‘FT_Glyph’ was not declared in this scope
src/ft2font.cpp:1237: error: expected `;' before ‘thisGlyph’
src/ft2font.cpp:1238: error: ‘thisGlyph’ was not declared in this scope
src/ft2font.cpp:1238: error: ‘FT_Get_Glyph’ was not declared in this scope
src/ft2font.cpp:1245: error: request for member ‘size’ in
‘((FT2Font*)this)->FT2Font::glyphs’, which is of non-class type ‘int’
src/ft2font.cpp:1246: error: request for member ‘push_back’ in
‘((FT2Font*)this)->FT2Font::glyphs’, which is of non-class type ‘int’
src/ft2font.cpp:1247: error: no matching function for call to
‘Glyph::Glyph(<type error>, <type error>, size_t&)’
src/ft2font.cpp:423: note: candidates are: Glyph::Glyph(int)
src/ft2font.h:87: note: Glyph::Glyph(const Glyph&)
src/ft2font.cpp:2157: error: ‘FT_LOAD_CROP_BITMAP’ was not declared in this
scope
src/ft2font.cpp:2158: error: ‘FT_LOAD_PEDANTIC’ was not declared in this
scope
src/ft2font.cpp:2160: error: ‘FT_LOAD_IGNORE_GLOBAL_ADVANCE_WIDTH’ was not
declared in this scope
src/ft2font.cpp: In member function ‘Py::Object FT2Font::load_glyph(const
Py::Tuple&, const Py::Dict&)’:
src/ft2font.cpp:1275: error: ‘FT_LOAD_FORCE_AUTOHINT’ was not declared in
this scope
src/ft2font.cpp:2161: error: ‘FT_LOAD_NO_RECURSE’ was not declared in this
scope
src/ft2font.cpp:2162: error: ‘FT_LOAD_IGNORE_TRANSFORM’ was not declared in
this scope
src/ft2font.cpp:1281: error: ‘face’ was not declared in this scope
src/ft2font.cpp:1281: error: ‘FT_Load_Glyph’ was not declared in this scope
src/ft2font.cpp:2163: error: ‘FT_LOAD_MONOCHROME’ was not declared in this
scope
src/ft2font.cpp:1288: error: ‘FT_Glyph’ was not declared in this scope
src/ft2font.cpp:1288: error: expected `;' before ‘thisGlyph’
src/ft2font.cpp:1289: error: ‘thisGlyph’ was not declared in this scope
src/ft2font.cpp:1289: error: ‘FT_Get_Glyph’ was not declared in this scope
src/ft2font.cpp:1296: error: request for member ‘size’ in
‘((FT2Font*)this)->FT2Font::glyphs’, which is of non-class type ‘int’
src/ft2font.cpp:1297: error: request for member ‘push_back’ in
‘((FT2Font*)this)->FT2Font::glyphs’, which is of non-class type ‘int’
src/ft2font.cpp:1298: error: no matching function for call to
‘Glyph::Glyph(<type error>, <type error>, size_t&)’
src/ft2font.cpp:423: note: candidates are: Glyph::Glyph(int)
src/ft2font.h:87: note: Glyph::Glyph(const Glyph&)
src/ft2font.cpp: In member function ‘Py::Object
FT2Font::get_width_height(const Py::Tuple&)’:
src/ft2font.cpp:1316: error: ‘FT_BBox’ was not declared in this scope
src/ft2font.cpp:1316: error: expected `;' before ‘bbox’
src/ft2font.cpp:1319: error: ‘bbox’ was not declared in this scope
src/ft2font.cpp:2164: error: ‘FT_LOAD_LINEAR_DESIGN’ was not declared in
this scopesrc/ft2font.cpp: In member function ‘Py::Object
FT2Font::get_descent(const Py::Tuple&)’:
src/ft2font.cpp:1337: error: ‘FT_BBox’ was not declared in this scope
src/ft2font.cpp:1337: error: expected `;' before ‘bbox’
src/ft2font.cpp:1338: error: ‘bbox’ was not declared in this scope
src/ft2font.cpp:2167: error: ‘FT_LOAD_NO_AUTOHINT’ was not declared in this
scope
src/ft2font.cpp:2168: error: ‘FT_LOAD_TARGET_NORMAL’ was not declared in
this scope
src/ft2font.cpp: In member function ‘Py::Object
FT2Font::draw_glyphs_to_bitmap(const Py::Tuple&)’:
src/ft2font.cpp:1354: error: ‘FT_BBox’ was not declared in this scope
src/ft2font.cpp:1354: error: expected `;' before ‘string_bbox’
src/ft2font.cpp:1355: error: ‘string_bbox’ was not declared in this scope
src/ft2font.cpp:2169: error: ‘FT_LOAD_TARGET_LIGHT’ was not declared in this
scope
src/ft2font.cpp:2170: error: ‘FT_LOAD_TARsrc/ft2font.cpp:1362: error:
request for member ‘size’ in ‘((FT2Font*)this)->FT2Font::glyphs’, which is
of non-class type ‘int’
src/ft2font.cpp:1364: error: expected `;' before ‘bbox’
src/ft2font.cpp:1365: error: invalid types ‘int[size_t]’ for array subscript
src/ft2font.cpp:1365: error: ‘ft_glyph_bbox_pixels’ was not declared in this
scope
src/ft2font.cpp:1365: error: ‘bbox’ was not declared in this scope
src/ft2font.cpp:1365: error: ‘FT_Glyph_Get_CBox’ was not declared in this
scope
src/ft2font.cpp:1367: error: ‘error’ was not declared in this scope
src/ft2font.cpp:1367: error: invalid types ‘int[size_t]’ for array subscript
src/ft2font.cpp:1368: error: ‘ft_render_mode_normal’ was not declared in
this scope
src/ft2font.cpp:1371: error: ‘FT_Glyph_To_Bitmap’ was not declared in this
scope
src/ft2font.cpp:1377: error: ‘FT_BitmapGlyph’ was not declared in this scope
src/ft2font.cpp:1377: error: expected `;' before ‘bitmap’
src/ft2font.cpp:1381: error: ‘FT_Int’ was not declared in this scope
src/ft2font.cpp:1381: error: expected `;' before ‘x’
src/ft2font.cpp:1382: error: expected `;' before ‘y’
src/ft2font.cpp:1384: error: ‘bitmap’ was not declared in this scope
src/ft2font.cpp:1384: error: ‘x’ was not declared in this scope
src/ft2font.cpp:1384: error: ‘y’ was not declared in this scope
GET_MONO’ was not declared in this scope
src/ft2font.cpp: In member function ‘Py::Object FT2Font::get_xys(const
Py::Tuple&)’:
src/ft2font.cpp:1403: error: ‘FT_BBox’ was not declared in this scope
src/ft2font.cpp:1403: error: expected `;' before ‘string_bbox’
src/ft2font.cpp:1404: error: request for member ‘size’ in
‘((FT2Font*)this)->FT2Font::glyphs’, which is of non-class type ‘int’
src/ft2font.cpp:1406: error: request for member ‘size’ in
‘((FT2Font*)this)->FT2Font::glyphs’, which is of non-class type ‘int’
src/ft2font.cpp:1409: error: expected `;' before ‘bbox’
src/ft2font.cpp:1410: error: invalid types ‘int[size_t]’ for array subscript
src/ft2font.cpp:1410: error: ‘ft_glyph_bbox_pixels’ was not declared in this
scope
src/ft2font.cpp:1410: error: ‘bbox’ was not declared in this scope
src/ft2font.cpp:1410: error: ‘FT_Glyph_Get_CBox’ was not declared in this
scope
src/ft2font.cpp:1412: error: ‘error’ was not declared in this scope
src/ft2font.cpp:2171: error: ‘FT_LOAD_TARGET_LCD’ was not declared in this
scope
src/ft2font.cpp:1412: error: invalid types ‘int[size_t]’ for array subscript
src/ft2font.cpp:2172: error: ‘FT_LOAD_TARGET_LCD_V’ was not declared in this
scope
src/ft2font.cpp:1413: error: ‘ft_render_mode_normal’ was not declared in
this scope
src/ft2font.cpp:1416: error: ‘FT_Glyph_To_Bitmap’ was not declared in this
scopesrc/ft2font.cpp:2175: error: ‘_ft2Library’ was not declared in this
scope
src/ft2font.cpp:2175: error: ‘FT_Init_FreeType’ was not declared in this
scope
src/ft2font.cpp:1422: error: ‘FT_BitmapGlyph’ was not declared in this scope
src/ft2font.cpp:1422: error: expected `;' before ‘bitmap’
src/ft2font.cpp:1426: error: ‘FT_Int’ was not declared in this scope
src/ft2font.cpp:1426: error: expected `;' before ‘x’
src/ft2font.cpp:1427: error: expected `;' before ‘y’
src/ft2font.cpp:1429: error: ‘x’ was not declared in this scope
src/ft2font.cpp:1430: error: ‘y’ was not declared in this scope
src/ft2font.cpp: In destructor ‘virtual ft2font_module::~ft2font_module()’:
src/ft2font.cpp:2186: error: ‘_ft2Library’ was not declared in this scope
src/ft2font.cpp: In member function ‘Py::Object
FT2Font::draw_glyph_to_bitmap(const Py::Tuple&)’:
src/ft2font.cpp:1468: error: ‘FT_Vector’ was not declared in this scope
src/ft2font.cpp:1468: error: expected `;' before ‘sub_offset’
src/ft2font.cpp:1469: error: ‘sub_offset’ was not declared in this scope
src/ft2font.cpp:1478: error: request for member ‘size’ in
‘((FT2Font*)this)->FT2Font::glyphs’, which is of non-class type ‘int’
src/ft2font.cpp:1483: error: ‘error’ was not declared in this scope
src/ft2font.cpp:1483: error: invalid types ‘int[size_t]’ for array subscript
src/ft2font.cpp:1484: error: ‘ft_render_mode_normal’ was not declared in
this scope
src/ft2font.cpp:1487: error: ‘FT_Glyph_To_Bitmap’ was not declared in this
scope
src/ft2font.cpp:1493: error: ‘FT_BitmapGlyph’ was not declared in this scope
src/ft2font.cpp:1493: error: expected `;' before ‘bitmap’
src/ft2font.cpp:1495: error: ‘bitmap’ was not declared in this scope
src/ft2font.cpp:2186: error: ‘FT_Done_FreeType’ was not declared in this
scope
src/ft2font.cpp: In member function ‘Py::Object
FT2Font::get_glyph_name(const Py::Tuple&)’:
src/ft2font.cpp:1510: error: ‘face’ was not declared in this scope
src/ft2font.cpp:1510: error: ‘FT_HAS_GLYPH_NAMES’ was not declared in this
scope
src/ft2font.cpp:1516: error: ‘face’ was not declared in this scope
src/ft2font.cpp:1516: error: ‘FT_UInt’ was not declared in this scope
src/ft2font.cpp:1516: error: ‘FT_Get_Glyph_Name’ was not declared in this
scope
src/ft2font.cpp: In member function ‘Py::Object FT2Font::get_charmap(const
Py::Tuple&)’:
src/ft2font.cpp:1535: error: ‘FT_UInt’ was not declared in this scope
src/ft2font.cpp:1535: error: expected `;' before ‘index’
src/ft2font.cpp:1539: error: ‘FT_ULong’ was not declared in this scope
src/ft2font.cpp:1539: error: expected `;' before ‘code’
src/ft2font.cpp:1542: error: ‘code’ was not declared in this scope
src/ft2font.cpp:1543: error: ‘face’ was not declared in this scope
src/ft2font.cpp:1543: error: ‘FT_Get_Next_Char’ was not declared in this
scope
src/ft2font.cpp: In member function ‘Py::Object FT2Font::get_sfnt(const
Py::Tuple&)’:
src/ft2font.cpp:1612: error: ‘face’ was not declared in this scope
src/ft2font.cpp:1612: error: ‘FT_FACE_FLAG_SFNT’ was not declared in this
scope
src/ft2font.cpp:1617: error: ‘face’ was not declared in this scope
src/ft2font.cpp:1617: error: ‘FT_Get_Sfnt_Name_Count’ was not declared in
this scope
src/ft2font.cpp:1622: error: ‘FT_SfntName’ was not declared in this scope
src/ft2font.cpp:1622: error: expected `;' before ‘sfnt’
src/ft2font.cpp:1623: error: ‘FT_Error’ was not declared in this scope
src/ft2font.cpp:1623: error: expected `;' before ‘error’
src/ft2font.cpp:1625: error: ‘error’ was not declared in this scope
src/ft2font.cpp:1631: error: ‘sfnt’ was not declared in this scope
src/ft2font.cpp: In member function ‘Py::Object
FT2Font::get_name_index(const Py::Tuple&)’:
src/ft2font.cpp:1655: error: ‘face’ was not declared in this scope
src/ft2font.cpp:1655: error: ‘FT_String’ was not declared in this scope
src/ft2font.cpp:1655: error: ‘FT_Get_Name_Index’ was not declared in this
scope
src/ft2font.cpp:1654: error: expected primary-expression before ‘(’ token
src/ft2font.cpp:1654: error: expected primary-expression before ‘long’
src/ft2font.cpp:1654: error: expected `)' before ‘long’
src/ft2font.cpp: In member function ‘Py::Object
FT2Font::get_ps_font_info(const Py::Tuple&)’:
src/ft2font.cpp:1668: error: ‘PS_FontInfoRec’ was not declared in this scope
src/ft2font.cpp:1668: error: expected `;' before ‘fontinfo’
src/ft2font.cpp:1670: error: ‘FT_Error’ was not declared in this scope
src/ft2font.cpp:1670: error: expected `;' before ‘error’
src/ft2font.cpp:1671: error: ‘error’ was not declared in this scope
src/ft2font.cpp:1678: error: ‘fontinfo’ was not declared in this scope
src/ft2font.cpp: In member function ‘Py::Object
FT2Font::get_sfnt_table(const Py::Tuple&)’:
src/ft2font.cpp:1716: error: ‘face’ was not declared in this scope
src/ft2font.cpp:1716: error: ‘FT_Sfnt_Tag’ was not declared in this scope
src/ft2font.cpp:1716: error: ‘FT_Get_Sfnt_Table’ was not declared in this
scope
src/ft2font.cpp:1728: error: ‘TT_Header’ was not declared in this scope
src/ft2font.cpp:1728: error: ‘t’ was not declared in this scope
src/ft2font.cpp:1728: error: expected primary-expression before ‘)’ token
src/ft2font.cpp:1728: error: expected `;' before ‘table’
src/ft2font.cpp:1756: error: ‘TT_MaxProfile’ was not declared in this scope
src/ft2font.cpp:1756: error: ‘t’ was not declared in this scope
src/ft2font.cpp:1756: error: expected primary-expression before ‘)’ token
src/ft2font.cpp:1756: error: expected `;' before ‘table’
src/ft2font.cpp:1787: error: ‘TT_OS2’ was not declared in this scope
src/ft2font.cpp:1787: error: ‘t’ was not declared in this scope
src/ft2font.cpp:1787: error: expected primary-expression before ‘)’ token
src/ft2font.cpp:1787: error: expected `;' before ‘table’
src/ft2font.cpp:1820: error: ‘TT_HoriHeader’ was not declared in this scope
src/ft2font.cpp:1820: error: ‘t’ was not declared in this scope
src/ft2font.cpp:1820: error: expected primary-expression before ‘)’ token
src/ft2font.cpp:1820: error: expected `;' before ‘table’
src/ft2font.cpp:1843: error: ‘TT_VertHeader’ was not declared in this scope
src/ft2font.cpp:1843: error: ‘t’ was not declared in this scope
src/ft2font.cpp:1843: error: expected primary-expression before ‘)’ token
src/ft2font.cpp:1843: error: expected `;' before ‘table’
src/ft2font.cpp:1864: error: ‘TT_Postscript’ was not declared in this scope
src/ft2font.cpp:1864: error: ‘t’ was not declared in this scope
src/ft2font.cpp:1864: error: expected primary-expression before ‘)’ token
src/ft2font.cpp:1864: error: expected `;' before ‘table’
src/ft2font.cpp:1884: error: ‘TT_PCLT’ was not declared in this scope
src/ft2font.cpp:1884: error: ‘t’ was not declared in this scope
src/ft2font.cpp:1884: error: expected primary-expression before ‘)’ token
src/ft2font.cpp:1884: error: expected `;' before ‘table’
src/ft2font.cpp: In member function ‘Py::Object FT2Font::attach_file(const
Py::Tuple&)’:
src/ft2font.cpp:1939: error: ‘FT_Error’ was not declared in this scope
src/ft2font.cpp:1939: error: expected `;' before ‘error’
src/ft2font.cpp:1941: error: ‘error’ was not declared in this scope
src/ft2font.cpp: In function ‘void initft2font()’:
src/ft2font.cpp:2133: error: ‘FT_FACE_FLAG_SCALABLE’ was not declared in
this scope
src/ft2font.cpp:2134: error: ‘FT_FACE_FLAG_FIXED_SIZES’ was not declared in
this scope
src/ft2font.cpp:2135: error: ‘FT_FACE_FLAG_FIXED_WIDTH’ was not declared in
this scope
src/ft2font.cpp:2136: error: ‘FT_FACE_FLAG_SFNT’ was not declared in this
scope
src/ft2font.cpp:2137: error: ‘FT_FACE_FLAG_HORIZONTAL’ was not declared in
this scope
src/ft2font.cpp:2139: error: ‘FT_FACE_FLAG_KERNING’ was not declared in this
scope
src/ft2font.cpp:2140: error: ‘FT_FACE_FLAG_FAST_GLYPHS’ was not declared in
this scope
src/ft2font.cpp:2141: error: ‘FT_FACE_FLAG_MULTIPLE_MASTERS’ was not
declared in this scope
src/ft2font.cpp:2142: error: ‘FT_FACE_FLAG_GLYPH_NAMES’ was not declared in
this scope
src/ft2font.cpp:2143: error: ‘FT_FACE_FLAG_EXTERNAL_STREAM’ was not declared
in this scope
src/ft2font.cpp:2144: error: ‘FT_STYLE_FLAG_ITALIC’ was not declared in this
scope
src/ft2font.cpp:2145: error: ‘FT_STYLE_FLAG_BOLD’ was not declared in this
scope
src/ft2font.cpp:2146: error: ‘FT_KERNING_DEFAULT’ was not declared in this
scope
src/ft2font.cpp:2147: error: ‘FT_KERNING_UNFITTED’ was not declared in this
scope
src/ft2font.cpp:2148: error: ‘FT_KERNING_UNSCALED’ was not declared in this
scope
src/ft2font.cpp:2150: error: ‘FT_LOAD_DEFAULT’ was not declared in this
scope
src/ft2font.cpp:2151: error: ‘FT_LOAD_NO_SCALE’ was not declared in this
scope
src/ft2font.cpp:2152: error: ‘FT_LOAD_NO_HINTING’ was not declared in this
scope
src/ft2font.cpp:2153: error: ‘FT_LOAD_RENDER’ was not declared in this scope
src/ft2font.cpp:2154: error: ‘FT_LOAD_NO_BITMAP’ was not declared in this
scope
src/ft2font.cpp:2155: error: ‘FT_LOAD_VERTICAL_LAYOUT’ was not declared in
this scope
src/ft2font.cpp:2156: error: ‘FT_LOAD_FORCE_AUTOHINT’ was not declared in
this scope
src/ft2font.cpp:2157: error: ‘FT_LOAD_CROP_BITMAP’ was not declared in this
scope
src/ft2font.cpp:2158: error: ‘FT_LOAD_PEDANTIC’ was not declared in this
scope
src/ft2font.cpp:2160: error: ‘FT_LOAD_IGNORE_GLOBAL_ADVANCE_WIDTH’ was not
declared in this scope
src/ft2font.cpp:2161: error: ‘FT_LOAD_NO_RECURSE’ was not declared in this
scope
src/ft2font.cpp:2162: error: ‘FT_LOAD_IGNORE_TRANSFORM’ was not declared in
this scope
src/ft2font.cpp:2163: error: ‘FT_LOAD_MONOCHROME’ was not declared in this
scope
src/ft2font.cpp:2164: error: ‘FT_LOAD_LINEAR_DESIGN’ was not declared in
this scope
src/ft2font.cpp:2167: error: ‘FT_LOAD_NO_AUTOHINT’ was not declared in this
scope
src/ft2font.cpp:2168: error: ‘FT_LOAD_TARGET_NORMAL’ was not declared in
this scope
src/ft2font.cpp:2169: error: ‘FT_LOAD_TARGET_LIGHT’ was not declared in this
scope
src/ft2font.cpp:2170: error: ‘FT_LOAD_TARGET_MONO’ was not declared in this
scope
src/ft2font.cpp:2171: error: ‘FT_LOAD_TARGET_LCD’ was not declared in this
scope
src/ft2font.cpp:2172: error: ‘FT_LOAD_TARGET_LCD_V’ was not declared in this
scope
src/ft2font.cpp:2175: error: ‘_ft2Library’ was not declared in this scope
src/ft2font.cpp:2175: error: ‘FT_Init_FreeType’ was not declared in this
scope
src/ft2font.cpp: In destructor ‘virtual ft2font_module::~ft2font_module()’:
src/ft2font.cpp:2186: error: ‘_ft2Library’ was not declared in this scope
src/ft2font.cpp:2186: error: ‘FT_Done_FreeType’ was not declared in this
scope
lipo: can't figure out the architecture type of:
/var/folders/92/92hak0-vH1Ck6HikbNZ+xk+++TI/-Tmp-//cckzyxlk.out
error: command 'gcc-4.0' failed with exit status 1...
 
[truncated message content]
From: Russell E. O. <ro...@uw...> - 2010年10月04日 20:41:50
In article <row...@ne...>,
 "Russell E. Owen" <ro...@uw...> wrote:
> I finished my strip chart widget thanks to help from Tony S Yu, Benjamin 
> Root and others here. It supports multiple subplots and multiple 
> lines/subplot. Here's a copy if anyone is interested:
> <http://www.astro.washington.edu/users/rowen/python/StripChartWdg.py>
> I plan to add it to the RO python package once I have tested it a bit 
> more. Meanwhile, the example code at the end uses a prerelease RO module 
> that I've also uploaded: 
> <http://www.astro.washington.edu/users/rowen/python/RandomWalk.py>
> 
> It uses the TkAgg back end, but is easily ported (as usual, event timing 
> is the main issue; I wish Python had its own event model that all GUIs 
> could use).
> 
> I think I finally got the animation API figured out well enough to 
> produce a robust result. Strip charts are intrinsically poor candidates 
> for the animation API because the time axis is constantly shifting, but 
> nonetheless animation does produce a small reduction in CPU usage.
> 
> Any feedback would be most welcome.
> 
> Regards,
> 
> -- Russell
Now released in RO 2.6.0 as RO/Wdg/StripChartWdg.py
<http://pypi.python.org/pypi/RO/2.6.0>
-- Russell
From: John H. <jd...@gm...> - 2010年10月04日 20:40:27
On Mon, Oct 4, 2010 at 3:37 PM, Tony S Yu <ts...@gm...> wrote:
> Thanks! I'll give both imshow and pcolor a try. Most likely I'll use pcolor, since lighter bins would completely disappear without faceting (... or maybe that's a good thing).
The barcode demo shows something similar with a binary color map for imshow
http://matplotlib.sourceforge.net/examples/pylab_examples/barcode_demo.html
JDH
From: Tony S Yu <ts...@gm...> - 2010年10月04日 20:37:42
On Oct 4, 2010, at 4:30 PM, John Hunter wrote:
> On Thu, Sep 30, 2010 at 8:44 PM, Tony S Yu <ts...@gm...> wrote:
>> I'd like to make something in between a box plot [1] and a histogram. Each histogram would be represented by a single, tall, rectangular patch (like the box in a box plot), and the patch would be subdivided by the bin edges of the histogram. The face color of each sub-patch would replace the bar height in the histogram.
>> 
>> If any of that actually made sense:
>> 
>> * Does this type of plot have a name?
>> 
>> * Is there an easy way to do this in Matplotlib?
>> 
>> * If there isn't an easy way, what would be a good starting point? Initial ideas: 1) Use pcolor or imshow and embed this axes in a larger axes, 2) represent the sub-patches as a PolyCollection.
> 
> If you don't need faceting (dark edges around the bins), imshow with
> the extent set would be the easiest way. If you want faceting, pcolor
> should work as well.
Thanks! I'll give both imshow and pcolor a try. Most likely I'll use pcolor, since lighter bins would completely disappear without faceting (... or maybe that's a good thing).
-Tony
From: Tony S Yu <ts...@gm...> - 2010年10月04日 20:35:05
On Oct 4, 2010, at 4:09 PM, Friedrich Romstedt wrote:
>> """
>> First attempt at a histogram strip chart (made up name).
>> if-main block taken from [1] except that I've replaced uniform distributions
>> with normal distributions.
>> [1] http://matplotlib.sourceforge.net/examples/pylab_examples/boxplot_demo3.html
>> """
>> import numpy as np
>> import matplotlib.pyplot as plt
>> from matplotlib import collections
>> 
>> NORM_TYPES = dict(max=max, sum=sum)
>> class BinCollection(collections.PatchCollection):
>> def __init__(self, hist, bin_edges, x=0, width=1, cmap=plt.cm.gray_r,
>> norm_type='max', **kwargs):
>> yy = (bin_edges[:-1] + bin_edges[1:])/2.
>> heights = np.diff(bin_edges)
>> bins = [plt.Rectangle((x, y), width, h) for y, h in zip(yy, heights)]
>> norm = NORM_TYPES[norm_type]
>> fc = cmap(np.asarray(hist, dtype=float)/norm(hist))
> 
>> super(BinCollection, self).__init__(bins, facecolors=fc, **kwargs)
> 
> Is this equivalent to writing collections.PatchCollection.__init__()
> and what are the advantages of super()?
I believe collections.PatchCollection.__init__() is equivalent. In this instance, I don't think there are advantages (or disadvantages) to using super---it's just how I'm used to writing classes.
> I think you can use axes.pcolor() to replace BinCollection. pcolor()
> just adds a collection similar to what you do now by hand for you.
> With appropriate arguments it should do the job. You can also look
> into pcolorfast() and pcolormesh().
Yes, you're right. This was actually my main question in the original post; i.e. what plotting function to start with. I'm not really sure how I overlooked pcolor(mesh) as a viable option. Thanks.
> 
>> def histstrip(x, positions=None, widths=None, ax=None):
>> if ax is None:
>> ax = plt.gca()
>> if positions is None:
>> positions = range(1, len(x) + 1)
>> if widths is None:
>> widths = np.min(np.diff(positions)) / 2. * np.ones(len(positions))
>> for data, x_pos, w in zip(x, positions, widths):
>> x_pos -= w/2.
>> hist, bin_edges = np.histogram(data)
> 
> No other arguments to numpy.histogram() allowed?
As I mentioned, this was just a function I hacked together. I didn't try to make it general purpose (yet).
> 
> In my opinion this is too special to be added as a general matplotlib
> plotting feature.
I'd agree that it's pretty specialized; especially since I haven't been able to find any mention of it. I'm still curious if there's a name for this type of plot if anyone out there knows.
Best,
-Tony
> 
> Friedrich
From: John H. <jd...@gm...> - 2010年10月04日 20:30:39
On Thu, Sep 30, 2010 at 8:44 PM, Tony S Yu <ts...@gm...> wrote:
> I'd like to make something in between a box plot [1] and a histogram. Each histogram would be represented by a single, tall, rectangular patch (like the box in a box plot), and the patch would be subdivided by the bin edges of the histogram. The face color of each sub-patch would replace the bar height in the histogram.
>
> If any of that actually made sense:
>
> * Does this type of plot have a name?
>
> * Is there an easy way to do this in Matplotlib?
>
> * If there isn't an easy way, what would be a good starting point? Initial ideas: 1) Use pcolor or imshow and embed this axes in a larger axes, 2) represent the sub-patches as a PolyCollection.
If you don't need faceting (dark edges around the bins), imshow with
the extent set would be the easiest way. If you want faceting, pcolor
should work as well.
From: Friedrich R. <fri...@gm...> - 2010年10月04日 20:27:07
2010年10月4日 Nicolas Rougier <Nic...@lo...>:
> I'm trying to have animated plots using draw_artist on mac os x and I got an error with the following script:
>
> import numpy as np
> import matplotlib.pyplot as plt
>
> plt.ion()
> plt.figure()
> subplot = plt.subplot(1,1,1)
> axis = plt.imshow(np.random.random((10,10)))
> plt.draw()
> subplot.draw_artist(axis)
> plt.show()
>
> The traceback is:
>
> Traceback (most recent call last):
> File "matplotlib-bug.py", line 8, in <module>
>  subplot.draw_artist(axis)
> File "/Volumes/Data/Local/lib/python2.7/site-packages/matplotlib/axes.py", line 1946, in draw_artist
>  a.draw(self._cachedRenderer)
> File "/Volumes/Data/Local/lib/python2.7/site-packages/matplotlib/artist.py", line 55, in draw_wrapper
>  draw(artist, renderer, *args, **kwargs)
> File "/Volumes/Data/Local/lib/python2.7/site-packages/matplotlib/image.py", line 338, in draw
>  gc = renderer.new_gc()
> File "/Volumes/Data/Local/lib/python2.7/site-packages/matplotlib/backends/backend_macosx.py", line 105, in new_gc
>  self.gc.save()
> RuntimeError: CGContextRef is NULL
>
>
> Is there something wrong in my script (it seems to be working on linux) ?
I don't know what it is, and it looks like some problem with the
Mac-native backend, but I believe you can sort it out by just
switching the backend to e.g. TkAgg.
Friedrich
From: Friedrich R. <fri...@gm...> - 2010年10月04日 20:10:04
> """
> First attempt at a histogram strip chart (made up name).
> if-main block taken from [1] except that I've replaced uniform distributions
> with normal distributions.
> [1] http://matplotlib.sourceforge.net/examples/pylab_examples/boxplot_demo3.html
> """
> import numpy as np
> import matplotlib.pyplot as plt
> from matplotlib import collections
>
> NORM_TYPES = dict(max=max, sum=sum)
> class BinCollection(collections.PatchCollection):
>   def __init__(self, hist, bin_edges, x=0, width=1, cmap=plt.cm.gray_r,
>         norm_type='max', **kwargs):
>     yy = (bin_edges[:-1] + bin_edges[1:])/2.
>     heights = np.diff(bin_edges)
>     bins = [plt.Rectangle((x, y), width, h) for y, h in zip(yy, heights)]
>     norm = NORM_TYPES[norm_type]
>     fc = cmap(np.asarray(hist, dtype=float)/norm(hist))
>     super(BinCollection, self).__init__(bins, facecolors=fc, **kwargs)
Is this equivalent to writing collections.PatchCollection.__init__()
and what are the advantages of super()?
I think you can use axes.pcolor() to replace BinCollection. pcolor()
just adds a collection similar to what you do now by hand for you.
With appropriate arguments it should do the job. You can also look
into pcolorfast() and pcolormesh().
> def histstrip(x, positions=None, widths=None, ax=None):
>   if ax is None:
>     ax = plt.gca()
>   if positions is None:
>     positions = range(1, len(x) + 1)
>   if widths is None:
>     widths = np.min(np.diff(positions)) / 2. * np.ones(len(positions))
>   for data, x_pos, w in zip(x, positions, widths):
>     x_pos -= w/2.
>     hist, bin_edges = np.histogram(data)
No other arguments to numpy.histogram() allowed?
>     bins = BinCollection(hist, bin_edges, width=w, x=x_pos)
>     ax.add_collection(bins, autolim=True)
>   ax.set_xticks(positions)
>   ax.autoscale_view()
> if __name__ == '__main__':
>   import matplotlib.pyplot as plt
>   import numpy as np
>   np.random.seed(2)
>   inc = 0.1
>   e1 = np.random.normal(0,1, size=(500,))
>   e2 = np.random.normal(0,1, size=(500,))
>   e3 = np.random.normal(0,1 + inc, size=(500,))
>   e4 = np.random.normal(0,1 + 2*inc, size=(500,))
>   treatments = [e1,e2,e3,e4]
>   fig, ax = plt.subplots()
>   pos = np.array(range(len(treatments)))+1
>   histstrip(treatments, ax=ax)
>   ax.set_xlabel('treatment')
>   ax.set_ylabel('response')
>   fig.subplots_adjust(right=0.99,top=0.99)
>   plt.show()
In my opinion this is too special to be added as a general matplotlib
plotting feature.
Friedrich
From: Benjamin R. <ben...@ou...> - 2010年10月04日 20:05:18
On Mon, Oct 4, 2010 at 2:21 PM, Erik Tollerud <eri...@gm...>wrote:
> I've noticed some odd behavior in the mplot3d toolkit when using
> scatter3D with plot_surface. What I want to do is generate the
> surface with an alpha level of 0.5, such that any points that are
> between me and the surface should come out fully opaque, and any
> points behind the surface should be rendered blended with the surface.
> Instead, the scattered points are blended with the surface regardless
> of whether they are in front of it or behind. There's also a weird
> behavior where, depending on the viewing angle, the points will
> suddenly snap from fully opaque (even if behind the surface) to
> transparent. An example is attached, with renderings of the two
> states in the URLs below.
>
> Is this a bug, or am I doing something wrong?
>
> http://dl.dropbox.com/u/8683962/mpl3dalpha-1.png
> http://dl.dropbox.com/u/8683962/mpl3dalpha-2.png
>
> --
> Erik Tollerud
>
>
At first glance, I wonder if this is just because of mplot3d's naive
approach of figuring out what is behind other things. mplot3d doesn't do
any sort of physics or ray-tracing to figure out how elements are positioned
relative to the camera. Try it again with perfectly opaque surface and
dots, and I bet you will have dots "magically" appearing in front of the
surface at certain viewing angles and then disappearing.
Note, I have only looked at the photos, not the code.
Ben Root
From: Benjamin R. <ben...@ou...> - 2010年10月04日 19:58:53
On Mon, Oct 4, 2010 at 1:57 PM, Waléria Antunes David <
wal...@gm...> wrote:
> Hi all,
>
> My problem is this error: http://pastebin.com/bfu29WuF<http://pastebin.com/ZPzdC5c8>
>
> my code: http://pastebin.com/KzwEmucN
>
> What could be?
>
> Thanks
> Waleria
>
Waleria,
I am not entirely familiar with programming python in a Windows environment,
however, you are attempting to open files with the name: 'C:\date1.dat'.
The backslash is probably acting as an escape character and causing the
filename to be interpreted differently from how you expect. Try this:
x, y, yerr = np.loadtxt(r'C:\date1.dat', unpack=True)
The 'r' before the string forces python to not interpret any special
characters in a special way. Also note that I simplified your data loading
code with the use of the 'unpack=True' keyword argument.
I hope this helps,
Ben Root
From: Tony S Yu <ts...@gm...> - 2010年10月04日 19:51:58
On Oct 4, 2010, at 3:14 PM, Jouni K. Seppänen wrote:
> Tony S Yu <ts...@gm...> writes:
> 
>> This is probably unrelated, but I can't even use serif fonts on the
>> MacOSX backend (it just shows up as sans-serif). I tried Times New
>> Roman, Vera, and a Computer Modern unicode font that I normally use).
> 
> I noticed that I didn't really get Vera either, probably because I don't
> have it installed via the usual OS X way, and the MacOSX backend only
> uses fonts that it can find via CTFontCreateWithName or
> ATSFontFindFromPostScriptName, depending on the OS X version it's
> compiled for. Do you see these fonts in Font Book?
Both Times New Roman and CMU show up in Font Book. (There's also a Bitstream Vera font there, but it's different from the one Matplotlib uses.)
Like I said, this is probably a separate issue. I don't want to distract from the issue Joey raised---especially since I don't normally use the MacOSX backend.
-Tony
From: Friedrich R. <fri...@gm...> - 2010年10月04日 19:46:23
Yaaa, this was some time ago, I guess you did the following:
* export CC=gcc-4.2
* export MACOSX_DEPLOYMENT_TARGET=....
* maybe also modifying the setupext.py
I must say, that Python distutils (or distribute, whatever you use)
overrides the CC environment variable with the gcc version Python was
compiled with. If you use python.org Python, this will be gcc-4.0.
Could be that this is your issue: You compiled freetype with gcc-4.2
and Python uses gcc-4.0 for compiling matplotlib. Then the matplotlib
libraries cannot load the gcc-4.2 compiled ones, because they are "too
new". Encountered this several times on my own computer.
Notice that the setupext.py instructions are still valid. The
_png.cpp instructions are obsolete for recent versions of matplotlib,
you can use libpng-1.4 right away.
First, I'll wait for your response if you use python.org Python, and
then we see what to do next. Don't want to bombard you with
non-applicable recommendations.
Concerning your message:
2010年10月3日 Åke Kullenberg <ake...@gm...>:
> I just installed matplotlib-1.0.0 on my system (Snow Leopard, python 2.7),
> but somehow when I try to import pyplot i get the error below.
> For reference, I installed matplotlib from source. Prior to that I installed
> libpng-1.4.4 and freetype-2.4.2 the usual way (./configure, make, make
> install) plus I installed pkgcong as well. After getting the error I tried
> the tips Friedrich R gave in this thread
> (http://old.nabble.com/Symbol-not-found-td28994434.html) too, but I still
> get the error.
Notice, I'm using Python 2.6, I hope this won't be an issue. Using
Snow Leopard as well.
> From a few google attempts it seems that it is an issue of dynamic vs static
> linking. I can't say that I know what that is, but I'd be very interested in
> knowing whether I can do anything from my side to sort things out.
Hmm, here maybe you also ran across what I said, just to add that
afaict make.osx isn't doing static linking, but rather linking against
newly-installed shared libs. The libs are compiled just by the
make.osx script. Got this impression when I had an own look into the
script.
> Here is the error:
>   from matplotlib import ft2font
> ImportError:
> dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/ft2font.so,
> 2): Symbol not found: _FT_Attach_File
>  Referenced from:
> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/ft2font.so
>  Expected in: dynamic lookup
Yeah, this looks pretty much like what I said.
Sorry for the confusion with the old threads, I think best will be to
search the matplotlib archive for recent threads, my replies got
better with time, as I sorted out things myself. I really feel I
should write things up for the matplotlib page as far as I came so far
with my investigations ... And please reply back.
If the external libraries you're using change: Do a new build in a
new, freshly untared matplotlib directory or sth like that. I found
that, for some reason, it is necessary to really rebuild the
matplotlib libraries when a shared library they load is changed. It
is not sufficient to just replace the external shared library (like
freetype2) to make it work. My knowledge in linking is not as deep as
that I could explain the guts why this is so, but you have to do it (I
had to at least). Keep in mind that dependency checks do not include
the shared libs matplotlib libraries like ft2font rely on. I can only
guess that it only applies to the gcc-4.0/4.2 issue. Otherwise shared
libs would be nearly useless.
Friedrich
From: Erik T. <eri...@gm...> - 2010年10月04日 19:21:31
Attachments: surfscat3d.py
I've noticed some odd behavior in the mplot3d toolkit when using
scatter3D with plot_surface. What I want to do is generate the
surface with an alpha level of 0.5, such that any points that are
between me and the surface should come out fully opaque, and any
points behind the surface should be rendered blended with the surface.
 Instead, the scattered points are blended with the surface regardless
of whether they are in front of it or behind. There's also a weird
behavior where, depending on the viewing angle, the points will
suddenly snap from fully opaque (even if behind the surface) to
transparent. An example is attached, with renderings of the two
states in the URLs below.
Is this a bug, or am I doing something wrong?
http://dl.dropbox.com/u/8683962/mpl3dalpha-1.png
http://dl.dropbox.com/u/8683962/mpl3dalpha-2.png
-- 
Erik Tollerud
From: Jouni K. S. <jk...@ik...> - 2010年10月04日 19:14:47
Tony S Yu <ts...@gm...> writes:
> This is probably unrelated, but I can't even use serif fonts on the
> MacOSX backend (it just shows up as sans-serif). I tried Times New
> Roman, Vera, and a Computer Modern unicode font that I normally use).
I noticed that I didn't really get Vera either, probably because I don't
have it installed via the usual OS X way, and the MacOSX backend only
uses fonts that it can find via CTFontCreateWithName or
ATSFontFindFromPostScriptName, depending on the OS X version it's
compiled for. Do you see these fonts in Font Book?
-- 
Jouni K. Seppänen
http://www.iki.fi/jks
From: Jouni K. S. <jk...@ik...> - 2010年10月04日 19:09:20
Joey Richards <jo...@ca...> writes:
> The system-installed fonts all should have the minus sign, though I
> don't know for sure which fonts matplotlib is using.
You can find out with dtrace: start up python as usual but don't plot
anything yet, then in another terminal type "ps a" to find out the PID
of the process and trace it with dtruss:
sudo dtruss -p 29611 |& grep Fonts
Here 29611 is the PID. When you plot something, you should see the
process access some files, e.g.
open("/Library/Fonts/Times New Roman.ttf0円", 0x0, 0x0)		 = 12 0
-- 
Jouni K. Seppänen
http://www.iki.fi/jks
From: Tony S Yu <ts...@gm...> - 2010年10月04日 19:07:47
On Oct 4, 2010, at 2:56 PM, Jouni K. Seppänen wrote:
> Joey Richards <jo...@ca...> writes:
> 
>> When I plot with the MacOSX backend using a serif font, the negative
>> signs on the axis labels show up as the "missing glyph" open squares
>> rather than minus signs.
> 
>> I am using matplotlib 1.0 installed from the dmg file for Python 2.6
>> on OSX 10.6. I'm using Python 2.6.6 installed from the python.org
>> binary distribution.
> 
> FWIW, I can't reproduce this on OS X 10.6.4, system Python 2.6.1,
> self-compiled trunk matplotlib, tried Vera and Times New Roman.
This is probably unrelated, but I can't even use serif fonts on the MacOSX backend (it just shows up as sans-serif). I tried Times New Roman, Vera, and a Computer Modern unicode font that I normally use).
In contrast, serif fonts work fine with TkAgg and Qt4Agg on my system (OS X 10.6.4, system Python 2.6.1, matplotlib trunk).
-Tony
From: Waléria A. D. <wal...@gm...> - 2010年10月04日 18:57:39
Hi all,
My problem is this error:
http://pastebin.com/bfu29WuF<http://pastebin.com/ZPzdC5c8>
my code: http://pastebin.com/KzwEmucN
What could be?
Thanks
Waleria
From: Jouni K. S. <jk...@ik...> - 2010年10月04日 18:56:54
Joey Richards <jo...@ca...> writes:
> When I plot with the MacOSX backend using a serif font, the negative
> signs on the axis labels show up as the "missing glyph" open squares
> rather than minus signs.
> I am using matplotlib 1.0 installed from the dmg file for Python 2.6
> on OSX 10.6. I'm using Python 2.6.6 installed from the python.org
> binary distribution.
FWIW, I can't reproduce this on OS X 10.6.4, system Python 2.6.1,
self-compiled trunk matplotlib, tried Vera and Times New Roman.
-- 
Jouni K. Seppänen
http://www.iki.fi/jks
On Oct 4, 2010, at 6:54 AM, Michael Droettboom wrote:
> On 09/17/2010 08:57 PM, Joey Richards wrote:
>> Hello. First, let me apologize if this has been covered---I tried to search the mailing list archives but was unable to get that to work (even queries that should have returned many hits were returning nothing).
>> 
>> When I plot with the MacOSX backend using a serif font, the negative signs on the axis labels show up as the "missing glyph" open squares rather than minus signs.
>> 
>> Things that work around the problem:
>> - disabling the unicode minus sign via axes.unicode_minus: False in the matplotlibrc file (though this obviously gives a hyphen instead of a true minus sign)
>> - switching to a sans-serif font
>> - switching to TkAgg or wxAgg backends
>> - using the text.usetex option
>> 
>> Things that don't work:
>> - switching to a different serif font (at least among Times, Times New Roman, and Bitstream Vera Serif)
>> 
> FWIW, Bitstream Vera Serif (at least the one distributed with 
> matplotlib) does have the minus sign (at codepoint U2212), so I don't 
> think it's the fault of the font. I'm on Linux and don't have Apple's 
> Times or Times New Roman, so I can't verify those.
> 
> This sounds like a bug in the Mac OS-X backend in how it's handling 
> Unicode characters -- though that doesn't explain why the sans-serif 
> font is working.
> 
> Do you have any customizations related to fonts in your matplotlibrc file?
> 
I've set the fonts to use (via font.serif, font.sans-serif, etc) and the font family (via font.family), and the size (via font.size), but commenting those out doesn't seem to help. The system-installed fonts all should have the minus sign, though I don't know for sure which fonts matplotlib is using.
joey
From: Jouni K. S. <jk...@ik...> - 2010年10月04日 18:35:40
Michael Droettboom <md...@st...> writes:
> On 10/02/2010 01:39 PM, Jouni K. Seppänen wrote:
>> Benjamin Root<ben...@ou...> writes:
>>
>> 
>>> And yet, we still allow for saving to jpegs.
>>> 
>> Wow, I didn't know. Last time I tried that I got a traceback, and
>> assumed that it was not supported exactly because jpeg is a nonsensical
>> format for most graphs.
>>
>> I just tried again, and got "TypeError: 'int' object is unsubscriptable"
>> from PIL/JpegImagePlugin.pyc in _save(im, fp, filename). I suppose this
>> doesn't get much testing.
>> 
> Aside from the question of whether we "should" support JPEGs, etc., that 
> code path should work (and in fact it does on my machine). What version 
> of PIL do you have installed, and can you provide the full traceback 
> here? 
It seems that I have an egg install of version 1.1.6., and here's a
traceback:
Traceback (most recent call last):
 File "<stdin>", line 1, in <module>
 File "/Users/jks/Hacking/mpl/git/lib/matplotlib/pyplot.py", line 363, in savefig
 return fig.savefig(*args, **kwargs)
 File "/Users/jks/Hacking/mpl/git/lib/matplotlib/figure.py", line 1160, in savefig
 self.canvas.print_figure(*args, **kwargs)
 File "/Users/jks/Hacking/mpl/git/lib/matplotlib/backend_bases.py", line 1961, in print_figure
 **kwargs)
 File "/Users/jks/Hacking/mpl/git/lib/matplotlib/backend_bases.py", line 1787, in print_jpg
 return image.save(filename_or_obj, **kwargs)
 File "/Library/Python/2.6/site-packages/PIL/Image.py", line 1405, in save
 save_handler(self, fp, filename)
 File "/Library/Python/2.6/site-packages/PIL/JpegImagePlugin.py", line 406, in _save
 dpi[0], dpi[1]
TypeError: 'int' object is unsubscriptable
It looks like something is now passing a dpi keyword argument to
print_jpg, but something inside PIL is expecting its value to be a
sequence. I'll commit a fix.
-- 
Jouni K. Seppänen
http://www.iki.fi/jks
From: Nicolas R. <Nic...@lo...> - 2010年10月04日 16:56:41
I'm trying to have animated plots using draw_artist on mac os x and I got an error with the following script:
import numpy as np
import matplotlib.pyplot as plt
plt.ion()
plt.figure()
subplot = plt.subplot(1,1,1)
axis = plt.imshow(np.random.random((10,10)))
plt.draw()
subplot.draw_artist(axis)
plt.show()
The traceback is:
Traceback (most recent call last):
 File "matplotlib-bug.py", line 8, in <module>
 subplot.draw_artist(axis)
 File "/Volumes/Data/Local/lib/python2.7/site-packages/matplotlib/axes.py", line 1946, in draw_artist
 a.draw(self._cachedRenderer)
 File "/Volumes/Data/Local/lib/python2.7/site-packages/matplotlib/artist.py", line 55, in draw_wrapper
 draw(artist, renderer, *args, **kwargs)
 File "/Volumes/Data/Local/lib/python2.7/site-packages/matplotlib/image.py", line 338, in draw
 gc = renderer.new_gc()
 File "/Volumes/Data/Local/lib/python2.7/site-packages/matplotlib/backends/backend_macosx.py", line 105, in new_gc
 self.gc.save()
RuntimeError: CGContextRef is NULL
Is there something wrong in my script (it seems to be working on linux) ?
Information:
matplotlib version: 1.0.0
python version 2.7
macosx version: 10.6.4
Nicolas

Showing results of 34

1 2 > >> (Page 1 of 2)
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /