From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id 0BE2FBB81 for ; Tue, 7 Dec 2004 00:13:17 +0100 (CET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id iB6NDGos021677 for ; Tue, 7 Dec 2004 00:13:16 +0100 Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id AAA31805 for ; Tue, 7 Dec 2004 00:13:16 +0100 (MET) Received: from mail13.bluewin.ch (mail13.bluewin.ch [195.186.18.62]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id iB6NCtFA027381 for ; Tue, 7 Dec 2004 00:13:15 +0100 Received: from [10.0.1.2] (83.77.155.83) by mail13.bluewin.ch (Bluewin AG 7.0.032) id 41B452F10000DF2F; Mon, 6 Dec 2004 23:12:55 +0000 In-Reply-To: <200412062157.iB6LvtpX025619@post.bourget.univ-savoie.fr> References: <200412062157.iB6LvtpX025619@post.bourget.univ-savoie.fr> Mime-Version: 1.0 (Apple Message framework v619) Content-Type: text/plain; charset=ISO-8859-1; format=flowed Message-Id: <59134186-47DC-11D9-9DB0-000393DBC266@epfl.ch> Content-Transfer-Encoding: quoted-printable Cc: caml-list caml-list From: =?ISO-8859-1?Q?Daniel_B=FCnzli?= Subject: Re: [Caml-list] OS X and camlimages Date: Tue, 7 Dec 2004 00:12:49 +0100 To: Christophe Raffalli X-Mailer: Apple Mail (2.619) X-Miltered: at nez-perce with ID 41B4E78C.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at concorde with ID 41B4E777.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; epfl:01 caml-list:01 camlimages:01 christophe:01 raffalli:01 camlimages:01 lib:01 compiler:01 cflags:01 compiler:01 flags:01 flags:01 lib:01 nonstandard:01 nonstandard:01 X-Spam-Checker-Version: SpamAssassin 3.0.0 (2004-09-13) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.0 X-Spam-Level: Le 6 d=E9c. 04, =E0 22:57, Christophe Raffalli a =E9crit : > * I failed to compile cleanly camlimages on OS X (with fink) (I had to=20= > 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 if you have libraries in a nonstandard directory CPPFLAGS C/C++ preprocessor flags, e.g. -I if you = have headers in a nonstandard directory CPP C preprocessor > * By the way, do you know if and what part of camlimages can be=20 > 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_=20 include X11 by default) then you get only the minimum listed in the=20 INSTALL files, that is BMP, PPM, PGM, PBM. > Finally, when linking with GlSurf, I got the following problem which=20= > tend to > prove that libpng is already in the standard OS X library (but I could=20= > 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.=20 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=20 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=20= the Appkit. Greetings, Daniel P.S. More about that warning in man ld=