[Date Prev][Date Next][Thread Prev][Thread Next][Thread Index]

Re: [XaraXtreme-dev] Problems with ranlib while compiling XaraLX



On 12/04/06, Phil Martin <phil@xxxxxxxx> wrote:
> We have a lot of problems with png and jpeg libs on the Mac.
>
> I may be talking a load of rubbish here ...

I don't think that we are in 'loads of rubbish' territory right now.

> ...but: Doesn't wxWidgets contain those libs?

When I read that I wasn't sure. I have since had a look at page 554 of
the Brooklyn Bridge Book and I would work on the basis that from the
point of view of wxWidgets, it runs the other way: wxWidgets expects
to use system provided PNG save on those platforms that don't have it.
Whilst it may be judgement call, I am going to give reasons why we
should consider Mac OS to be such a platform.

> And if so, why can't we force XaraLX to link to those
> versions rather than trying to find independent versions? That would be
> a lot neater.

I am not quite sure whether there is a dispute on this, nor on which
side I am, but I am going to suggest that at least in the short-term
wxWidgets be configured to use its built-in libraries, treating Mac OS
X as a platform without PNG and JPEG, since Apple/Darwin does not have
these libraries in /usr or /usr/local. I am not saying that this is
the only way of doing it, nor that it is the best (but it may be),
merely that it is the the thing to try first.

I will try this out, and provide a patch to the build page.

Ben

> Ben Fowler wrote:
>
> >On 11/04/06, Andy Davison <andydavison@xxxxxxxxx> wrote:
> >>On 11/04/06, Ben Fowler <ben.the.mole@xxxxxxxxx> wrote:
> >>>On 10/04/06, Andy Davison <andydavison@xxxxxxxxx> wrote:
> >>>
> >>>>[ snip ]
> >>>>
> >>However, it still breaks down, this time with:
> >>
> >>.././wxOil/outputpng.h:109:17: error: png.h: No such file or directory
> >
> >I added the path to my installed png library, using CFLAGS. (Whilst I
> >think that this is right, and I would hope that the autoconf for Xara
> >LX is developed to make this more effective), I have a little niggle
> >in the back of my mind that telling wx to use the fink png libraries
> >is responsible for part of the badness in Bug 929 "Failure reading PNG
> >bitmap on Mac".
> >
> >You probably have png.h in /sw/include/libpng12 and the libraries in
> >/sw/lib : If you don't, you might want to install png independently
> >(the instruction to use fink came from me, and I am not sure whether
> >it is entirely correct - but I don't see how we can expect developers
> >to remove chunks of their fink installation just to compile Xara). I
> >really would like to see some clarity on this, and I fear that it may
> >mean some work doing that there is nobody yet available to do!
> >
> >If you do decide to install png on a different path, you will have to
> >choose a PREFIX for it; whilst /usr/local is appealing, I could only
> >wholeheartedly recommend this on a machine that you are not using for
> >any other development, which is not a likely state of affairs. You
> >could try somewhere in your home directory, as with the wx libraries.
> >
> >You may have the same problem with the JPEG libraries, and you can
> >assuredly work on the same lines.