Build MPL with VS 2008 problem

Hi,

  I am trying to build MPL 1.1.0 with VS 2008 on Windows XP 32. I

have installed

  * Python 2.7.2

  * Numpy 1.6

  In the docs it says

  Windows users only need the first two (python and numpy) since the

others are built into the matplotlib Windows installers available
for download at the sourceforge site. OK, so I also downloaded
matplotlib-1.1.0.win32-py2.7.exe and installed that.

  Now I cd to the matplotlib-1.1.0 directory and issue

  python setup.py build

  and get the following error.

  C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c

/nologo /Ox /MD /W

  3 /GS- /DNDEBUG -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API

-DPYCXX_ISO_CPP_LIB=1 -Ic

  :\Python27\lib\site-packages\numpy\core\include -I.

-Ic:\Python27\lib\site-packa

  ges\numpy\core\include\freetype2 -I.\freetype2

-Ic:\Python27\include -Ic:\Python

  27\PC /Tpsrc/ft2font.cpp

/Fobuild\temp.win32-2.7\Release\src/ft2font.obj

  ft2font.cpp

  C:\Program Files\Microsoft Visual Studio

9.0\VC\INCLUDE\xlocale(342) : warning C

  4530: C++ exception handler used, but unwind semantics are not

enabled. Specify

  /EHsc

  c:\cygwin\home\mads ipsen\matplotlib-1.1.0\src\ft2font.h(16) :

fatal error C1083

  : Cannot open include file: 'ft2build.h': No such file or

directory

  error: command '"C:\Program Files\Microsoft Visual Studio

9.0\VC\BIN\cl.exe"’ fa

  iled with exit status 2

  Any clues to why       ft2build.h

cannot be located. The above docs says it should be part of the
binary installer.

  Best regards,

  Mads
···
-- +-----------------------------------------------------+
| Mads Ipsen |
+----------------------+------------------------------+
| Gåsebæksvej 7, 4. tv | |
| DK-2500 Valby | phone: +45-29716388 |
| Denmark | email: |
+----------------------+------------------------------+

mads.ipsen@…287…

The binary for freetype is included with the installer, but the
headers (needed to build, but not to run) are not. Do you need to
build matplotlib from source, or just use it?

Mike
···

On 11/02/2011 10:53 AM, Mads Ipsen wrote:

Hi,

    I am trying to build MPL 1.1.0 with VS 2008 on Windows XP 32. I

have installed

    * Python 2.7.2

    * Numpy 1.6



    In the docs it says



    Windows users only need the first two (python and numpy) since

the others are built into the matplotlib Windows installers
available for download at the sourceforge site. OK, so I also
downloaded matplotlib-1.1.0.win32-py2.7.exe and installed that.

    Now I cd to the matplotlib-1.1.0 directory and issue



    python setup.py build



    and get the following error.



    C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c

/nologo /Ox /MD /W

    3 /GS- /DNDEBUG -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API

-DPYCXX_ISO_CPP_LIB=1 -Ic

    :\Python27\lib\site-packages\numpy\core\include -I.

-Ic:\Python27\lib\site-packa

    ges\numpy\core\include\freetype2 -I.\freetype2

-Ic:\Python27\include -Ic:\Python

    27\PC /Tpsrc/ft2font.cpp

/Fobuild\temp.win32-2.7\Release\src/ft2font.obj

    ft2font.cpp

    C:\Program Files\Microsoft Visual Studio

9.0\VC\INCLUDE\xlocale(342) : warning C

    4530: C++ exception handler used, but unwind semantics are not

enabled. Specify

    /EHsc

    c:\cygwin\home\mads ipsen\matplotlib-1.1.0\src\ft2font.h(16) :

fatal error C1083

    : Cannot open include file: 'ft2build.h': No such file or

directory

    error: command '"C:\Program Files\Microsoft Visual Studio

9.0\VC\BIN\cl.exe"’ fa

    iled with exit status 2





    Any clues to why
    ft2build.h

cannot be located. The above docs says it should be part of the
binary installer.

