Re: Bug in configure script for openexr-2.1.0 on ubuntu 12.0.4 LTS
Nicholas Yue <[email protected]>
| Newsgroups | gmane.comp.video.openexr.devel |
|---|---|
| Message-ID | <[email protected]> |
On 17/04/14 6:09 AM, Christopher Horvath wrote:
> Howdy folks.
>
> I'm building openexr-2.1.0 in a non-standard location, on ubuntu
> 12.0.4 LTS. I have an environment variable, EMLDNEEDS_ROOT, which is
> set to the install location for everything, using --prefix. I have a
> build of libz in this location as well. Here's my config line:
>
> ./configure --prefix=$EMLDNEEDS_ROOT
> --with-ilmbase-prefix=$EMLDNEEDS_ROOT --with-pic --enable-static
> --disable-shared LDFLAGS=-L$EMLDNEEDS_ROOT/lib
> CFLAGS=-I$EMLDNEEDS_ROOT/include
>
> The bug is that it doesn't seem to be respecting LDFLAGS or CFLAGS
> when building, specifically with respect to libz. An example error:
Hi Christopher,
My previous attempt in passing compiler flags through configure
would have the above written out as such
env LDFLAGS=-L$EMLDNEEDS_ROOT/lib
CFLAGS=-I$EMLDNEEDS_ROOT/include ./configure --prefix=$EMLDNEEDS_ROOT
--with-ilmbase-prefix=$EMLDNEEDS_ROOT --with-pic --enable-static
--disable-shared
i.e. I use "env" to convey the information to/through configure
Hope that helps.
Cheers
--
Nicholas Yue
Graphics - RenderMan, Visualization, OpenGL, HDF5
Custom Dev - C++ porting, OSX, Linux, Windows
http://au.linkedin.com/in/nicholasyue
https://vimeo.com/channels/naiadtools