[reportlab-users] installing reportlab on aix 5.3

Robin Becker robin at reportlab.com
Thu Jul 22 12:22:14 EDT 2010


On 22/07/2010 16:20, Steve Romanow wrote:

> On 7/22/2010 9:27 AM, Robin Becker wrote:

>> On 22/07/2010 14:06, Steve Romanow wrote:

>> ...........

>>>

>>> #This is normally only used for win32

>>> [FREETYPE]

>>> #lib=path to your freetype2 .lib file eg

>>> C:\Python\devel\freetype-2.1.5\objs\freetype214.lib

>>> #libdir=path the the containing folder; leave empty uses dirname(of the

>>> lib)

>>> #incdir=path to the include files for your setup or it uses ../include

>>> from the libdir

>>> lib=/opt/freeware/lib/libfreetype.a

>>> libdir=/opt/freeware/lib

>>> incdir=/opt/freeware/lib

>> ........

>>

>> unfortunately the statement about win32 is mostly true. Although the

>> setup script does read the cfg it seems those values aren't used if it

>> finds

>>

>> Can you substitute with this one and see if it helps? The only

>> difference is a change to the way that inc_lib_dirs() is initialized

>> it should put the cfg values in the lists first. I haven't tested this

>> so beware.

.......
The output indicates it's still failing to see the freetype lib.


The compile command that builds _renderPM.o is the one that needs hacking

Currently it looks like this


> gcc -DNDEBUG -O -DLIBART_COMPILATION -DLIBART_VERSION="2.3.12" \

> -I/share/build/reportlab/src/rl_addons/renderPM \

> -I/share/build/reportlab/src/rl_addons/renderPM/libart_lgpl \

> -I/share/build/reportlab/src/rl_addons/renderPM/gt1 \

> -I/opt/freeware/include/python2.6 \

> -c /share/build/reportlab/src/rl_addons/renderPM/_renderPM.c \

> -o build/temp.aix-5.3-2.6/share/build/reportlab/src/rl_addons/renderPM/_renderPM.o


The difficulty is that we need to fix this compile so it can see the freetype2
includes

I have no idea what they're called on your system, but you definitely need to
add -DRENDERPM_FT to that command line and something that's equivalent to what
happens on another unix in my case that's

-I/usr/local/include -I/usr/local/include/freetype2

so as a pure guess I would say you have got the wrong value for the include dir
since most unices separate the includes from the lib.

What happens if you try

gcc -DNDEBUG -O -DLIBART_COMPILATION -DLIBART_VERSION="2.3.12" \
-DRENDERPM_FT \
-I/share/build/reportlab/src/rl_addons/renderPM \
-I/share/build/reportlab/src/rl_addons/renderPM/libart_lgpl \
-I/share/build/reportlab/src/rl_addons/renderPM/gt1 \
-I/opt/freeware/include -I/opt/freeware/include/freetype2 \
-I/opt/freeware/include/python2.6 \
-c /share/build/reportlab/src/rl_addons/renderPM/_renderPM.c \
-o
build/temp.aix-5.3-2.6/share/build/reportlab/src/rl_addons/renderPM/_renderPM.o

*WARNING* long line at the end

If that works then you should be able to try out the following command (even
more garbled by long lines)

/opt/freeware/lib/python2.6/config/ld_so_aix \
xlc_r \
-ma \
-I/opt/freeware/include \
-DAIX_GENUINE_CPLUSCPLUS \
-Wl,-brtl \
-bI:/opt/freeware/lib/python2.6/config/python.exp \
build/temp.aix-5.3-2.6/share/build/reportlab/src/rl_addons/renderPM/_renderPM.o \

build/temp.aix-5.3-2.6/share/build/reportlab/src/rl_addons/renderPM/libart_lgpl/art_vpath_bpath.o
\

build/temp.aix-5.3-2.6/share/build/reportlab/src/rl_addons/renderPM/libart_lgpl/art_rgb_pixbuf_affine.o
\

build/temp.aix-5.3-2.6/share/build/reportlab/src/rl_addons/renderPM/libart_lgpl/art_rgb_svp.o
\

build/temp.aix-5.3-2.6/share/build/reportlab/src/rl_addons/renderPM/libart_lgpl/art_svp.o
\

build/temp.aix-5.3-2.6/share/build/reportlab/src/rl_addons/renderPM/libart_lgpl/art_svp_vpath.o
\

build/temp.aix-5.3-2.6/share/build/reportlab/src/rl_addons/renderPM/libart_lgpl/art_svp_vpath_stroke.o
\

build/temp.aix-5.3-2.6/share/build/reportlab/src/rl_addons/renderPM/libart_lgpl/art_svp_ops.o
\

build/temp.aix-5.3-2.6/share/build/reportlab/src/rl_addons/renderPM/libart_lgpl/art_vpath.o
\

build/temp.aix-5.3-2.6/share/build/reportlab/src/rl_addons/renderPM/libart_lgpl/art_vpath_dash.o
\

build/temp.aix-5.3-2.6/share/build/reportlab/src/rl_addons/renderPM/libart_lgpl/art_affine.o
\

build/temp.aix-5.3-2.6/share/build/reportlab/src/rl_addons/renderPM/libart_lgpl/art_rect.o
\

build/temp.aix-5.3-2.6/share/build/reportlab/src/rl_addons/renderPM/libart_lgpl/art_rgb_affine.o
\

build/temp.aix-5.3-2.6/share/build/reportlab/src/rl_addons/renderPM/libart_lgpl/art_rgb_affine_private.o
\

build/temp.aix-5.3-2.6/share/build/reportlab/src/rl_addons/renderPM/libart_lgpl/art_rgb.o
\

build/temp.aix-5.3-2.6/share/build/reportlab/src/rl_addons/renderPM/libart_lgpl/art_rgb_rgba_affine.o
\

build/temp.aix-5.3-2.6/share/build/reportlab/src/rl_addons/renderPM/libart_lgpl/art_svp_intersect.o
\

build/temp.aix-5.3-2.6/share/build/reportlab/src/rl_addons/renderPM/libart_lgpl/art_svp_render_aa.o
\

build/temp.aix-5.3-2.6/share/build/reportlab/src/rl_addons/renderPM/libart_lgpl/art_misc.o
\

build/temp.aix-5.3-2.6/share/build/reportlab/src/rl_addons/renderPM/gt1/gt1-parset1.o
\

build/temp.aix-5.3-2.6/share/build/reportlab/src/rl_addons/renderPM/gt1/gt1-dict.o \

build/temp.aix-5.3-2.6/share/build/reportlab/src/rl_addons/renderPM/gt1/gt1-namecontext.o
\

build/temp.aix-5.3-2.6/share/build/reportlab/src/rl_addons/renderPM/gt1/gt1-region.o
\
/opt/freeware/lib/libfreetype.a \
-o build/lib.aix-5.3-2.6/_renderPM.so

if the above horror works then you will be able to test by manually installing
the built _renderPM.so and testing with renderPM.

One thing I don't see in the above is some indication that an unusual byte-order
is being used. I have a vague memory from about 9 years ago that the AIX
machines were not like x86 in that respect. Looking in the code it seems we're
relying on libart_gpl/config.h to take care of that.
--
Robin Becker


More information about the reportlab-users mailing list