I need to built it from
source.

  Mads
···

http://p.sf.net/sfu/rsa-sfdev2dev1


Matplotlib-users@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/matplotlib-users

-- +-----------------------------------------------------+
| Mads Ipsen |
+----------------------+------------------------------+
| Gåsebæksvej 7, 4. tv | |
| DK-2500 Valby | phone: +45-29716388 |
| Denmark | email: |
+----------------------+------------------------------+

mads.ipsen@…287…

In that case, you will need to install the development packages for
freetype, libpng, libz, and numpy.

I'm not a regular Windows user, so I don't know what the best

practice is for that these days. Some of the other members on this
list can hopefully jump in. There was also a thread on this list
about “Building on Windows” from 08/18/2011 that might be helpful.

Mike
···

On 11/02/2011 01:34 PM, Mads Ipsen wrote:

On 11/02/2011 05:50 PM, Michael Droettboom wrote:

    On

11/02/2011 10:53 AM, Mads Ipsen wrote:

        Any clues to why             ft2build.h cannot be located. The above docs says it

should be part of the binary installer.

    The binary for freetype is included with the installer, but the

headers (needed to build, but not to run) are not. Do you need
to build matplotlib from source, or just use it?

    Mike
    I need to built it from

source.

    Mads

I can’t seem to find this thread anywhere. It it really that
difficult to build on Windows? It most be documented somewhere what
the prereqs are?

Best regards,

Mads
···

http://p.sf.net/sfu/rsa-sfdev2dev1


Matplotlib-users@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/matplotlib-users

-- +-----------------------------------------------------+
| Mads Ipsen |
+----------------------+------------------------------+
| Gåsebæksvej 7, 4. tv | |
| DK-2500 Valby | phone: +45-29716388 |
| Denmark | email: |
+----------------------+------------------------------+

mads.ipsen@…287…

Any clues to why ft2build.h cannot be located. The above docs says
it should be part of the binary installer.

The binary for freetype is included with the installer, but the
headers (needed to build, but not to run) are not. Do you need to
build matplotlib from source, or just use it?

Mike

I need to built it from source.

Mads

In that case, you will need to install the development packages for
freetype, libpng, libz, and numpy.

I'm not a regular Windows user, so I don't know what the best practice
is for that these days. Some of the other members on this list can
hopefully jump in. There was also a thread on this list about
"Building on Windows" from 08/18/2011 that might be helpful.

Mike

------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1

_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net <mailto:Matplotlib-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

I can't seem to find this thread anywhere. It it really that difficult
to build on Windows? It most be documented somewhere what the prereqs are?

See <http://sourceforge.net/mailarchive/message.php?msg_id=27961105> and <http://matplotlib.sourceforge.net/users/installing.html#build-requirements>

Prebuilt static link libraries for msvc compilers are available at <http://www.lfd.uci.edu/~gohlke/pythonlibs/#matplotlib>.

It seems you are trying to compile from within cygwin, using the include files provided by cygwin. That will probably not work.

Christoph

···

On 11/2/2011 1:11 PM, Mads Ipsen wrote:

On 11/02/2011 08:43 PM, Michael Droettboom wrote:

On 11/02/2011 01:34 PM, Mads Ipsen wrote:

On 11/02/2011 05:50 PM, Michael Droettboom wrote:

On 11/02/2011 10:53 AM, Mads Ipsen wrote:

Best regards,

Mads

I had to do this sort of thing recently, but I did have to resort to
some hackery to get it done (that I'm not proud of...I was in a bit of
a hurry). Any corrections and or hand-slappings form the mpl-devs
are, I'm sure, well deserved. Anyway....I can only tell you what I
did to get it working, but cannot vouch for the correctness of the
procedure. I also cannot vouch for the correctness of my recollection
:confused:

First, I downloaded a few dependencies. libpng, libfreetype, and
zlib. Installed them all, which put them in c:\program files
(x86)\gnuwin32.

