[Pythonmac-SIG] Compiling Biggles without X11?

Andrew Straw andrew.straw@adelaide.edu.au
Wed, 25 Sep 2002 17:29:57 +0930


On Sunday, September 22, 2002, at 06:38  PM, Dinu Gherman wrote:

> Hi,
>
> has anybody succeeded in compiling Biggles(.sf.net), a chart library
> on top of GNU plotutils and NumPy on OS X? I get compile errors b/c
> I have no X11 on my box... but I don't quite see why X11 should be
> mandatory, except for some X11 bitmap formats/libraries, maybe.

Biggles is working just fine on my 10.2.1 system (no X11) with python 
2.3a0 from cvs.  I installed plotutils-2.4.1, which IIRC compiled just 
fine with ./configure, make, sudo make install.  Then I added the 
following to Biggles's setup.py, which allowed it to be built and 
installed without problems:

elif sys.platform == "darwin":
         libplot_prefix = "/usr/local"
         libplot_include_dirs = [libplot_prefix+"/include"]
         libplot_library_dirs = [libplot_prefix+"/lib"]
         libplot_libraries = ["plot"]

The show() method is not working (I think that depends on X11), but 
write_eps() works fine.

Andrew