* OS X and camlimages
@ 2004-12-06 21:57 Christophe Raffalli
2004-12-06 23:12 ` [Caml-list] " Daniel Bünzli
0 siblings, 1 reply; 3+ messages in thread
From: Christophe Raffalli @ 2004-12-06 21:57 UTC (permalink / raw)
To: caml-list
* 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 ...
* By the way, do you know if and what part of camlimages can be compiled on
OS X without any fink library.
Finally, when linking with GlSurf, I got the following problem which tend to
prove that libpng is already in the standard OS X library (but I could not find
the headers, may be I am missing some SDK in xcode):
ocamlopt -o glsurf functionstubs.o -labels -I +lablGL -I +threads -I
+camlimages -pp "camlp4o pa_macro.cmo -DOSX" -ccopt "-g" -cclib
-bind_at_load -thread nums.cmxa unix.cmxa threads.cmxa lablglut.cmxa
lablgl.cmxa ci_core.cmxa ci_bmp.cmxa ci_gif.cmxa ci_jpeg.cmxa
ci_ppm.cmxa ci_ps.cmxa ci_xpm.cmxa ci_tiff.cmxa ci_png.cmxa -cclib -L/
sw/lib -cclib -L/usr/X11R6/lib -cclib -lobjc -ccopt "-framework openGL"
-ccopt "-framework GLUT" glchar.cmx dirty.cmx input_util.cmx algebra.cmx
expression.cmx vector.cmx optimisation.cmx vect3.cmx target.cmx
parameters.cmx function.cmx glarrays.cmx triangulation_tools.cmx
draw.cmx pivot.cmx marching_cube.cmx curve.cmx action.cmx inflate.cmx
parser.cmx main.cmx
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Caml-list] OS X and camlimages
2004-12-06 21:57 OS X and camlimages Christophe Raffalli
@ 2004-12-06 23:12 ` Daniel Bünzli
2004-12-07 17:15 ` Christophe Raffalli
0 siblings, 1 reply; 3+ messages in thread
From: Daniel Bünzli @ 2004-12-06 23:12 UTC (permalink / raw)
To: Christophe Raffalli; +Cc: caml-list caml-list
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
> * 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 I think that if you have a standard installation (which does _not_
include X11 by default) then you get only the minimum listed in the
INSTALL files, that is BMP, PPM, PGM, PBM.
> Finally, when linking with GlSurf, I got the following problem which
> tend to
> prove that libpng is already in the standard OS X library (but I could
> not find
> the headers, may be I am missing some SDK in xcode):
[...]
> 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
you'll see the symbols of png's api so it must be statically linked in
the Appkit.
Greetings,
Daniel
P.S. More about that warning in man ld
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Caml-list] OS X and camlimages
2004-12-06 23:12 ` [Caml-list] " Daniel Bünzli
@ 2004-12-07 17:15 ` Christophe Raffalli
0 siblings, 0 replies; 3+ messages in thread
From: Christophe Raffalli @ 2004-12-07 17:15 UTC (permalink / raw)
To: Daniel Bünzli; +Cc: caml-list caml-list
[-- Attachment #1: Type: text/plain, Size: 2567 bytes --]
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
---------------------------------------------
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 252 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-12-07 17:15 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-06 21:57 OS X and camlimages Christophe Raffalli
2004-12-06 23:12 ` [Caml-list] " Daniel Bünzli
2004-12-07 17:15 ` Christophe Raffalli
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox