Opened 19 years ago

Closed 12 years ago

Last modified 7 years ago

#1550 closed enhancement (invalid)

OpenEXR

Reported by: bdubbs@… Owned by: blfs-book@…
Priority: normal Milestone: x-future
Component: BOOK Version: SVN
Severity: minor Keywords:
Cc:

Description

Add OpenEXR to the book. It is a recommeded dependency of kdelibs.

Attachments (1)

openexr-1.6.1-gcc4-1.patch (1015 bytes ) - added by Trent Shea 15 years ago.
Allows compilation with gcc-4.3

Download all attachments as: .zip

Change History (9)

comment:1 by Luca, 18 years ago

OpenEXR latest version is openexr-1.4.0a from http://www.openexr.com.

Dependencies: OpenGL, FLTK (http://www.fltk.org) and (eventually for NVIDIA users) Cg (http://developer.nvidia.com/page/cg_main.html)

Compiled with the following istructions:

./configure --prefix=/usr
make
make install

--enable-imfexamples is needed for the examples, default disabled, --with-fltk-config=<PATH> and, optionally for NVIDIA users, --with-cg-prefix=<DIR> (however actually I can't make it work, it warns about Cg old version so I'll write an email for info). It is also possible to specify which GL to use with the --with-gl-includes=<DIR>.

comment:2 by Luca, 18 years ago

Solved the problem with Cg. Actually I made OpenEXR work with Cg-1.5_x86.tar.gz; libGLU is needed to make it work (I don't know why but I needed to pass LDFLAGS="$LDFLAGS -L/usr/X11R7/lib" before configuring openexr to make it work properly).

Installing FLTK and Cg made exrdisplay being built with fragment shader support. Actually I use the latest NVIDIA Linux-x86 Beta drivers for some new extensions, and it works, I don't know about latest stable drivers version.

comment:3 by Luca, 18 years ago

Well, just tried to rebuild openexr with the same instructions, but this time it complained about Cg and no fragment shader support. Taking a look at openexr config.log when checking for Cg it checks also for lGLU, however in my ld.so.conf I have /usr/X11R7/lib and before trying configure I passed ldconfig. I don't know if it has something to do with openexr or cg but actually to make it find and use cg (tried rebuild various times) I had to symlink libGLU.so and libGLU.so.? libraries from /usr/X11R7/lib to /usr/lib. I'll investigate further...

comment:4 by Luca, 17 years ago

There's a 1.5.0 development release but I never tested.

Anyway the "problem" was solved with a sed, the solution already done on CBLFS (http://cblfs.cross-lfs.org/index.php/OpenEXR) is adding prior to configure:

sed -i "s:-lGL:-L${XORG_PREFIX}/lib &:" configure

and then the build commands:

./configure --prefix=/usr
make
make check
make install

To build the examples (disable by default) there is the switch

--enable-imfexamples

For installed FLKT and Cg it's possible to pass the switches:

--with-fltk-config=PATH --with-cg-prefix=PFX

To choose which OpenGL headers to use there's the switch:

--with-gl-includes=PFX

Programs installed: exrdisplay, exrenvmap, exrheader, exrmakepreview, exrmaketiled, exrstdattr. Libraries installed: libHalf.{a,so}, liblex.{a,so}, libilmlmf.{a,so}, libilmThread.{a,so}, liblmath,{a,so}. Installed directories: /usr/include/OpenEXR, /usr/share/doc/OpenEXR-1.4.0.

comment:5 by willimm, 15 years ago

Nice canadate for BLFS. But, well, an editor will think about this package. A dep for KDE4.

by Trent Shea, 15 years ago

Attachment: openexr-1.6.1-gcc4-1.patch added

Allows compilation with gcc-4.3

comment:6 by Trent Shea, 15 years ago

Could this be bumped to 1.6.1, please.

http://www.openexr.com/downloads.html

comment:7 by rt, 12 years ago

Resolution: invalid
Status: newclosed

Keep as external dependenceny.

comment:8 by bdubbs@…, 7 years ago

Milestone: futurex-future

Milestone renamed

Note: See TracTickets for help on using tickets.