|
Posted by jmg3000 on November 10, 2006, 10:07 pm
Please log in for more thread options
Sisyphus wrote:
> > Sisyphus wrote:
> .
> .
> > > Find the'LIBS' and 'INC' entries in the WriteMakefile() section of said
> > > Makefile.PL and change them to something like:
> > >
> > > 'LIBS' => [join(' ','/home/me/opt/lib',@LIBPATH,@LIBS)],
> > > 'INC' => join(' ','/home/me/opt/include',@INC),
> > >
> [snip]
>
> You're sure that /home/me/opt/include/gd.h exists ? .... it's not (eg)
> /home/me/opt/include/gd/gd.h ?
Yup to the former. That header is where it's supposed to be.
> How about:
>
> 'LIBS' => [join(' ','-L/home/me/opt/lib',@LIBPATH,@LIBS)],
> 'INC' => join(' ','-I/home/me/opt/include',@INC),
>
> (Sorry about that ... without the '-L' and '-I' switches those first
> elements achieve nothing.)
Whoops. That slipped by me too. I made the change, but still get the
same results. (Incidentally, I noticed that, in the resulting makefile,
there's some duplication now, with that path getting mentioned in a
number of places twice in a row).
> Turns out that on Win32, all I really need to do is have:
>
> 'LIBS' => [join(' ',@LIBPATH,@LIBS)],
> 'INC' => join(' ',@INC),
Hm.
> And both gd.h and libgd.a are found correctly - so long as I provide the
> correct location of libgd.a when prompted by the Makefile.PL.
Wait. How is it that you're getting prompted somehow for libgd.a? I'd
be happy to statically link to libgd.a, but don't yet know how. How do
I tell GD's Makefile.PL that I'd like to statically link to libgd? That
would actually solve my problem here pretty nicely. When I built libgd,
I got both the .so and the .a in ~/opt/lib.
BTW, currently, when running "perl Makefile.PL LIB=/home/me/perllib",
I'm not getting prompted for anything, since the new libgd I built has
its own gdlib-config in ~/opt/bin which is evidently being used
correctly by GD's Makefile.PL.
Thanks for all the help! :)
---John
|