MathGroup Archive 2012

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Wickham-Jones ExtendGraphics for OS X?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg125173] Re: Wickham-Jones ExtendGraphics for OS X?
  • From: Patrick Scheibe <pscheibe at trm.uni-leipzig.de>
  • Date: Sun, 26 Feb 2012 04:19:13 -0500 (EST)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • References: <201202191129.GAA15586@smc.vnet.net>

Hi Murray,

please edit image.tm and add the following two includes above the
#include <math.h>:

#include <stdlib.h>
#include <stdio.h>

I tried it on my MacBook and it worked. I could open the mathlink
program.

Cheers
Patrick


On Sat, 2012-02-25 at 15:57 -0500, Murray Eisenberg wrote:
> Compiling as you showed worked just fine to produce the MathLink 
> executables 'delaunay' and 'contour.'
> 
> However, there were compiler warnings when I applied gcc for both 
> 'image' and 'mandelbrot', as follows (where i use "\" for continuation 
> of input because the long command line input won't fit on a single line 
> here:
> 
>    $ $MLROOT/mprep image.tm > image.tm.c
>    $ gcc -o image -I$MLROOT -L$MLROOT -lMLi3 -lstdc++ -framework \
>        Foundation -lm image.tm.c
>     image.tm.c: In function â??sendimageâ??:
>     image.tm.c:308: warning: incompatible implicit declaration of
>        built-in function â??mallocâ??
>     image.tm.c:321: warning: incompatible implicit declaration of
>        built-in function â??sprintfâ??
>     image.tm.c: At top level:
>     image.tm.c:344: warning: prototype for â??sendimageâ?? follows
>        non-prototype definition
> 
>    $ $MLROOT/mprep mandelbrot.tm > mandelbrot.tm.c
>    $ gcc -o mandelbrot -I$MLROOT -L$MLROOT -lMLi3 -lstdc++ -framework \
>        Foundation -lm mandelbrot.tm.c
>      mandelbrot.tm.c:402: warning: prototype for â??sendimageâ?? follows
>         non-prototype definition
> 
> And then, of course, when I load either ExtendGraphics`Image` or 
> ExtendGraphics`Mandelbrot`, I get an error:
> 
>    LinkOpen::linke: Specified file is not a MathLink executable...
> 
> Can you suggest how to fix this. Or, in the alternative, supply 
> Macintosh OS X versions of the executables 'mandelbrot' and 'image' 
> (compatible with current OS X versions).
> 
> On 2/20/12 2:44 AM, Patrick Scheibe wrote:
> > Hi Murray,
> >
> > did you try to compile this by yourself? Here on Linux it builds fine
> > and it does not need any Solaris library. The paths in the "build" file
> > are outdated. That's why you cannot simply use it. Try it on the
> > commandline by yourself. What you have to find is the MathLink dev
> > directory in your Mathematica installation. Here it is under
> >
> > /usr/local/Wolfram/Mathematica/8.0/SystemFiles/Links/MathLink/DeveloperKit/Linux-x86-64/
> >
> > I assume on your machine it will be under something like
> >
> > /Applications/Mathematica.app/SystemFiles/Links/MathLink/DeveloperKit/CompilerAdditions/
> >
> > Let's say this path is $MLROOT, then you have to do the following:
> >
> > $MLROOT/mprep delaunay.tm>  delaunay.tm.c
> > gcc -o delaunay -I$MLROOT -L$MLROOT -lMLi3 \
> >    -lstdc++ -framework Foundation -lm delaunay.tm.c
> >
> > (Remove the backslash and input the last two lines as one!)
> > This should compile fine the delaunay-triangulation and should work for
> > all the other programms too.
> >
> > Cheers
> > Patrick
> >
> >
> > On Sun, 2012-02-19 at 06:29 -0500, Murray Eisenberg wrote:
> >> Many years ago, Tom Wickham-Jones wrote a book, "Mathematica Graphics:
> >> Techniques&  Applications", which I own. It was accompanied by the
> >> ExtendGraphics application, which included nice packages for drawing the
> >> Mandelbrot set and Delaunay set, among other things.
> >>
> >> The application is also available at:
> >>
> >>     http://library.wolfram.com/infocenter/Books/3753/
> >>
> >> But they don't work with Mathematica 8, at least under Mac OS X. The
> >> .zip download includes Windows .exe binaries; the .tar download includes
> >> ingredients for compiling binaries (including a "build" file, but the
> >> build fails under OS X due to missing libraries from Solaris).
> >>
> >> Anybody have a version of the requisite binary files that work with
> >> current Mathematica under OS X 10.7 (Lion)?
> >>
> >
> >
> >
> 





  • Prev by Date: Re: Wickham-Jones ExtendGraphics for OS X?
  • Next by Date: Re: Importing data from the web
  • Previous by thread: Re: Wickham-Jones ExtendGraphics for OS X?
  • Next by thread: Re: Wickham-Jones ExtendGraphics for OS X?