I just posted this to Usenet. zlib, libjpeg, libpng and libgd were all
pretty simple to compile, but GD required some mucking about. But it seems
to work now.

However, scratch that bit about libgd being in the same folder as GD -
apparently that's not the case, and I can have just GD in there. Which is
the right thing to happen. GD 1.38 compiles to a shared lib of 324k on my
machine.

If anyone want sources or binaries, just tell me where to post them.

P - post follows...

Newsgroups: comp.lang.perl.modules,comp.lang.perl.misc
Subject: GD for MacPerl 5.6.1 - Provisionally Working
Organization: *sigh*
User-Agent: MT-NewsWatcher/3.1 (PPC)
Date: Sun, 24 Mar 2002 06:39:50 +0000
Message-ID: <[EMAIL PROTECTED]>

hi all,

well to my great surprise I managed to compile zlib, libjpeg, libpng
_and_ libgd for Macintosh, with all tests passed. Fine, in normal (i.e.
Unix-like) circumstances it would be a simple matter to compile GD.pm.

Hrm, after a lot of mucking about I ran the example code from the pod
and a PNG file was produced. It had a red oval in it, edged with blue,
and a black rectangle. It was the right size. Great!

Except that it _also_ had the default desktop pattern in the background.
A dark blue MacOS logo, on a slant. Ah! But that was just my viewer
adding that.

I commented out the $im->transparent() call and looked again.
A white background. perfect. Checked in Opera - both files OK.

If anyone wants, I'll post the MPW makefiles, readmes, headers, and
libraries etc somewhere for download. It was all compiled with MPW and
the free compilers/linkers, and the libs work with the standard build of
MacPerl 5.6.1r1

I admit I _am_ working pretty close to my limits of C knowledge. Beyond,
possibly. Anyone who knows what they're doing would be useful :-)

FWIW, I built libgd statically and dynamically. GD.pm only seemed happy
when I made libgd dynamic. The bizarre thing is it looks like I have to
do this:

MacPerl
   site_perl
      MacPPC
         auto
            GD
               GD <- that's a shared library
               libgd <- so's that

Anyway, just thought I should pipe up to say that it might possibly
work. Maybe it could work better, I don't know.

--
[EMAIL PROTECTED]                         "all the world's indeed a stage"
http://www.pkent.me.uk/              For PGP see the keyservers or website
http://www.selsyn.co.uk/
Fax: Britain 0870 137 9220 - America (208) 692-8600


Reply via email to