English version
Accueil     Ŕ propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis ŕ jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml ŕ l'adresse ocaml.org.

Browse thread
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2004-12-06 (21:58)
From: Christophe_Raffalli <Christophe.Raffalli@u...>
Subject: OS_X_and_camlimages

* 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
module) definition of _png_get_uint_31
/sw/lib/libpng.dylib(pngrutil.pic.o) definition of _png_get_uint_31