http://gnuwin32.sourceforge.net/packages/libpng.htm
http://gnuwin32.sourceforge.net/packages/freetype.htm
http://gnuwin32.sourceforge.net/packages/zlib.htm

I might have had to download ActiveTcl and install that, too, for the
tk back end.

Now, you should have headers and libraries all in the gnuwin32
directory. Download matplotlib-1.1.0.tar.gz, and untar it somewhere.
open a Visual C++ command prompt and navigate to the mpl directory. I
assume that python is in your path, so now do the normal

python setup.py configure (I know that configure doesn't exist, but
it gives the printout to tell me what is found and what is not).
python setup.py build
python setup.py install

It is likely during the build process that an include such as
ft2font.h might not be found. I did not spend the time here to figure
out how properly to point matplotlib to the ft2font.h include file
(which is over in the gnuwin32/include dir), so I copied it to the mpl
directory (top level). I think I ended up doing the same with png.h
and pngconf.h. Then run python setup.py build again.

Ugly, but it did work. At some point, I'll go figure out the proper procedure.

···

On Wed, Nov 2, 2011 at 4:11 PM, Mads Ipsen <madsipsen@...287...> wrote:

On 11/02/2011 08:43 PM, Michael Droettboom wrote:

On 11/02/2011 01:34 PM, Mads Ipsen wrote:

On 11/02/2011 05:50 PM, Michael Droettboom wrote:

On 11/02/2011 10:53 AM, Mads Ipsen wrote:

Any clues to why ft2build.h cannot be located. The above docs says it should
be part of the binary installer.

The binary for freetype is included with the installer, but the headers
(needed to build, but not to run) are not. Do you need to build matplotlib
from source, or just use it?

Mike

I need to built it from source.

Mads

In that case, you will need to install the development packages for
freetype, libpng, libz, and numpy.

I'm not a regular Windows user, so I don't know what the best practice is
for that these days. Some of the other members on this list can hopefully
jump in. There was also a thread on this list about "Building on Windows"
from 08/18/2011 that might be helpful.

Mike

------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1

_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

I can't seem to find this thread anywhere. It it really that difficult to
build on Windows? It most be documented somewhere what the prereqs are?

Best regards,

Mads

--
+-----------------------------------------------------+
> Mads Ipsen |
+----------------------+------------------------------+
> Gåsebæksvej 7, 4. tv | |
> DK-2500 Valby | phone: +45-29716388 |
> Denmark | email: mads.ipsen@...287... |
+----------------------+------------------------------+

------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

--
Daniel Hyams
dhyams@...287...

I am building from the VS2008
command prompt. But thanks for the info. Will have a look.

Best regards,

Mads
···

http://p.sf.net/sfu/rsa-sfdev2dev1Matplotlib-users@lists.sourceforge.netmailto:Matplotlib-users@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/matplotlib-usershttp://sourceforge.net/mailarchive/message.php?msg_id=27961105http://matplotlib.sourceforge.net/users/installing.html#build-requirementshttp://www.lfd.uci.edu/~gohlke/pythonlibs/#matplotlibhttp://p.sf.net/sfu/rsa-sfdev2dev1Matplotlib-users@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/matplotlib-users

-- +-----------------------------------------------------+
| Mads Ipsen |
+----------------------+------------------------------+
| Gåsebæksvej 7, 4. tv | |
| DK-2500 Valby | phone: +45-29716388 |
| Denmark | email: |
+----------------------+------------------------------+

mads.ipsen@…287…

OK. The cygwin in your home path looked suspicious: "c:\cygwin\home\mads ipsen\"

Christoph

···

On 11/2/2011 1:39 PM, Mads Ipsen wrote:

On 11/02/2011 09:28 PM, Christoph Gohlke wrote:

On 11/2/2011 1:11 PM, Mads Ipsen wrote:

On 11/02/2011 08:43 PM, Michael Droettboom wrote:

On 11/02/2011 01:34 PM, Mads Ipsen wrote:

On 11/02/2011 05:50 PM, Michael Droettboom wrote:

On 11/02/2011 10:53 AM, Mads Ipsen wrote:

