From: dcalvelo at lailp2pc2.univ-lille1.fr (Daniel Calvelo)
Date: 26 Apr 1999 13:13:40 GMT
Subject: HELP! NumPy (Graphics) and Linux
References: <7fvpsh$l8e$1@nnrp1.dejanews.com>
Message-ID: <7g1oq4$hi6$1@netserv.univ-lille1.fr>
Content-Length: 1749
X-UID: 854                                                  

kelvin_chu at my-dejanews.com wrote:
: Hi all;

Hi, Kelvin.

: I've had great success with EZplot and now want to move my code to Linux-
: based platforms in my lab.  I am having significant difficulties building
: the Graphics portion of NumPy.

: 0.  I am running RedHat linux 5.2
: 1.  I have installed Yorick in the cannonical place.
: 2.  Instead of libX11.a, I have a shared-object library, locatedin
:     /usr/X11R6/lib

: When I do the build (python makethis.py), I receive the following error:

: gcc -fpic  -I/usr/local/lib/yorick/1.4/h -g -O2
: -I/usr/local/include/python1.5 -I/usr/local/include/python1.5
: -DHAVE_CONFIG_H -c ./Gist/Src/gistCmodule.c
: ./Gist/Src/gistCmodule.c:75: arrayobject.h: No such file or directory
: ./Gist/Src/gistCmodule.c:88: warning: `PyFPE_END_PROTECT' redefined
: /usr/local/include/python1.5/pyfpe.h:169: warning: this is the location of
: the previous definition
: make: *** [gistCmodule.o] Error 1

This is a matter of gcc not finding arrayobject.h which is in 
../Numerical/Include/

To uglily bypass this, try *after the failure* to do a 

make CC='gcc -I../Numerical/Include/'

in the LLNL/Graphics/ directory

This should override the CC variable of the Makefile written by makethis.py, 
so the make-generated command does find the .h

: I suspect that I am going to run into multiple problems.  There is a cryptic
: statement in the README that indicates that I should do import_arrays() before
: doing the build...where do I implement this?  How much of this problem is
: related to the shared object X libs?

Up to now, unrelated. Look for trouble of the same kind in linking the final .so. 
IIRC, the only problem I had compiling this myself was the broken include.

: Kelvin

HTH, Daniel.




