[reportlab-users] reportlab fail installing on Windows 7 x64 with Python 2.6 x64 (easy_install)

Sorin Sbarnea sorin.sbarnea at gmail.com
Fri Nov 6 11:42:12 EST 2009


Thanks Paul,

This is really sad because easy_install is very good to install python stuff.

I tried the manual approach, installed pil without problems.

Now regarding freetype, I installed latest binary distribution from
http://sourceforge.net/projects/gnuwin32/files/freetype/
freetype-2.3.5-1-setup.exe

This installed under C:\Program Files (x86)\GnuWin32

I had to make a symlink from "C:\Program Files
(x86)\GnuWin32\include\freetype2\freetype" to "C:\Program Files
(x86)\GnuWin32\include\freetype" because the ft2build.h containts:
#include <freetype/config/ftheader.h>

Now I modified the setup.cfg file and added:
lib=C:\Program Files (x86)\GnuWin32\lib\freetype.lib
incdir=C:\Program Files (x86)\GnuWin32\include

Now it does compile but not linking (see below). Also in order to make
my life "easier" I use Python x64 and I'm pretty sure that freetype is
not compiled for x64 but this is not the reason why I get these
errors.

################################################
#Attempting install of _rl_accel, sgmlop & pyHnj
#extensions from 'C:\\dev\\pj\\kit\\py\\ReportLab_2_3\\src\\rl_addons\\rl_accel'
################################################
################################################
#Attempting install of _renderPM
#extensions from 'C:\\dev\\pj\\kit\\py\\ReportLab_2_3\\src\\rl_addons\\renderPM'
# installing with win32 freetype 'freetype'
################################################
running build
running build_py
copying src\reportlab\lib\hyphen.mashed -> build\lib.win-amd64-2.6\reportlab\lib
running build_clib
building '_renderPM_libart' library
building '_renderPM_gt1' library
running build_ext
building '_renderPM' extension
c:\Program Files (x86)\Microsoft Visual Studio
9.0\VC\BIN\amd64\link.exe /DLL /nologo /INCREMENTAL:NO
"/LIBPATH:C:\Program Files (x86)\GnuWin32\lib"
/LIBPATH:C:\Python26\libs /LIBPATH:C:\Python26\PCbuild\amd64
/LIBPATH:build\temp.win-amd64-2.6 freetype.lib _renderPM_libart.lib
_renderPM_gt1.lib /EXPORT:init_renderPM
build\temp.win-amd64-2.6\Release\dev\pj\kit\py\ReportLab_2_3\src\rl_addons\renderPM\_renderPM.obj
/OUT:build\lib.win-amd64-2.6\_renderPM.pyd
/IMPLIB:build\temp.win-amd64-2.6\Release\dev\pj\kit\py\ReportLab_2_3\src\rl_addons\renderPM\_renderPM.lib
/MANIFESTFILE:build\temp.win-amd64-2.6\Release\dev\pj\kit\py\ReportLab_2_3\src\rl_addons\renderPM\_renderPM.pyd.manifest
Creating library
build\temp.win-amd64-2.6\Release\dev\pj\kit\py\ReportLab_2_3\src\rl_addons\renderPM\_renderPM.lib
and object build\temp.win-amd64-2.6\Release\dev\pj\kit\py\ReportLab_2_3\src\rl_addons\renderPM\_renderPM.exp
_renderPM.obj : error LNK2019: unresolved external symbol
__imp_FT_New_Memory_Face referenced in function _get_ft_face
_renderPM.obj : error LNK2019: unresolved external symbol
__imp_FT_Init_FreeType referenced in function _get_ft_face
_renderPM.obj : error LNK2019: unresolved external symbol
__imp_FT_Done_Face referenced in function py_FT_font_dealloc
_renderPM.obj : error LNK2019: unresolved external symbol
__imp_FT_Outline_Decompose referenced in function
_ft_get_glyph_outline
_renderPM.obj : error LNK2019: unresolved external symbol
__imp_FT_Load_Glyph referenced in function _ft_get_glyph_outline
_renderPM.obj : error LNK2019: unresolved external symbol
__imp_FT_Get_Char_Index referenced in function _ft_get_glyph_outline
build\lib.win-amd64-2.6\_renderPM.pyd : fatal error LNK1120: 6
unresolved externals
error: command '"c:\Program Files (x86)\Microsoft Visual Studio
9.0\VC\BIN\amd64\link.exe"' failed with exit status 1120

I just hope we'll solve this and be able to improve the install
*experience* for Windows.

Thanks,
--
/sorin
http://nusunt.eu

On Thu, Nov 5, 2009 at 21:58, Paul Barrass
<paul.barrass at safeonlinebilling.com> wrote:

> Sorin Sbarnea wrote:

>>

>> I remarked that easy_install reportlab fails with below errror on

>> Windows 7 x64 with Python 2.6 x64:

>>

>

> It's an FAQ that easy_install of Reportlab isn't supported/recommended - I

> think the latest official thread on this is:

>

> http://two.pairlist.net/pipermail/reportlab-users/2009-May/008253.html

>

>

> Paul Barrass.

> _______________________________________________

> reportlab-users mailing list

> reportlab-users at lists2.reportlab.com

> http://two.pairlist.net/mailman/listinfo/reportlab-users

>



More information about the reportlab-users mailing list