openexr-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Openexr-devel] building C API app


From: J A
Subject: Re: [Openexr-devel] building C API app
Date: Wed, 13 Sep 2006 15:33:33 +1200


Cheers John!

This was most helpful. I managed to compile the code after including the right libraries suggested by pkg-config and picking another gcc version (4.0.3).

Thanks!
j


On 12/09/06, John Cupitt <address@hidden> wrote:


You can use pkg-config to get a list of the compiler flags and
libraries you need when linking against openexr. On my system (mac os
x, openexr 1.4.0 installed though darwinports) it returns:

  pineapple:~/CVS/vips- 7.11 john$ pkg-config OpenEXR --cflags
  -D_THREAD_SAFE -I/opt/local/include/OpenEXR
  pineapple:~/CVS/vips-7.11 john$ pkg-config OpenEXR --libs
  -L/opt/local/lib -lIlmImf -lImath -lHalf -lIex -lz

Your system will probably be different, of course. If you're using
autotools you can integrate this stuff automatically with
PKG_CHECK_MODULES.

John


reply via email to

[Prev in Thread] Current Thread [Next in Thread]