develooper Front page | perl.macosx | Postings from August 2001

Re: JPEG, PerlMagick, GD.pm (was Re: Cocoa interfaces)

Thread Previous | Thread Next
From:
Edward Moy
Date:
August 30, 2001 11:10
Subject:
Re: JPEG, PerlMagick, GD.pm (was Re: Cocoa interfaces)
Message ID:
5572D1C2-9D72-11D5-919E-003065ED53B2@apple.com
On Thursday, August 30, 2001, at 01:58  AM, Matt Patterson wrote:

> On 28/8/01 at 11:15 pm, emoy@apple.com wrote:
>
>> Anyways, to compile jpeg-6b, just:
>>
>>   % cd /path/to/jpeg-6b-source
>>   % cp /usr/libexec/config.* .
>>   % ./configure
>>   % make
>>
>> The second line is the trick; this overwrites config.guess and
>> config.sub with versions that know about MacOSX (darwin).
>
> Can I assume from this that to compile other things whose configure 
> scripts
> don't know about darwin I can do this, and if that's the only problem 
> I'll be
> fine...
>
> (I'm thinking of the Gnome libXML and libXSLT here...)

I don't know first-hand about Gnome libXML and libXSLT, but the config.* 
trick is probably one that will get you through most.  There are some 
things that special case for NeXTStep/OpenStep code, but don't know about 
darwin directly, so you have to modify the code to do it the 
NeXTStep/OpenStep way (e.g., the dynamic loader stuff in Apache has needed 
this fix).

I've seen a few differences among pure gcc compilers and the MacOSX cc 
compiler, as well as a subtle difference with the use of "sed" in a script 
used as part of the build process (or was it "awk"; I forget).  Some are 
easy to find, some are not.  But that is just part of the game as no 
unix-like system is exactly like another, and you just have to hope that 
the code is either generic enough or has been special cased close enough 
to work.

Mailing lists (and archives) are often a good source of this information 
and we like to share our experiences and successes with others.
--------------------------------------------------------------------------
Edward Moy
Apple Computer, Inc.
emoy@apple.com

(This message is from me as a reader of this list, and not a statement
from Apple.)


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About