Version française
Home     About     Download     Resources     Contact us    
Browse thread
OS_X_and_camlimages
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Christophe Raffalli <Christophe.Raffalli@u...>
Subject: Re: [Caml-list] OS X and camlimages
Daniel Bünzli wrote:
> 
> Le 6 déc. 04, ŕ 22:57, Christophe Raffalli a écrit :
> 
> 
>> * I failed to compile cleanly camlimages on OS X (with fink) (I had to 
>> add -L/
>> sw/lib and -I/sw/include at the proper places ...
> 
> 
> Maybe this should be documented in the INSTALL file :
> 
>  > ./configure --help
> [...]
> Some influential environment variables:
>   CC          C compiler command
>   CFLAGS      C compiler flags
>   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
>               nonstandard directory <lib dir>
>   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
>               headers in a nonstandard directory <include dir>
>   CPP         C preprocessor
> 
> 
Thanks.


>> * By the way, do you know if and what part of camlimages can be 
>> compiled on
>> OS X without any fink library.
> 
> 
> Here, with X11 and ghostscript installed, configure ends with :
> 
> External libraries: lablgl bmp ppm xpm freetype(2) ps

So you say no way to have png, tiff jpeg in standrad apple SDK ?

>> ld: warning multiple definitions of symbol _png_get_uint_31
>> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit(single
>> module) definition of _png_get_uint_31
>> /sw/lib/libpng.dylib(pngrutil.pic.o) definition of _png_get_uint_31
> 
> 
> I don't think libpng is present on the system, it is not in /usr/lib. 
> And if you look at
> the output of
> 
>  > otool -L /System/Library/Frameworks/AppKit.framework/AppKit
> 
> you will see that the AppKit is not dynamically linked against any 
> libpng. If you grep for 'png' in the output of
> 
>  > nm /System/Library/Frameworks/AppKit.framework/AppKit

I did all that, but still there seems to be a name collison between 
AppKit and libpng, while no png is listed in the header.

> you'll see the symbols of png's api so it must be statically linked in 
> the Appkit.

If true, that's a pity.

> Greetings,
> 
> Daniel
> 
> P.S. More about that warning in man ld
> 

You mean a way to choose which one you want to use ? I will have a look. 
Thanks.

-- 
Christophe Raffalli
Université de Savoie
Batiment Le Chablais, bureau 21
73376 Le Bourget-du-Lac Cedex

tél: (33) 4 79 75 81 03
fax: (33) 4 79 75 87 42
mail: Christophe.Raffalli@univ-savoie.fr
www: http://www.lama.univ-savoie.fr/~RAFFALLI
---------------------------------------------
IMPORTANT: this mail is signed using PGP/MIME
At least Enigmail/Mozilla, mutt or evolution
can check this signature. The public key is
stored on www.keyserver.net
---------------------------------------------