I am using CMake through the gui, so LINKSTATIC is checked on, but i think you
are right about my new settings not getting picked up. Using the CMake gui I
purged ILMBase and OpenEXR variables and reconfigured the project, now I get
static libraries. It is building now... crossing fingers.
Thanks again Thiago!
Steven
--------- Original Message --------- Subject: Re: [Oiio-dev] a couple linux
build related questions
From: "Thiago Ize" <[email protected]>
Date: 4/7/15 9:45 am
To: "OpenImageIO developers" <[email protected]>
When you ran make, did you make sure to:
@echo " LINKSTATIC=1 Link with static external
libraries when possible"
Also, perhaps you need to set:
@echo " ILMBASE_HOME=path Custom Ilmbase installation"
@echo " OPENEXR_HOME=path Custom OpenEXR installation"
Also, you might need to do a "make nuke" to make sure it really did pick up
your new settings.
On Mon, Apr 6, 2015 at 6:29 PM, <[email protected]> wrote:
ya, ilm/openexr libraries are still listed as shared objects when I run 'ldd
oiiotool'... I am going to hack the cmake generated files to make sure this is
just a build system issue and not that ilm/openexr is configured incorrectly.
cause I have static versions of all the libs in my /usr/local/lib directory.
--------- Original Message --------- Subject: Re: [Oiio-dev] a couple linux
build related questions
From: [email protected]
Date: 4/6/15 5:20 pm
To: "OpenImageIO developers" <[email protected]>
Hey Thiago
So I recompiled OpenEXR and ILMBase with your suggested flags, that all seemed
to go fine. I then re ran CMake in case it could now resolve the static libs
and I am compiling now. I took a quick peek into the build files and there is a
file called 'link.txt' that CMake makes and this is what gets passed to the
linker. I am noticing it still lists libHalf, libIex, libImath etc as .so files
and not .a files... this makes me believe it didn't take, but I will let the
build finish and test it...
Steven
--------- Original Message --------- Subject: Re: [Oiio-dev] a couple linux
build related questions
From: "Thiago Ize" <[email protected]>
Date: 4/6/15 4:39 pm
To: "OpenImageIO developers" <[email protected]>
When you configure openexr and ilmbase, try passing in:
--with-pic --enable-static --disable-shared
On Mon, Apr 6, 2015 at 5:35 PM, <[email protected]> wrote:
Hey Nathan
Thanks for the help, I am able to link Boost statically with OIIO but I had to
add -lrt though because of this linker error...
undefined reference to `clock_gettime'
I modified the CMakeLists.txt of each OIIO tool which had an error and I am
able to compile and link without error. Unfortunately, ILMBase and OpenEXR are
not linking statically despite all my efforts on setting
'ILMBASE_USE_STATIC_LIBS' and 'OPENEXR_USE_STATIC_LIBS'. As you can see all my
boost dependencies are gone but ILMBase and OpenEXR remain.
[root@linux01 bin]# ldd oiiotool
linux-vdso.so.1 => (0x00007fff842ab000)
librt.so.1 => /lib64/librt.so.1 (0x000000360cc00000)
libOpenImageIO.so.1.5 =>
/tmp/oiio-RB-1.5_build/dist/bin/./../lib/libOpenImageIO.so.1.5
(0x00007fe254ef4000)
libdl.so.2 => /lib64/libdl.so.2 (0x000000360c800000)
libHalf.so.12 => /usr/local/lib/libHalf.so.12 (0x00007fe254cb2000)
libIex-2_2.so.12 => /usr/local/lib/libIex-2_2.so.12 (0x00007fe254a92000)
libImath-2_2.so.12 => /usr/local/lib/libImath-2_2.so.12 (0x00007fe254883000)
libIlmThread-2_2.so.12 => /usr/local/lib/libIlmThread-2_2.so.12
(0x00007fe25467d000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x000000360c400000)
libpng12.so.0 => /usr/lib64/libpng12.so.0 (0x0000003611000000)
libz.so.1 => /usr/local/lib/libz.so.1 (0x00007fe254466000)
libtiff.so.3 => /usr/lib64/libtiff.so.3 (0x000000361a400000)
libjpeg.so.62 => /usr/lib64/libjpeg.so.62 (0x000000361c800000)
libIlmImf-2_2.so.22 => /usr/local/lib/libIlmImf-2_2.so.22
(0x00007fe253f81000)
libgif.so.4 => /usr/lib64/libgif.so.4 (0x00007fe253d77000)
libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x0000003618800000)
libm.so.6 => /lib64/libm.so.6 (0x000000360d000000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x0000003618000000)
libc.so.6 => /lib64/libc.so.6 (0x000000360c000000)
/lib64/ld-linux-x86-64.so.2 (0x000000360bc00000)
libIexMath-2_2.so.12 => /usr/local/lib/libIexMath-2_2.so.12
(0x00007fe253b72000)
libSM.so.6 => /usr/lib64/libSM.so.6 (0x0000003619000000)
libICE.so.6 => /usr/lib64/libICE.so.6 (0x0000003618c00000)
libX11.so.6 => /usr/lib64/libX11.so.6 (0x000000360fc00000)
libuuid.so.1 => /lib64/libuuid.so.1 (0x0000003618400000)
libxcb.so.1 => /usr/lib64/libxcb.so.1 (0x000000360f400000)
libXau.so.6 => /usr/lib64/libXau.so.6 (0x000000360f800000)
Thanks a bunch for your previous help!
Steven
--------- Original Message --------- Subject: Re: [Oiio-dev] a couple linux
build related questions
From: "Nathan Rusch" <[email protected]>
Date: 4/6/15 10:31 am
To: "OpenImageIO developers" <[email protected]>
Sorry, that should be:
./b2 install --build-type=minimal --toolset=gcc cxxflags=-fPIC
--prefix=/path/to/prefix
(I left out the = after --toolset)..
_______________________________________________
Oiio-dev mailing list
[email protected]
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org
_______________________________________________ Oiio-dev mailing list
[email protected]
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org
_______________________________________________ Oiio-dev mailing list
[email protected]
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org
_______________________________________________
Oiio-dev mailing list
[email protected]
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org
_______________________________________________ Oiio-dev mailing list
[email protected]
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org
_______________________________________________
Oiio-dev mailing list
[email protected]
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org