Any clues to why ft2build.h cannot be located. The above docs says
it should be part of the binary installer.

The binary for freetype is included with the installer, but the
headers (needed to build, but not to run) are not. Do you need to
build matplotlib from source, or just use it?

Mike

I need to built it from source.

Mads

In that case, you will need to install the development packages for
freetype, libpng, libz, and numpy.

I'm not a regular Windows user, so I don't know what the best practice
is for that these days. Some of the other members on this list can
hopefully jump in. There was also a thread on this list about
"Building on Windows" from 08/18/2011 that might be helpful.

Mike

------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1

_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net <mailto:Matplotlib-users@lists.sourceforge.net> <mailto:Matplotlib-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

I can't seem to find this thread anywhere. It it really that difficult
to build on Windows? It most be documented somewhere what the prereqs are?

See<http://sourceforge.net/mailarchive/message.php?msg_id=27961105> and
<http://matplotlib.sourceforge.net/users/installing.html#build-requirements>

Prebuilt static link libraries for msvc compilers are available at
<http://www.lfd.uci.edu/~gohlke/pythonlibs/#matplotlib>.

It seems you are trying to compile from within cygwin, using the include
files provided by cygwin. That will probably not work.

Christoph

Best regards,

Mads

------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net <mailto:Matplotlib-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

I am building from the VS2008 command prompt. But thanks for the info.
Will have a look.

Best regards,

Mads

Works like a charm. What about support for the Qt backend. Do I need any Qt dev. env. installed or does it just rely on PyQt and Qt binaries being present on the machine?

Best regards,

Mads

···

On 11/02/2011 09:46 PM, Christoph Gohlke wrote:

On 11/2/2011 1:39 PM, Mads Ipsen wrote:

On 11/02/2011 09:28 PM, Christoph Gohlke wrote:

On 11/2/2011 1:11 PM, Mads Ipsen wrote:

On 11/02/2011 08:43 PM, Michael Droettboom wrote:

On 11/02/2011 01:34 PM, Mads Ipsen wrote:

On 11/02/2011 05:50 PM, Michael Droettboom wrote:

On 11/02/2011 10:53 AM, Mads Ipsen wrote:

Any clues to why ft2build.h cannot be located. The above docs says
it should be part of the binary installer.

The binary for freetype is included with the installer, but the
headers (needed to build, but not to run) are not. Do you need to
build matplotlib from source, or just use it?

Mike

I need to built it from source.

Mads

In that case, you will need to install the development packages for
freetype, libpng, libz, and numpy.

I'm not a regular Windows user, so I don't know what the best practice
is for that these days. Some of the other members on this list can
hopefully jump in. There was also a thread on this list about
"Building on Windows" from 08/18/2011 that might be helpful.

Mike

------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1

_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net<mailto:Matplotlib-users@lists.sourceforge.net> <mailto:Matplotlib-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

I can't seem to find this thread anywhere. It it really that difficult
to build on Windows? It most be documented somewhere what the prereqs are?

See<http://sourceforge.net/mailarchive/message.php?msg_id=27961105> and
<http://matplotlib.sourceforge.net/users/installing.html#build-requirements>

Prebuilt static link libraries for msvc compilers are available at
<http://www.lfd.uci.edu/~gohlke/pythonlibs/#matplotlib>.

It seems you are trying to compile from within cygwin, using the include
files provided by cygwin. That will probably not work.

Christoph

Best regards,

Mads

------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net<mailto:Matplotlib-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

I am building from the VS2008 command prompt. But thanks for the info.
Will have a look.

Best regards,

Mads

OK. The cygwin in your home path looked suspicious: "c:\cygwin\home\mads
ipsen\"

Christoph

------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

--
+-----------------------------------------------------+

Mads Ipsen |

+----------------------+------------------------------+

G�seb�ksvej 7, 4. tv | |
DK-2500 Valby | phone: +45-29716388 |
Denmark | email: mads.ipsen@...287... |

+----------------------+------------------------------+

