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 9F6357F256 for ; Wed, 7 Nov 2012 15:43:38 +0100 (CET) Received-SPF: None (mail1-smtp-roc.national.inria.fr: no sender authenticity information available from domain of pierreetienne.meunier@gmail.com) identity=pra; client-ip=209.85.213.54; receiver=mail1-smtp-roc.national.inria.fr; envelope-from="pierreetienne.meunier@gmail.com"; x-sender="pierreetienne.meunier@gmail.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail1-smtp-roc.national.inria.fr: domain of pierreetienne.meunier@gmail.com designates 209.85.213.54 as permitted sender) identity=mailfrom; client-ip=209.85.213.54; receiver=mail1-smtp-roc.national.inria.fr; envelope-from="pierreetienne.meunier@gmail.com"; x-sender="pierreetienne.meunier@gmail.com"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail1-smtp-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@mail-yh0-f54.google.com) identity=helo; client-ip=209.85.213.54; receiver=mail1-smtp-roc.national.inria.fr; envelope-from="pierreetienne.meunier@gmail.com"; x-sender="postmaster@mail-yh0-f54.google.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AkMCALZymlDRVdU2k2dsb2JhbABEsUiSGggjAQEBAQkJCwkUBCOCHgEBBAFAARsPAwsBAwwGBQsaISMRAQUBChIGDBmHZQEDCQYLnUCMMIJ4hRUKGScDClmIdQEFDIwBhWZhA457hwCBHI1HP4Qr X-IronPort-AV: E=Sophos;i="4.80,730,1344204000"; d="diff'?scan'208";a="180531589" Received: from mail-yh0-f54.google.com ([209.85.213.54]) by mail1-smtp-roc.national.inria.fr with ESMTP/TLS/RC4-SHA; 07 Nov 2012 15:43:37 +0100 Received: by mail-yh0-f54.google.com with SMTP id s35so373981yhf.27 for ; Wed, 07 Nov 2012 06:43:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:mime-version:content-type:from:in-reply-to:date:cc :message-id:references:to:x-mailer; bh=+zzcAukdU6NUmXSqhq8GySN4oxi4BACZYm+JLySJx7w=; b=tzDyLZUYF8eSyJlAQiw6UXXF2pDeAFewhTzorMwP3tl/UaI+fb90Svp8uR5VTJAFj5 AdeqRT6xORNKNO2541eHvFsUqpQTUZ3OwZkDrblywrYe/QtU2x2VNEFf8Fe5nInzCnP5 W4+bkdB0iT/xm8WPzMFrzdFHtGi8MHEXUpbsaByBIR9eeZAbZYYcPMAdEbS1Mch1WZJT +ENLaFsxymokv8Y1+nNwHVpn9tD0OEA/AzQk/v9BWu0/rgdr2IzOWQ8GnOM1Vm0tlSP8 vKQrKUqwjgqLPpPmm11kOEJLVwy05taXMuMFstT2q2nI0yohBCdl/FPrtYUKbgob+qSy 1+FA== Received: by 10.236.154.165 with SMTP id h25mr4904380yhk.38.1352299416664; Wed, 07 Nov 2012 06:43:36 -0800 (PST) Received: from marcelle.wifi.dim.uchile.cl (gw.dim.uchile.cl. [146.83.7.1]) by mx.google.com with ESMTPS id o66sm23914761yhi.19.2012.11.07.06.43.34 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 07 Nov 2012 06:43:35 -0800 (PST) Mime-Version: 1.0 (Apple Message framework v1085) Content-Type: multipart/mixed; boundary=Apple-Mail-8-330055917 From: Pierre-Etienne Meunier In-Reply-To: <3A52788A-5B74-490E-9678-5C5C1578C524@inria.fr> Date: Wed, 7 Nov 2012 11:43:30 -0300 Cc: O Caml Message-Id: <63455026-B336-4506-A3C2-E3A87AE9052D@gmail.com> References: <3A52788A-5B74-490E-9678-5C5C1578C524@inria.fr> To: Samuel Hornus X-Mailer: Apple Mail (2.1085) Subject: Re: [Caml-list] camlimages problems on mac --Apple-Mail-8-330055917 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii A while ago, I sent Pierre Weis a patch to make camlimages compatible with = the new versions of libpng. I do not know if he used it, but please find it= attached. This should solve the first problem. Next, there is a bug in oma= ke, which prevents the libraries from being detected properly. The "dummy" = version of the files get used instead of the correct ones. A friend of mine= , Florian Hatat, sent a correction for ubuntu. We did not test it on mac. Maybe some ocamlbuild expert could write some tags to make camlimages compi= le with ocamlbuild ? This library is really useful, only the build system i= s hard to use. Cheers, Pierre --Apple-Mail-8-330055917 Content-Disposition: attachment; filename=png.diff Content-Type: application/octet-stream; name="png.diff" Content-Transfer-Encoding: 7bit --- src/pngwrite.c.old 2011-06-22 20:04:32.000000000 +0200 +++ src/pngwrite.c 2012-10-19 09:26:26.000000000 +0200 @@ -62,7 +62,7 @@ } /* error handling */ - if (setjmp(png_ptr->jmpbuf)) { + if (setjmp(png_jmpbuf(png_ptr))) { /* Free all of the memory associated with the png_ptr and info_ptr */ png_destroy_write_struct(&png_ptr, &info_ptr); fclose(fp); @@ -171,7 +171,7 @@ } /* error handling */ - if (setjmp(png_ptr->jmpbuf)) { + if (setjmp(png_jmpbuf(png_ptr))) { /* Free all of the memory associated with the png_ptr and info_ptr */ png_destroy_write_struct(&png_ptr, &info_ptr); fclose(fp); --- src/pngread.c.old 2011-06-22 20:04:32.000000000 +0200 +++ src/pngread.c 2012-10-19 09:26:36.000000000 +0200 @@ -69,7 +69,7 @@ } /* error handling */ - if (setjmp(png_ptr->jmpbuf)) { + if (setjmp(png_jmpbuf(png_ptr))) { /* Free all of the memory associated with the png_ptr and info_ptr */ png_destroy_read_struct(&png_ptr, &info_ptr, (png_infopp)NULL); fclose(fp); @@ -134,7 +134,7 @@ png_set_rows(png_ptr, info_ptr, row_pointers); /* Later, we can return something */ - if (setjmp(png_ptr->jmpbuf)) { + if (setjmp(png_jmpbuf(png_ptr))) { /* Free all of the memory associated with the png_ptr and info_ptr */ png_destroy_read_struct(&png_ptr, &info_ptr, (png_infopp)NULL); fclose(fp); @@ -243,7 +243,7 @@ } /* error handling */ - if (setjmp(png_ptr->jmpbuf)) { + if (setjmp(png_jmpbuf(png_ptr))) { /* Free all of the memory associated with the png_ptr and info_ptr */ png_destroy_read_struct(&png_ptr, &info_ptr, (png_infopp)NULL); fclose(fp); @@ -302,7 +302,7 @@ png_set_rows(png_ptr, info_ptr, row_pointers); /* Later, we can return something */ - if (setjmp(png_ptr->jmpbuf)) { + if (setjmp(png_jmpbuf(png_ptr))) { /* Free all of the memory associated with the png_ptr and info_ptr */ png_destroy_read_struct(&png_ptr, &info_ptr, (png_infopp)NULL); fclose(fp); --Apple-Mail-8-330055917 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 Em 07/11/2012, =E0s 09:52, Samuel Hornus escreveu: >=20 > Hello, >=20 > When installing camlimages 4.0.1 with MacPort (Mac OS X 10.7.5, Latest Ma= cPorts), > the resulting camlimages has no support for JPEG, PNG, PPM, XPM, etc=85 w= hich makes it sort of useless. >=20 > When compiling the source using omake, the same happens. It can find the = header files, but can't find specific functions inside. >=20 > The source code for camlimages seems perhaps outdated w.r.t. changes in t= he API of libpng, libjpg, giflib, tifflib, etc=85=20 >=20 > Could anyone confirms this dire state of affairs? Is there a "modernizer"= patch floating around? or some work in progress? Is it the same on Linux? >=20 > Thank you, > Samuel > --=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 --Apple-Mail-8-330055917--