From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by sympa.inria.fr (Postfix) with ESMTPS id F0F637F256 for ; Wed, 7 Nov 2012 15:22:21 +0100 (CET) Received-SPF: None (mail4-smtp-sop.national.inria.fr: no sender authenticity information available from domain of info@gerd-stolpmann.de) identity=pra; client-ip=212.227.17.8; receiver=mail4-smtp-sop.national.inria.fr; envelope-from="info@gerd-stolpmann.de"; x-sender="info@gerd-stolpmann.de"; x-conformance=sidf_compatible Received-SPF: None (mail4-smtp-sop.national.inria.fr: no sender authenticity information available from domain of info@gerd-stolpmann.de) identity=mailfrom; client-ip=212.227.17.8; receiver=mail4-smtp-sop.national.inria.fr; envelope-from="info@gerd-stolpmann.de"; x-sender="info@gerd-stolpmann.de"; x-conformance=sidf_compatible Received-SPF: Pass (mail4-smtp-sop.national.inria.fr: domain of postmaster@moutng.kundenserver.de designates 212.227.17.8 as permitted sender) identity=helo; client-ip=212.227.17.8; receiver=mail4-smtp-sop.national.inria.fr; envelope-from="info@gerd-stolpmann.de"; x-sender="postmaster@moutng.kundenserver.de"; x-conformance=sidf_compatible; x-record-type="v=spf1" X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvkAALRtmlDU4xEIjGdsb2JhbABEhhirMJIiIwEBAQoJCwcCFAMkgh4BAQQBI0sLIxACAgkdAj4JEgYTCQmHZgMJCgehIId4iSUDiV4UgQyKbYU0gRMDjV2JOpIY X-IronPort-AV: E=Sophos;i="4.80,730,1344204000"; d="scan'208";a="161690616" Received: from moutng.kundenserver.de ([212.227.17.8]) by mail4-smtp-sop.national.inria.fr with ESMTP/TLS/RC4-SHA; 07 Nov 2012 15:22:21 +0100 Received: from office1.lan.sumadev.de (dslb-094-219-214-149.pools.arcor-ip.net [94.219.214.149]) by mrelayeu.kundenserver.de (node=mrbap1) with ESMTP (Nemesis) id 0MT5yY-1TwwXt3C9W-00S7xq; Wed, 07 Nov 2012 15:22:19 +0100 Received: from samsung (ip-5-146-55-186.unitymediagroup.de [5.146.55.186]) by office1.lan.sumadev.de (Postfix) with ESMTPSA id 5C68EC00CF; Wed, 7 Nov 2012 15:22:19 +0100 (CET) Date: Wed, 07 Nov 2012 15:22:19 +0100 From: Gerd Stolpmann Reply-To: Gerd Stolpmann To: Samuel Hornus Cc: O Caml In-Reply-To: <317FD50D-3890-400B-BB10-7B1B5069366E@inria.fr> X-Mailer: Balsa 2.4.11 Message-Id: <1352298139.3688.1@samsung> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp=Yes; Format=Flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable X-Provags-ID: V02:K0:dopgVA/ex0Xu7m49KIlxInC/qH81o1q1SlWH5BQkDW0 cIdUwWMzJZcd+su+cfCTtPh+3MeyH0R2reoqI/8/tak7BwwAbJ JlTH2meTYpKm5+PMg+P1fzMN1xartuavWpb6y3t7v2vptnZJLt 4UfjDMBFAVwMPbqb+o7mVv05rAajMOE3U5EM0If69Omh51+ZQ8 sVxsTQVy/PvaTXglW1notitIx7nmuv4hcIEp9Sz1qFIMbjXr89 yT6wRUODj6nZ0LLRxS5SXaUopA98hGqn9g7Z50YF/SfhPXR9um iax0RaU68Xgqid8TXDmte/xFoNb9KCdi0FhNxI0S/dzzok1e0E MdIM+gIkLC0F3BvOddhA= Subject: AW: [Caml-list] camlimages problems on mac Am 07.11.2012 15:04:51 schrieb(en) Samuel Hornus: > On Nov7, 2012, at 14:20 , Alan Schmitt wrote: >=20 > > Samuel Hornus writes: > > > >> Hello, > >> > >> When installing camlimages 4.0.1 with MacPort (Mac OS X 10.7.5,=20=20 > Latest MacPorts), > >> the resulting camlimages has no support for JPEG, PNG, PPM, XPM,=20=20 > etc=E2=80=A6 > >> which makes it sort of useless. > > I just tried to configure it using godi, and this is what is=20=20 > supported > > on my system: > > > > External libraries: lablgtk2 bmp ppm png jpeg tiff freetype(2) ps > > > > Most of my image libraries are installed through homebrew (I see for > > instance "jpeg" or "libpng", I don't know where the ppm support=20=20 > comes > > from). > > > > To get support for gifs, I installed giflib (still through=20=20 > homebrew). > > > > After doing this, camlimages seems to compile fine. >=20 > The compilation goes without a hitch here as well (both using omake=20=20 > or macports), but the support for most of the image file formats are=20= =20 > automatically disabled after examining the third-party' header files,=20= =20 > so you get an OCaml exception at runtime. There is a piece of code=20=20 > (from camlimages) that dumps what is actually supported (see below).=20= =20 > Does your camlimages actually has support for jpeg or png ? > Thank you Alan for your answer, > Sam I guess the reason Alan was successful is that the camlimages version=20=20 shipped with GODI is still 2.20 (plus patches). That's simply because=20=20 the build system uses omake since 4.0, and we haven't found time to=20=20 update and verify the package (which is a bit of work because of the=20=20 long list of external dependencies), and the differences between 2.20=20=20 and 4.0 are otherwise small. Gerd >=20 > let capabilities () =3D let open Format in > let supported b =3D if b then "supported" else "not supported" in > printf "*******************************************************@."; > printf "Camlimages library capabilities currently available@."; > printf "bmp\t: %s@." (supported Camlimages.lib_bmp); > printf "ppm\t: %s@." (supported Camlimages.lib_ppm); > printf "gif\t: %s@." (supported Camlimages.lib_gif); > printf "jpeg\t: %s@." (supported Camlimages.lib_jpeg); > printf "tiff\t: %s@." (supported Camlimages.lib_tiff); > printf "png\t: %s@." (supported Camlimages.lib_png); > printf "xpm\t: %s@." (supported Camlimages.lib_xpm); > printf "xv thumbnails\t: %s@." (supported Camlimages.lib_xvthumb); > printf "postscript\t: %s@." (supported Camlimages.lib_ps); > printf "freetype\t: %s@." (supported Camlimages.lib_freetype); > printf "*******************************************************@.";; >=20 > Mine shows: > bmp : supported > ppm : supported (* but crashes anyway: Fatal error: exception=20=20 > Images.Wrong_file_type *) > gif : not supported > jpeg : not supported > tiff : not supported > png : not supported > xpm : supported (* but crashes anyway: Fatal error: exception=20=20 > Images.Wrong_file_type *) > xv thumbnails : supported > postscript : supported > freetype : supported >=20 >=20 > -- > Caml-list mailing list. Subscription management and archives: > https://sympa.inria.fr/sympa/arc/caml-list > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners > Bug reports: http://caml.inria.fr/bin/caml-bugs >=20 --=20 ------------------------------------------------------------ Gerd Stolpmann, Darmstadt, Germany gerd@gerd-stolpmann.de Creator of GODI and camlcity.org. Contact details: http://www.camlcity.org/contact.html Company homepage: http://www.gerd-stolpmann.de ------------------------------------------------------------=