Just PyQt and Qt binaries should be enough -- there is no C/C++ code in matplotlib that needs to link to Qt directly.

Mike

···

On 11/02/2011 05:09 PM, Mads Ipsen wrote:

Works like a charm. What about support for the Qt backend. Do I need any
Qt dev. env. installed or does it just rely on PyQt and Qt binaries
being present on the machine?

Hi,

I am now done with the 32 bit case and am trying to do the same for

64 bit now.

Here I get the error:

   Creating library build\temp.win32-2.7\Release\src\ft2font.lib and

object buil

d\temp.win32-2.7\Release\src\ft2font.exp

ft2font.obj : error LNK2019: unresolved external symbol

_FT_Set_Transform refere

nced in function "public: class Py::Object __thiscall

FT2Font::set_size(class Py

::Tuple const &)"

(?set_size@…3697…@@QAE?AVObject@…3695…@@ABVTuple@…3696…@@Z)

ft2font.obj : error LNK2019: unresolved external symbol

_FT_Set_Char_Size refere

nced in function "public: class Py::Object __thiscall

FT2Font::set_size(class Py

::Tuple const &)"

(?set_size@…3697…@@QAE?AVObject@…3695…@@ABVTuple@…3696…@@Z)

ft2font.obj : error LNK2019: unresolved external symbol

_FT_Set_Charmap referenc

ed in function "public: class Py::Object __thiscall

FT2Font::set_charmap(class P

y::Tuple const &)"

(?set_charmap@…3697…@@QAE?AVObject@…3695…@@ABVTuple@…3696…@@Z)

ft2font.obj : error LNK2019: unresolved external symbol

_FT_Select_Charmap refer

enced in function "public: class Py::Object __thiscall

FT2Font::select_charmap(c

lass Py::Tuple const &)"

(?select_charmap@…3697…@@QAE?AVObject@…3695…@@ABVTuple@…3696…@@

Z)

I am using the

  msvcr90-x64

version of the libraries downloaded from

  Wrong libraries?
···

http://p.sf.net/sfu/rsa-sfdev2dev1Matplotlib-users@lists.sourceforge.netmailto:Matplotlib-users@lists.sourceforge.netmailto:Matplotlib-users@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/matplotlib-usershttp://sourceforge.net/mailarchive/message.php?msg_id=27961105http://matplotlib.sourceforge.net/users/installing.html#build-requirementshttp://www.lfd.uci.edu/~gohlke/pythonlibs/#matplotlibhttp://p.sf.net/sfu/rsa-sfdev2dev1Matplotlib-users@lists.sourceforge.netmailto:Matplotlib-users@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/matplotlib-usershttp://p.sf.net/sfu/rsa-sfdev2dev1Matplotlib-users@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/matplotlib-usershttp://www.lfd.uci.edu/~gohlke/pythonlibs/#matplotlib

Bestregards,

  Mads
-- +-----------------------------------------------------+
| Mads Ipsen |
+----------------------+------------------------------+
| Gåsebæksvej 7, 4. tv | |
| DK-2500 Valby | phone: +45-29716388 |
| Denmark | email: |
+----------------------+------------------------------+

mads.ipsen@…287…

You are likely using a 32 bit compiler or Python.

Christoph

···

On 11/3/2011 6:45 AM, Mads Ipsen wrote:

On 11/02/2011 09:46 PM, Christoph Gohlke wrote:

On 11/2/2011 1:39 PM, Mads Ipsen wrote:

On 11/02/2011 09:28 PM, Christoph Gohlke wrote:

On 11/2/2011 1:11 PM, Mads Ipsen wrote:

On 11/02/2011 08:43 PM, Michael Droettboom wrote:

On 11/02/2011 01:34 PM, Mads Ipsen wrote:

On 11/02/2011 05:50 PM, Michael Droettboom wrote:

On 11/02/2011 10:53 AM, Mads Ipsen wrote:

Any clues to why ft2build.h cannot be located. The above docs says
it should be part of the binary installer.

