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 mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by sympa.inria.fr (Postfix) with ESMTPS id 03E747F256 for ; Wed, 7 Nov 2012 15:31:20 +0100 (CET) X-IronPort-AV: E=Sophos;i="4.80,730,1344204000"; d="scan'208";a="180528829" Received: from top.irisa.fr ([131.254.16.41]) by mail1-relais-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES128-SHA; 07 Nov 2012 15:31:19 +0100 From: Alan Schmitt To: Samuel Hornus Cc: O Caml References: <3A52788A-5B74-490E-9678-5C5C1578C524@inria.fr> <317FD50D-3890-400B-BB10-7B1B5069366E@inria.fr> Date: Wed, 07 Nov 2012 15:30:52 +0100 In-Reply-To: <317FD50D-3890-400B-BB10-7B1B5069366E@inria.fr> (Samuel Hornus's message of "Wed, 7 Nov 2012 15:04:51 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (darwin) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Caml-list] camlimages problems on mac Samuel Hornus writes: > On Nov7, 2012, at 14:20 , Alan Schmitt wrote: > >> Samuel Hornus writes: >>=20 >>> Hello, >>>=20 >>> When installing camlimages 4.0.1 with MacPort (Mac OS X 10.7.5, Latest = MacPorts), >>> the resulting camlimages has no support for JPEG, PNG, PPM, XPM, etc=E2= =80=A6 >>> which makes it sort of useless. >> I just tried to configure it using godi, and this is what is supported >> on my system: >>=20 >> External libraries: lablgtk2 bmp ppm png jpeg tiff freetype(2) ps >>=20 >> Most of my image libraries are installed through homebrew (I see for >> instance "jpeg" or "libpng", I don't know where the ppm support comes >> from). >>=20 >> To get support for gifs, I installed giflib (still through homebrew). >>=20 >> After doing this, camlimages seems to compile fine. > > The compilation goes without a hitch here as well (both using omake or > macports), but the support for most of the image file formats are > automatically disabled after examining the third-party' header files, > so you get an OCaml exception at runtime. There is a piece of code > (from camlimages) that dumps what is actually supported (see below). > Does your camlimages actually has support for jpeg or png ? Yes: ******************************************************* Camlimages library capabilities currently available bmp : supported ppm : supported gif : supported jpeg : supported tiff : supported png : supported xpm : not supported xv thumbnails : supported postscript : supported freetype : supported ******************************************************* Alan