The binary for freetype is included with the installer, but the
headers (needed to build, but not to run) are not. Do you need to
build matplotlib from source, or just use it?

Mike

I need to built it from source.

Mads

In that case, you will need to install the development packages for
freetype, libpng, libz, and numpy.

I'm not a regular Windows user, so I don't know what the best practice
is for that these days. Some of the other members on this list can
hopefully jump in. There was also a thread on this list about
"Building on Windows" from 08/18/2011 that might be helpful.

Mike

------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1

_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net <mailto:Matplotlib-users@lists.sourceforge.net> <mailto:Matplotlib-users@lists.sourceforge.net> <mailto:Matplotlib-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

I can't seem to find this thread anywhere. It it really that difficult
to build on Windows? It most be documented somewhere what the prereqs are?

See<http://sourceforge.net/mailarchive/message.php?msg_id=27961105> and
<http://matplotlib.sourceforge.net/users/installing.html#build-requirements>

Prebuilt static link libraries for msvc compilers are available at
<http://www.lfd.uci.edu/~gohlke/pythonlibs/#matplotlib>.

It seems you are trying to compile from within cygwin, using the include
files provided by cygwin. That will probably not work.

Christoph

Best regards,

Mads

------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net <mailto:Matplotlib-users@lists.sourceforge.net> <mailto:Matplotlib-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

I am building from the VS2008 command prompt. But thanks for the info.
Will have a look.

Best regards,

Mads

OK. The cygwin in your home path looked suspicious:"c:\cygwin\home\mads
ipsen\"

Christoph

------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net <mailto:Matplotlib-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Hi,

I am now done with the 32 bit case and am trying to do the same for 64
bit now.

Here I get the error:

Creating library build\temp.win32-2.7\Release\src\ft2font.lib and object
buil
d\temp.win32-2.7\Release\src\ft2font.exp
ft2font.obj : error LNK2019: unresolved external symbol
_FT_Set_Transform refere
nced in function "public: class Py::Object __thiscall
FT2Font::set_size(class Py
::Tuple const &)" (?set_size@...3697...@@QAE?AVObject@...3695...@@ABVTuple@...3696...@@Z)
ft2font.obj : error LNK2019: unresolved external symbol
_FT_Set_Char_Size refere
nced in function "public: class Py::Object __thiscall
FT2Font::set_size(class Py
::Tuple const &)" (?set_size@...3697...@@QAE?AVObject@...3695...@@ABVTuple@...3696...@@Z)
ft2font.obj : error LNK2019: unresolved external symbol _FT_Set_Charmap
referenc
ed in function "public: class Py::Object __thiscall
FT2Font::set_charmap(class P
y::Tuple const &)" (?set_charmap@...3697...@@QAE?AVObject@...3695...@@ABVTuple@...3696...@@Z)
ft2font.obj : error LNK2019: unresolved external symbol
_FT_Select_Charmap refer
enced in function "public: class Py::Object __thiscall
FT2Font::select_charmap(c
lass Py::Tuple const &)"
(?select_charmap@...3697...@@QAE?AVObject@...3695...@@ABVTuple@...3696...@@
Z)

I am using the

msvcr90-x64

version of the libraries downloaded from

http://www.lfd.uci.edu/~gohlke/pythonlibs/#matplotlib

Wrong libraries?

Bestregards,

Mads

Creating library build\temp.win32-2.7 ...

Yep, had installed a 32 bit Python. Infinite stupid of me. Now it builds out of the box. Thanks for helping out.

Best regards,

Mads

···

On 11/03/2011 04:34 PM, Christoph Gohlke wrote:

On 11/3/2011 6:45 AM, Mads Ipsen wrote:

On 11/02/2011 09:46 PM, Christoph Gohlke wrote:

On 11/2/2011 1:39 PM, Mads Ipsen wrote:

On 11/02/2011 09:28 PM, Christoph Gohlke wrote:

On 11/2/2011 1:11 PM, Mads Ipsen wrote:

On 11/02/2011 08:43 PM, Michael Droettboom wrote:

On 11/02/2011 01:34 PM, Mads Ipsen wrote:

On 11/02/2011 05:50 PM, Michael Droettboom wrote:

On 11/02/2011 10:53 AM, Mads Ipsen wrote:

Any clues to why ft2build.h cannot be located. The above docs says
it should be part of the binary installer.

The binary for freetype is included with the installer, but the
headers (needed to build, but not to run) are not. Do you need to
build matplotlib from source, or just use it?

Mike

I need to built it from source.

Mads

In that case, you will need to install the development packages for
freetype, libpng, libz, and numpy.

I'm not a regular Windows user, so I don't know what the best practice
is for that these days. Some of the other members on this list can
hopefully jump in. There was also a thread on this list about
"Building on Windows" from 08/18/2011 that might be helpful.

Mike

------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1

_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net<mailto:Matplotlib-users@lists.sourceforge.net> <mailto:Matplotlib-users@lists.sourceforge.net> <mailto:Matplotlib-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

I can't seem to find this thread anywhere. It it really that difficult
to build on Windows? It most be documented somewhere what the prereqs are?

See<http://sourceforge.net/mailarchive/message.php?msg_id=27961105> and
<http://matplotlib.sourceforge.net/users/installing.html#build-requirements>

Prebuilt static link libraries for msvc compilers are available at
<http://www.lfd.uci.edu/~gohlke/pythonlibs/#matplotlib>.

It seems you are trying to compile from within cygwin, using the include
files provided by cygwin. That will probably not work.

Christoph

Best regards,

Mads

------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net<mailto:Matplotlib-users@lists.sourceforge.net> <mailto:Matplotlib-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

I am building from the VS2008 command prompt. But thanks for the info.
Will have a look.

Best regards,

Mads

OK. The cygwin in your home path looked suspicious:"c:\cygwin\home\mads
ipsen\"

Christoph

------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net<mailto:Matplotlib-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Hi,

I am now done with the 32 bit case and am trying to do the same for 64
bit now.

Here I get the error:

Creating library build\temp.win32-2.7\Release\src\ft2font.lib and object
buil
d\temp.win32-2.7\Release\src\ft2font.exp
ft2font.obj : error LNK2019: unresolved external symbol
_FT_Set_Transform refere
nced in function "public: class Py::Object __thiscall
FT2Font::set_size(class Py
::Tuple const&)" (?set_size@...3697...@@QAE?AVObject@...3695...@@ABVTuple@...3696...@@Z)
ft2font.obj : error LNK2019: unresolved external symbol
_FT_Set_Char_Size refere
nced in function "public: class Py::Object __thiscall
FT2Font::set_size(class Py
::Tuple const&)" (?set_size@...3697...@@QAE?AVObject@...3695...@@ABVTuple@...3696...@@Z)
ft2font.obj : error LNK2019: unresolved external symbol _FT_Set_Charmap
referenc
ed in function "public: class Py::Object __thiscall
FT2Font::set_charmap(class P
y::Tuple const&)" (?set_charmap@...3697...@@QAE?AVObject@...3695...@@ABVTuple@...3696...@@Z)
ft2font.obj : error LNK2019: unresolved external symbol
_FT_Select_Charmap refer
enced in function "public: class Py::Object __thiscall
FT2Font::select_charmap(c
lass Py::Tuple const&)"
(?select_charmap@...3697...@@QAE?AVObject@...3695...@@ABVTuple@...3696...@@
Z)

I am using the

msvcr90-x64

version of the libraries downloaded from

http://www.lfd.uci.edu/~gohlke/pythonlibs/#matplotlib

Wrong libraries?

Bestregards,

Mads

Creating library build\temp.win32-2.7 ...

You are likely using a 32 bit compiler or Python.

Christoph

------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

--
+-----------------------------------------------------+

Mads Ipsen |

+----------------------+------------------------------+

G�seb�ksvej 7, 4. tv | |
DK-2500 Valby | phone: +45-29716388 |
Denmark | email: mads.ipsen@...287... |

+----------------------+------------------------------+