Re: Pain to install pyilmabase

"Forum (io)" <[email protected]> Tue, 12 Dec 2017 15:16:22 +0100
Newsgroups gmane.comp.video.openexr.devel
Message-ID <[email protected]>
This is a multi-part message in MIME format.
--===============4164723693702802163==
Content-Type: multipart/alternative;
 boundary="------------224CC84977432158B0D5D5C4"
Content-Language: en-US

This is a multi-part message in MIME format.
--------------224CC84977432158B0D5D5C4
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: quoted-printable
X-MIME-Autoconverted: from 8bit to quoted-printable by smtp-sh.infomaniak.ch id vBCEDiRS021783

Hello,

Thank a lot for your reply.
I am bit lost :o).

The first think, I should look at, is to share boost. I should look=20
around the parameter -fPIC.
Also, Richard sugest to make a link Rather that a static library.

*What would be the different that making a link, than sharing boost with=20
the option -fPIC??*

I downloaded and installed from this page
https://gist.github.com/1duo/2d1d851f76f8297be264b52c1f31a2ab

Then I un-tared and I "compiled" with this command:
sudo ./bootstrap.sh --prefix=3D/opt/boost_1.65.1

Then I looked how to include the option -fPIC. I edited bootstrap and I=20
found nothing about fPIC or cxxflags.

Could you suggest me the correct syntax of the command to share boost?

@Richard
What do you exactely mean by creating a "linking again boost_python".?
Should I export something into /etc/bashrc as I did for ilbase?
export PKG_CONFIG_PATH=3D/opt/ilmbase-2-2-0/lib/pkgconfig


I thank you for your help and support and you could give me some syntax=20
ot exemple would be really appreciate.

Cheers
Pierre


On 12/11/17 1:05 AM, Richard Addison-Wood wrote:
> For what it is worth, I would suggest linking against boost_python as=20
> a shared library rather than as a static library.
>
> On 11/12/17 11:05, Peter Hillman wrote:
>>
>> Hi Pierrot,
>>
>> I think this is the error message which is causing the failure:
>>
>>> libboost_python.a(dict.o): relocation R_X86_64_32 against=20
>>> `.rodata.str1.1' can not be used when making a shared object;=20
>>> recompile with -fPIC
>> This means that boost::python was compiled as a static library=20
>> without using PIC (position independent code) which is required for=20
>> shared objects such as python extensions.
>>
>> I'm not entirely sure what the thing to do is, as I'm not a boost=20
>> expert. I'm hoping someone might chime in with advice about the best=20
>> practice. I expect either compiling boost::python as a shared library=20
>> would fix the problem (making .so files instead of .a files), as=20
>> would specifying cxxflags=3D'-fPIC' as an option when compiling boost=20
>> as a static library.
>>
>> Regarding the other questions:
>>
>>> You also spoke about installing into the same folder of=20
>>> ilmbase-2-2-0. What would you change regarding my about steps? To be=20
>>> honst with you, last week I tried but I do not rember why, I finally=20
>>> soecified a folder dedicated for pyilmbase2-2-0 in /opt/
>>
>> I advised installing all the libraries into the same directory to=20
>> simplify both the build process and usage. However, that won't solve=20
>> the build issue you currently have. Once you have pyilmbase built and=20
>> installed, you may have to specify multiple paths in PTYHONPATH=20
>> and/or LD_LIBRARY_PATH before running python code that uses the=20
>> pyilmbase extensions, otherwise you will see errors about not being=20
>> able to find the boost and/or ilmbase libraries.
>>
>> Cheers,
>>
>> Peter
>>
>>> I also observed a file name install-sh. How can that file can be=20
>>> usefull for the installation?
>>>
>> install-sh is used internally when you do a 'make install' - you=20
>> won't need to run that yourself.
>>
>>
>>
>>
>> On 07/12/17 23:18, Forum (io) wrote:
>>>
>>> Dear Peter and all community member
>>>
>>> Thank a lot for your reply.
>>>
>>> Today, I have to spend time on my issues that I still can not=20
>>> solved. To be honnestly, I can not remember, why I could not install=20
>>> pyilmbase2-2- on the same folder of ilam...
>>>
>>> However, your last e-mail has some important information that I need=20
>>> to solve first.
>>>
>>> To resume, I download ilam2.2.0 into a "downlaod" folder and I untar=20
>>> it, I cd into pyilmbase-2-2-0 in order to compile. First I simply=20
>>> run that command
>>>
>>> /$ ./compile --prefix=3D/opt/pyilmbase2-2-0/
>>>
>>> I also "accidently" run this command
>>>
>>> /$ ./compile --prefix=3D/opt/ilmbase2-2-0/
>>>
>>> Both display this message/
>>> /
>>>
>>> /checking for boost::python... no
>>> *** Could not run the boost::python test program, checking why...
>>> *** The test program could not be compiled.=C2=A0 Is boost::python in=
stalled?
>>> *** Check that the cflags (below) includes the boost::python include=20
>>> directory
>>> ***
>>> *** Flags used by the test:
>>> ***=C2=A0=C2=A0=C2=A0=C2=A0 cflags: -g -O2=C2=A0 -I/usr/include/pytho=
n2.7 -g -O2=20
>>> -I/usr/include/python2.7
>>> ***=C2=A0=C2=A0=C2=A0=C2=A0 ldflags:=C2=A0 -L/opt/ilmbase-2-2-0/lib -=
L/usr/lib64=C2=A0=20
>>> -L/opt/ilmbase-2-2-0/lib=C2=A0=C2=A0=C2=A0 -L/usr/lib64
>>> ***
>>> *** You can also run configure with --disable-boostpythontest to=20
>>> skip this test.
>>> configure: error: Could not compile boost::python test program.
>>> /
>>>
>>> You mentioned to check if boost has been installed/. /Yes, I did=20
>>> itwithout issues. I installed boost 1.65.1 into /opt/boost_1.65.1
>>> You also mentionned to try this following command, which indicated=20
>>> where is boost installation
>>>
>>> /$ ./configure --prefix=3D/opt/pyilmbase-2-2-0=20
>>> --with-boost-include-dir=3D/opt/boost_1.65.1/include=20
>>> --with-boost-lib-dir=3D/opt/boost_1.65.1/lib/
>>>
>>> which look now really better, as_I do not_ have the error message,=20
>>> starting with
>>>
>>> /checking for boost::python... no
>>> *** Could not run the boost::python test program, checking why...
>>> *** The test program could not be compiled.=C2=A0 Is boost::python=20
>>> installed?/
>>>
>>> As I can not find tutorial or example of pyilmbase installation, I=20
>>> run the following command from pyilmbase2-2-0 untar-ed folder, just=20
>>> after the ./compile command
>>>
>>> # make
>>>
>>> which shown me errors :o(
>>>
>>> *Before shwoing the error*, note that into the /etc/bashrc file, I=20
>>> save the following line
>>>
>>> /export PATH=3D/opt/lua53/bin:$PATH//
>>> //
>>> //#export LD_LIBRARY_PATH=3D/opt/lua53/lib:$LD_LIBRARY_PATH//
>>> //export LD_LIBRARY_PATH=3D/opt/lua53/lib:/opt/ilmbase-2-2-0/lib//
>>> //
>>> //export LUA_INCLUDE_DIR=3D/opt/lua53/include//
>>> //export LUA_LIBRARIES=3D/opt/lua53/lib//
>>> //
>>> //export PKG_CONFIG_PATH=3D/opt/ilmbase-2-2-0/lib/pkgconfig/
>>>
>>>
>>> Nothing is about boost. Is it important?
>>>
>>> Here is the error message generated by /make/ from pyilmbase-2-2-0=20
>>> folder:
>>>
>>>
>>> /[root@pc6 pyilmbase-2.2.0]# make
>>> Making all in config
>>> make[1]: Entering directory=20
>>> `/root/install-package/OpenEXR/pyilmbase-2.2.0/config'
>>> make=C2=A0 all-am
>>> make[2]: Entering directory=20
>>> `/root/install-package/OpenEXR/pyilmbase-2.2.0/config'
>>> make[2]: Leaving directory=20
>>> `/root/install-package/OpenEXR/pyilmbase-2.2.0/config'
>>> make[1]: Leaving directory=20
>>> `/root/install-package/OpenEXR/pyilmbase-2.2.0/config'
>>> Making all in PyIex
>>> make[1]: Entering directory=20
>>> `/root/install-package/OpenEXR/pyilmbase-2.2.0/PyIex'
>>> /bin/sh ../libtool --tag=3DCXX=C2=A0=C2=A0 --mode=3Dcompile g++ -DHAV=
E_CONFIG_H=20
>>> -I. -I../config -pthread -I/opt/ilmbase-2-2-0/include/OpenEXR -I..=20
>>> -I../config -pipe -g -O2 -I/opt/boost_1.65.1/include=20
>>> -I/usr/include/python2.7 -MT PyIex.lo -MD -MP -MF .deps/PyIex.Tpo -c=20
>>> -o PyIex.lo PyIex.cpp
>>> libtool: compile:=C2=A0 g++ -DHAVE_CONFIG_H -I. -I../config -pthread=20
>>> -I/opt/ilmbase-2-2-0/include/OpenEXR -I.. -I../config -pipe -g -O2=20
>>> -I/opt/boost_1.65.1/include -I/usr/include/python2.7 -MT PyIex.lo=20
>>> -MD -MP -MF .deps/PyIex.Tpo -c PyIex.cpp=C2=A0 -fPIC -DPIC -o .libs/P=
yIex.o
>>> In file included from /usr/include/python2.7/pyconfig.h:6:0,
>>> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0 from /usr/include/python2.7/Python.h:8,
>>> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0 from ./PyIex.h:45,
>>> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0 from PyIex.cpp:42:
>>> /usr/include/python2.7/pyconfig-64.h:1188:0: warning:=20
>>> "_POSIX_C_SOURCE" redefined [enabled by default]
>>> =C2=A0#define _POSIX_C_SOURCE 200112L
>>> =C2=A0^
>>> In file included from=20
>>> /usr/include/c++/4.8.2/x86_64-redhat-linux/bits/os_defines.h:39:0,
>>> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0 from=20
>>> /usr/include/c++/4.8.2/x86_64-redhat-linux/bits/c++config.h:2097,
>>> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0 from /usr/include/c++/4.8.2/iosfwd:38,
>>> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0 from /usr/include/c++/4.8.2/ios:38,
>>> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0 from /usr/include/c++/4.8.2/istream:38,
>>> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0 from /usr/include/c++/4.8.2/sstream:38,
>>> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0 from ./PyIex.h:44,
>>> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0 from PyIex.cpp:42:
>>> /usr/include/features.h:168:0: note: this is the location of the=20
>>> previous definition
>>> =C2=A0# define _POSIX_C_SOURCE 200809L
>>> =C2=A0^
>>> In file included from /usr/include/python2.7/pyconfig.h:6:0,
>>> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0 from /usr/include/python2.7/Python.h:8,
>>> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0 from ./PyIex.h:45,
>>> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0 from PyIex.cpp:42:
>>> /usr/include/python2.7/pyconfig-64.h:1210:0: warning:=20
>>> "_XOPEN_SOURCE" redefined [enabled by default]
>>> =C2=A0#define _XOPEN_SOURCE 600
>>> =C2=A0^
>>> In file included from=20
>>> /usr/include/c++/4.8.2/x86_64-redhat-linux/bits/os_defines.h:39:0,
>>> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0 from=20
>>> /usr/include/c++/4.8.2/x86_64-redhat-linux/bits/c++config.h:2097,
>>> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0 from /usr/include/c++/4.8.2/iosfwd:38,
>>> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0 from /usr/include/c++/4.8.2/ios:38,
>>> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0 from /usr/include/c++/4.8.2/istream:38,
>>> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0 from /usr/include/c++/4.8.2/sstream:38,
>>> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0 from ./PyIex.h:44,
>>> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0 from PyIex.cpp:42:
>>> /usr/include/features.h:170:0: note: this is the location of the=20
>>> previous definition
>>> =C2=A0# define _XOPEN_SOURCE 700
>>> =C2=A0^
>>> mv -f .deps/PyIex.Tpo .deps/PyIex.Plo
>>> /bin/sh ../libtool --tag=3DCXX=C2=A0=C2=A0 --mode=3Dlink g++ -pipe -g=
 -O2=20
>>> -I/opt/boost_1.65.1/include -I/usr/include/python2.7 -version-info=20
>>> 2:2:0 -no-undefined -L/opt/ilmbase-2-2-0/lib=C2=A0=C2=A0=20
>>> -L/opt/boost_1.65.1/lib -L/usr/lib64 -o libPyIex.la -rpath=20
>>> /opt/pyilmbase-2-2-0/lib PyIex.lo -lz -pthread=20
>>> -L/opt/ilmbase-2-2-0/lib -lImath -lHalf -lIex -lIexMath=20
>>> -lIlmThread=C2=A0=C2=A0 -lboost_python -lpython2.7
>>> libtool: link: g++ -shared -nostdlib=20
>>> /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/crti.o=20
>>> /usr/lib/gcc/x86_64-redhat-linux/4.8.5/crtbeginS.o .libs/PyIex.o=C2=A0=
=C2=A0=20
>>> -Wl,-rpath -Wl,/opt/ilmbase-2-2-0/lib -Wl,-rpath=20
>>> -Wl,/opt/ilmbase-2-2-0/lib -L/opt/ilmbase-2-2-0/lib=20
>>> -L/opt/boost_1.65.1/lib -L/usr/lib64 -lz=20
>>> /opt/ilmbase-2-2-0/lib/libImath.so /opt/ilmbase-2-2-0/lib/libHalf.so=20
>>> /opt/ilmbase-2-2-0/lib/libIexMath.so=20
>>> /opt/ilmbase-2-2-0/lib/libIlmThread.so=20
>>> /opt/ilmbase-2-2-0/lib/libIex.so -lboost_python -lpython2.7=20
>>> -L/usr/lib/gcc/x86_64-redhat-linux/4.8.5=20
>>> -L/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64=20
>>> -L/lib/../lib64 -L/usr/lib/../lib64=20
>>> -L/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../.. -lstdc++ -lm -lc=20
>>> -lgcc_s /usr/lib/gcc/x86_64-redhat-linux/4.8.5/crtendS.o=20
>>> /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/crtn.o=20
>>> -pthread=C2=A0=C2=A0 -pthread -Wl,-soname -Wl,libPyIex.so.2 -o=20
>>> .libs/libPyIex.so.2.0.2
>>> libtool: link: (cd ".libs" && rm -f "libPyIex.so.2" && ln -s=20
>>> "libPyIex.so.2.0.2" "libPyIex.so.2")
>>> libtool: link: (cd ".libs" && rm -f "libPyIex.so" && ln -s=20
>>> "libPyIex.so.2.0.2" "libPyIex.so")
>>> libtool: link: ( cd ".libs" && rm -f "libPyIex.la" && ln -s=20
>>> "../libPyIex.la" "libPyIex.la" )
>>> /bin/sh ../libtool --tag=3DCXX=C2=A0=C2=A0 --mode=3Dcompile g++ -DHAV=
E_CONFIG_H=20
>>> -I. -I../config -pthread -I/opt/ilmbase-2-2-0/include/OpenEXR -I..=20
>>> -I../config -pipe -g -O2 -I/opt/boost_1.65.1/include=20
>>> -I/usr/include/python2.7 -MT iexmodule.lo -MD -MP -MF=20
>>> .deps/iexmodule.Tpo -c -o iexmodule.lo iexmodule.cpp
>>> libtool: compile:=C2=A0 g++ -DHAVE_CONFIG_H -I. -I../config -pthread=20
>>> -I/opt/ilmbase-2-2-0/include/OpenEXR -I.. -I../config -pipe -g -O2=20
>>> -I/opt/boost_1.65.1/include -I/usr/include/python2.7 -MT=20
>>> iexmodule.lo -MD -MP -MF .deps/iexmodule.Tpo -c iexmodule.cpp=C2=A0 -=
fPIC=20
>>> -DPIC -o .libs/iexmodule.o
>>> mv -f .deps/iexmodule.Tpo .deps/iexmodule.Plo
>>> /bin/sh ../libtool --tag=3DCXX=C2=A0=C2=A0 --mode=3Dlink g++ -pipe -g=
 -O2=20
>>> -I/opt/boost_1.65.1/include -I/usr/include/python2.7 -avoid-version=20
>>> -module -L/opt/ilmbase-2-2-0/lib -L/opt/boost_1.65.1/lib=20
>>> -L/usr/lib64 -o iexmodule.la -rpath=20
>>> /opt/pyilmbase-2-2-0/lib64/python2.7/site-packages iexmodule.lo=20
>>> libPyIex.la -lboost_python -lpython2.7
>>> libtool: link: g++ -shared -nostdlib=20
>>> /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/crti.o=20
>>> /usr/lib/gcc/x86_64-redhat-linux/4.8.5/crtbeginS.o=20
>>> .libs/iexmodule.o=C2=A0=C2=A0 -Wl,-rpath=20
>>> -Wl,/root/install-package/OpenEXR/pyilmbase-2.2.0/PyIex/.libs=20
>>> -Wl,-rpath -Wl,/opt/ilmbase-2-2-0/lib -Wl,-rpath=20
>>> -Wl,/opt/pyilmbase-2-2-0/lib -Wl,-rpath -Wl,/opt/ilmbase-2-2-0/lib=20
>>> -L/opt/ilmbase-2-2-0/lib -L/opt/boost_1.65.1/lib -L/usr/lib64=20
>>> ./.libs/libPyIex.so -lz /opt/ilmbase-2-2-0/lib/libImath.so=20
>>> /opt/ilmbase-2-2-0/lib/libHalf.so=20
>>> /opt/ilmbase-2-2-0/lib/libIexMath.so=20
>>> /opt/ilmbase-2-2-0/lib/libIlmThread.so=20
>>> /opt/ilmbase-2-2-0/lib/libIex.so -lboost_python -lpython2.7=20
>>> -L/usr/lib/gcc/x86_64-redhat-linux/4.8.5=20
>>> -L/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64=20
>>> -L/lib/../lib64 -L/usr/lib/../lib64=20
>>> -L/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../.. -lstdc++ -lm -lc=20
>>> -lgcc_s /usr/lib/gcc/x86_64-redhat-linux/4.8.5/crtendS.o=20
>>> /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/crtn.o=20
>>> -pthread -Wl,-soname -Wl,iexmodule.so -o .libs/iexmodule.so
>>> /usr/bin/ld: /opt/boost_1.65.1/lib/libboost_python.a(dict.o):=20
>>> relocation R_X86_64_32 against `.rodata.str1.1' can not be used when=20
>>> making a shared object; recompile with -fPIC
>>> /opt/boost_1.65.1/lib/libboost_python.a: error adding symbols: Bad va=
lue
>>> collect2: error: ld returned 1 exit status
>>> make[1]: *** [iexmodule.la] Error 1
>>> make[1]: Leaving directory=20
>>> `/root/install-package/OpenEXR/pyilmbase-2.2.0/PyIex'
>>> make: *** [all-recursive] Error 1
>>> [root@pc6 pyilmbase-2.2.0]# /
>>>
>>>
>>> I wonder, if there is an official procedure to install pyilmbase-2.2.=
0
>>>
>>> *I also observed a file name**install-sh. How can that file can be=20
>>> usefull for the installation?*
>>>
>>> You also spoke about installing into the same folder of=20
>>> ilmbase-2-2-0. What would you change regarding my about steps? To be=20
>>> honst with you, last week I tried but I do not rember why, I finally=20
>>> soecified a folder dedicated for pyilmbase2-2-0 in /opt/
>>>
>>>
>>> Many many thank for your help and help from openexr community.
>>>
>>> Cheers
>>> Pierrot
>>>
>>> /
>>> /
>>>
>>> On 12/1/17 1:21 AM, Peter Hillman wrote:
>>>> ./configure --prefix=3D/opt/ilmbase-2-2-0=20
>>>> --with-boost-include-dir=3D/opt/boost/include=20
>>>> --with-boost-lib-dir=3D/opt/boost/lib=20
>>>
>>
>>
>>
>> _______________________________________________
>> Openexr-devel mailing list
>> [email protected]
>> https://lists.nongnu.org/mailman/listinfo/openexr-devel
>
>
>
> _______________________________________________
> Openexr-devel mailing list
> [email protected]
> https://lists.nongnu.org/mailman/listinfo/openexr-devel


--------------224CC84977432158B0D5D5C4
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-MIME-Autoconverted: from 8bit to quoted-printable by smtp-sh.infomaniak.ch id vBCEDiRS021783

<html>
  <head>
    <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=
-8">
  </head>
  <body text=3D"#000000" bgcolor=3D"#FFFFFF">
    Hello,<br>
    <br>
    Thank a lot for your reply.<br>
    I am bit lost :o).<br>
    <br>
    The first think, I should look at, is to share boost. I should look
    around the parameter -fPIC.<br>
    Also, Richard sugest to make a link Rather that a static library.<br>
    <br>
    <b>What would be the different that making a link, than sharing
      boost with the option -fPIC??</b><br>
    <br>
    I downloaded and installed from this page <br>
    <a class=3D"moz-txt-link-freetext" href=3D"https://gist.github.com/1d=
uo/2d1d851f76f8297be264b52c1f31a2ab">https://gist.github.com/1duo/2d1d851=
f76f8297be264b52c1f31a2ab</a><br>
    <br>
    Then I un-tared and I "compiled" with this command:<br>
    <font color=3D"#006600">sudo ./bootstrap.sh --prefix=3D/opt/boost_1.6=
5.1</font><br>
    <br>
    Then I looked how to include the option -fPIC. I edited bootstrap
    and I found nothing about fPIC or cxxflags.<br>
    <br>
    Could you suggest me the correct syntax of the command to share
    boost?<br>
    <br>
    @Richard<br>
    What do you exactely mean by creating a "linking again
    boost_python".?<br>
    Should I export something into /etc/bashrc as I did for ilbase?<br>
    <font color=3D"#009900">export
      PKG_CONFIG_PATH=3D/opt/ilmbase-2-2-0/lib/pkgconfig</font><br>
    <br>
    <br>
    I thank you for your help and support and you could give me some
    syntax ot exemple would be really appreciate.<br>
    <br>
    Cheers<br>
    Pierre<br>
    <br>
    <br>
    <div class=3D"moz-cite-prefix">On 12/11/17 1:05 AM, Richard
      Addison-Wood wrote:<br>
    </div>
    <blockquote type=3D"cite"
      cite=3D"mid:[email protected]">
      <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Du=
tf-8">
      For what it is worth, I would suggest linking against boost_python
      as a shared library rather than as a static library.<br>
      <br>
      <div class=3D"moz-cite-prefix">On 11/12/17 11:05, Peter Hillman
        wrote:<br>
      </div>
      <blockquote type=3D"cite"
        cite=3D"mid:[email protected]">
        <meta http-equiv=3D"Content-Type" content=3D"text/html;
          charset=3Dutf-8">
        <p>Hi Pierrot,</p>
        <p>I think this is the error message which is causing the
          failure:<br>
        </p>
        <blockquote type=3D"cite">libboost_python.a(dict.o): relocation
          R_X86_64_32 against `.rodata.str1.1' can not be used when
          making a shared object; recompile with -fPIC</blockquote>
        This means that boost::python was compiled as a static library
        without using PIC (position independent code) which is required
        for shared objects such as python extensions. <br>
        <p>I'm not entirely sure what the thing to do is, as I'm not a
          boost expert. I'm hoping someone might chime in with advice
          about the best practice. I expect either compiling
          boost::python as a shared library would fix the problem
          (making .so files instead of .a files), as would specifying
          cxxflags=3D'-fPIC' as an option when compiling boost as a stati=
c
          library.<br>
        </p>
        <p>Regarding the other questions:<br>
        </p>
        <p> </p>
        <blockquote type=3D"cite">You also spoke about installing into th=
e
          same folder of ilmbase-2-2-0. What would you change regarding
          my about steps? To be honst with you, last week I tried but I
          do not rember why, I finally soecified a folder dedicated for
          pyilmbase2-2-0 in /opt/</blockquote>
        <p>I advised installing all the libraries into the same
          directory to simplify both the build process and usage.
          However, that won't solve the build issue you currently have.
          Once you have pyilmbase built and installed, you may have to
          specify multiple paths in PTYHONPATH and/or LD_LIBRARY_PATH
          before running python code that uses the pyilmbase extensions,
          otherwise you will see errors about not being able to find the
          boost and/or ilmbase libraries.<br>
        </p>
        <p>Cheers,</p>
        <p>Peter<br>
        </p>
        <p> </p>
        <blockquote type=3D"cite">
          <p>I also observed a file name install-sh. How can that file
            can be usefull for the installation?<br>
          </p>
        </blockquote>
        install-sh is used internally when you do a 'make install' - you
        won't need to run that yourself.
        <p><br>
        </p>
        <br>
        <br>
        <div class=3D"moz-cite-prefix">On 07/12/17 23:18, Forum (io)
          wrote:<br>
        </div>
        <blockquote type=3D"cite"
          cite=3D"mid:[email protected]"=
>
          <p>Dear Peter and all community member<br>
          </p>
          <p>Thank a lot for your reply.</p>
          <p>Today, I have to spend time on my issues that I still can
            not solved. To be honnestly, I can not remember, why I could
            not install pyilmbase2-2- on the same folder of ilam...</p>
          <p>However, your last e-mail has some important information
            that I need to solve first.</p>
          <p>To resume, I download ilam2.2.0 into a "downlaod" folder
            and I untar it, I cd into pyilmbase-2-2-0 in order to
            compile. First I simply run that command</p>
          <p><i>$ ./compile --prefix=3D/opt/pyilmbase2-2-0</i><br>
          </p>
          <p>I also "accidently" run this command<br>
          </p>
          <p><i>$ ./compile --prefix=3D/opt/ilmbase2-2-0</i></p>
          <p>Both display this message<i><br>
            </i></p>
          <p><i><font color=3D"#ff0000">checking for boost::python... no<=
br>
                *** Could not run the boost::python test program,
                checking why...<br>
                *** The test program could not be compiled.=C2=A0 Is
                boost::python installed?<br>
                *** Check that the cflags (below) includes the
                boost::python include directory<br>
                ***<br>
                *** Flags used by the test:<br>
                ***=C2=A0=C2=A0=C2=A0=C2=A0 cflags: -g -O2=C2=A0 -I/usr/i=
nclude/python2.7 -g -O2=C2=A0
                -I/usr/include/python2.7 <br>
                ***=C2=A0=C2=A0=C2=A0=C2=A0 ldflags:=C2=A0 -L/opt/ilmbase=
-2-2-0/lib=C2=A0=C2=A0=C2=A0
                -L/usr/lib64=C2=A0 -L/opt/ilmbase-2-2-0/lib=C2=A0=C2=A0=C2=
=A0 -L/usr/lib64<br>
                ***<br>
                *** You can also run configure with
                --disable-boostpythontest to skip this test.<br>
                configure: error: Could not compile boost::python test
                program.</font><br>
            </i></p>
          <p>You mentioned to check if boost has been installed<i>. </i><=
font
              color=3D"#009900">Yes, I did it<font color=3D"#000000">
                without issues. I installed boost 1.65.1 into
                /opt/boost_1.65.1<br>
                You also mentionned to try this following command, which
                indicated where is boost installation</font></font></p>
          <p><font color=3D"#009900"><font color=3D"#000000"><i>$
                  ./configure --prefix=3D/opt/pyilmbase-2-2-0
                  --with-boost-include-dir=3D/opt/boost_1.65.1/include
                  --with-boost-lib-dir=3D/opt/boost_1.65.1/lib</i><br>
              </font></font></p>
          <p><font color=3D"#009900"><font color=3D"#000000">which look n=
ow
                really better, as<font color=3D"#006600"> <u>I do not</u>
                  have</font> the error message, starting with</font></fo=
nt></p>
          <p><i><font color=3D"#ff0000">checking for boost::python... no<=
br>
                *** Could not run the boost::python test program,
                checking why...<br>
                *** The test program could not be compiled.=C2=A0 Is
                boost::python installed?</font></i></p>
          <p>As I can not find tutorial or example of pyilmbase
            installation, I run the following command from
            pyilmbase2-2-0 untar-ed folder, just after the ./compile
            command</p>
          <p># make</p>
          <p>which shown me errors :o(</p>
          <p><b>Before shwoing the error</b>, note that into the
            /etc/bashrc file, I save the following line</p>
          <p><font color=3D"#cc33cc"><i>export PATH=3D/opt/lua53/bin:$PAT=
H</i><i><br>
              </i><i><br>
              </i><i>#export
                LD_LIBRARY_PATH=3D/opt/lua53/lib:$LD_LIBRARY_PATH</i><i><=
br>
              </i><i>export
                LD_LIBRARY_PATH=3D/opt/lua53/lib:/opt/ilmbase-2-2-0/lib</=
i><i><br>
              </i><i><br>
              </i><i>export LUA_INCLUDE_DIR=3D/opt/lua53/include</i><i><b=
r>
              </i><i>export LUA_LIBRARIES=3D/opt/lua53/lib</i><i><br>
              </i><i><br>
              </i><i>export
                PKG_CONFIG_PATH=3D/opt/ilmbase-2-2-0/lib/pkgconfig</i></f=
ont></p>
          <p><br>
          </p>
          <p>Nothing is about boost. Is it important?</p>
          <p>Here is the error message generated by <i>make</i> from
            pyilmbase-2-2-0 folder:<br>
          </p>
          <p><br>
          </p>
          <p><i><font color=3D"#993399">[root@pc6 pyilmbase-2.2.0]# make<=
br>
                Making all in config<br>
                make[1]: Entering directory
                `/root/install-package/OpenEXR/pyilmbase-2.2.0/config'<br=
>
                make=C2=A0 all-am<br>
                make[2]: Entering directory
                `/root/install-package/OpenEXR/pyilmbase-2.2.0/config'<br=
>
                make[2]: Leaving directory
                `/root/install-package/OpenEXR/pyilmbase-2.2.0/config'<br=
>
                make[1]: Leaving directory
                `/root/install-package/OpenEXR/pyilmbase-2.2.0/config'<br=
>
                Making all in PyIex<br>
                make[1]: Entering directory
                `/root/install-package/OpenEXR/pyilmbase-2.2.0/PyIex'<br>
                /bin/sh ../libtool --tag=3DCXX=C2=A0=C2=A0 --mode=3Dcompi=
le g++
                -DHAVE_CONFIG_H -I. -I../config -pthread
                -I/opt/ilmbase-2-2-0/include/OpenEXR -I.. -I../config=C2=A0=
=C2=A0
                -pipe -g -O2 -I/opt/boost_1.65.1/include
                -I/usr/include/python2.7 -MT PyIex.lo -MD -MP -MF
                .deps/PyIex.Tpo -c -o PyIex.lo PyIex.cpp<br>
                libtool: compile:=C2=A0 g++ -DHAVE_CONFIG_H -I. -I../conf=
ig
                -pthread -I/opt/ilmbase-2-2-0/include/OpenEXR -I..
                -I../config -pipe -g -O2 -I/opt/boost_1.65.1/include
                -I/usr/include/python2.7 -MT PyIex.lo -MD -MP -MF
                .deps/PyIex.Tpo -c PyIex.cpp=C2=A0 -fPIC -DPIC -o
                .libs/PyIex.o<br>
                In file included from
                /usr/include/python2.7/pyconfig.h:6:0,<br>
                =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 from /usr/include/python2.7/Pytho=
n.h:8,<br>
                =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 from ./PyIex.h:45,<br>
                =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 from PyIex.cpp:42:<br>
                /usr/include/python2.7/pyconfig-64.h:1188:0: warning:
                "_POSIX_C_SOURCE" redefined [enabled by default]<br>
                =C2=A0#define _POSIX_C_SOURCE 200112L<br>
                =C2=A0^<br>
                In file included from
                /usr/include/c++/4.8.2/x86_64-redhat-linux/bits/os_define=
s.h:39:0,<br>
                =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 from
                /usr/include/c++/4.8.2/x86_64-redhat-linux/bits/c++config=
.h:2097,<br>
                =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 from /usr/include/c++/4.8.2/iosfw=
d:38,<br>
                =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 from /usr/include/c++/4.8.2/ios:3=
8,<br>
                =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 from /usr/include/c++/4.8.2/istre=
am:38,<br>
                =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 from /usr/include/c++/4.8.2/sstre=
am:38,<br>
                =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 from ./PyIex.h:44,<br>
                =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 from PyIex.cpp:42:<br>
                /usr/include/features.h:168:0: note: this is the
                location of the previous definition<br>
                =C2=A0# define _POSIX_C_SOURCE 200809L<br>
                =C2=A0^<br>
                In file included from
                /usr/include/python2.7/pyconfig.h:6:0,<br>
                =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 from /usr/include/python2.7/Pytho=
n.h:8,<br>
                =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 from ./PyIex.h:45,<br>
                =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 from PyIex.cpp:42:<br>
                /usr/include/python2.7/pyconfig-64.h:1210:0: warning:
                "_XOPEN_SOURCE" redefined [enabled by default]<br>
                =C2=A0#define _XOPEN_SOURCE 600<br>
                =C2=A0^<br>
                In file included from
                /usr/include/c++/4.8.2/x86_64-redhat-linux/bits/os_define=
s.h:39:0,<br>
                =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 from
                /usr/include/c++/4.8.2/x86_64-redhat-linux/bits/c++config=
.h:2097,<br>
                =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 from /usr/include/c++/4.8.2/iosfw=
d:38,<br>
                =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 from /usr/include/c++/4.8.2/ios:3=
8,<br>
                =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 from /usr/include/c++/4.8.2/istre=
am:38,<br>
                =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 from /usr/include/c++/4.8.2/sstre=
am:38,<br>
                =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 from ./PyIex.h:44,<br>
                =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 from PyIex.cpp:42:<br>
                /usr/include/features.h:170:0: note: this is the
                location of the previous definition<br>
                =C2=A0# define _XOPEN_SOURCE 700<br>
                =C2=A0^<br>
                mv -f .deps/PyIex.Tpo .deps/PyIex.Plo<br>
                /bin/sh ../libtool --tag=3DCXX=C2=A0=C2=A0 --mode=3Dlink =
g++ -pipe -g
                -O2 -I/opt/boost_1.65.1/include -I/usr/include/python2.7
                -version-info 2:2:0 -no-undefined
                -L/opt/ilmbase-2-2-0/lib=C2=A0=C2=A0 -L/opt/boost_1.65.1/=
lib
                -L/usr/lib64 -o libPyIex.la -rpath
                /opt/pyilmbase-2-2-0/lib PyIex.lo -lz -pthread
                -L/opt/ilmbase-2-2-0/lib -lImath -lHalf -lIex -lIexMath
                -lIlmThread=C2=A0=C2=A0 -lboost_python -lpython2.7<br>
                libtool: link: g++ -shared -nostdlib
                /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/=
crti.o
                /usr/lib/gcc/x86_64-redhat-linux/4.8.5/crtbeginS.o=C2=A0
                .libs/PyIex.o=C2=A0=C2=A0 -Wl,-rpath -Wl,/opt/ilmbase-2-2=
-0/lib
                -Wl,-rpath -Wl,/opt/ilmbase-2-2-0/lib
                -L/opt/ilmbase-2-2-0/lib -L/opt/boost_1.65.1/lib
                -L/usr/lib64 -lz /opt/ilmbase-2-2-0/lib/libImath.so
                /opt/ilmbase-2-2-0/lib/libHalf.so
                /opt/ilmbase-2-2-0/lib/libIexMath.so
                /opt/ilmbase-2-2-0/lib/libIlmThread.so
                /opt/ilmbase-2-2-0/lib/libIex.so -lboost_python
                -lpython2.7 -L/usr/lib/gcc/x86_64-redhat-linux/4.8.5
                -L/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib6=
4
                -L/lib/../lib64 -L/usr/lib/../lib64
                -L/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../..
                -lstdc++ -lm -lc -lgcc_s
                /usr/lib/gcc/x86_64-redhat-linux/4.8.5/crtendS.o
                /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/=
crtn.o=C2=A0
                -pthread=C2=A0=C2=A0 -pthread -Wl,-soname -Wl,libPyIex.so=
.2 -o
                .libs/libPyIex.so.2.0.2<br>
                libtool: link: (cd ".libs" &amp;&amp; rm -f
                "libPyIex.so.2" &amp;&amp; ln -s "libPyIex.so.2.0.2"
                "libPyIex.so.2")<br>
                libtool: link: (cd ".libs" &amp;&amp; rm -f
                "libPyIex.so" &amp;&amp; ln -s "libPyIex.so.2.0.2"
                "libPyIex.so")<br>
                libtool: link: ( cd ".libs" &amp;&amp; rm -f
                "libPyIex.la" &amp;&amp; ln -s "../libPyIex.la"
                "libPyIex.la" )<br>
                /bin/sh ../libtool --tag=3DCXX=C2=A0=C2=A0 --mode=3Dcompi=
le g++
                -DHAVE_CONFIG_H -I. -I../config -pthread
                -I/opt/ilmbase-2-2-0/include/OpenEXR -I.. -I../config=C2=A0=
=C2=A0
                -pipe -g -O2 -I/opt/boost_1.65.1/include
                -I/usr/include/python2.7 -MT iexmodule.lo -MD -MP -MF
                .deps/iexmodule.Tpo -c -o iexmodule.lo iexmodule.cpp<br>
                libtool: compile:=C2=A0 g++ -DHAVE_CONFIG_H -I. -I../conf=
ig
                -pthread -I/opt/ilmbase-2-2-0/include/OpenEXR -I..
                -I../config -pipe -g -O2 -I/opt/boost_1.65.1/include
                -I/usr/include/python2.7 -MT iexmodule.lo -MD -MP -MF
                .deps/iexmodule.Tpo -c iexmodule.cpp=C2=A0 -fPIC -DPIC -o
                .libs/iexmodule.o<br>
                mv -f .deps/iexmodule.Tpo .deps/iexmodule.Plo<br>
                /bin/sh ../libtool --tag=3DCXX=C2=A0=C2=A0 --mode=3Dlink =
g++ -pipe -g
                -O2 -I/opt/boost_1.65.1/include -I/usr/include/python2.7
                -avoid-version -module -L/opt/ilmbase-2-2-0/lib=C2=A0=C2=A0
                -L/opt/boost_1.65.1/lib -L/usr/lib64 -o iexmodule.la
                -rpath
                /opt/pyilmbase-2-2-0/lib64/python2.7/site-packages
                iexmodule.lo libPyIex.la -lboost_python -lpython2.7<br>
                libtool: link: g++ -shared -nostdlib
                /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/=
crti.o
                /usr/lib/gcc/x86_64-redhat-linux/4.8.5/crtbeginS.o=C2=A0
                .libs/iexmodule.o=C2=A0=C2=A0 -Wl,-rpath
                -Wl,/root/install-package/OpenEXR/pyilmbase-2.2.0/PyIex/.=
libs
                -Wl,-rpath -Wl,/opt/ilmbase-2-2-0/lib -Wl,-rpath
                -Wl,/opt/pyilmbase-2-2-0/lib -Wl,-rpath
                -Wl,/opt/ilmbase-2-2-0/lib -L/opt/ilmbase-2-2-0/lib
                -L/opt/boost_1.65.1/lib -L/usr/lib64 ./.libs/libPyIex.so
                -lz /opt/ilmbase-2-2-0/lib/libImath.so
                /opt/ilmbase-2-2-0/lib/libHalf.so
                /opt/ilmbase-2-2-0/lib/libIexMath.so
                /opt/ilmbase-2-2-0/lib/libIlmThread.so
                /opt/ilmbase-2-2-0/lib/libIex.so -lboost_python
                -lpython2.7 -L/usr/lib/gcc/x86_64-redhat-linux/4.8.5
                -L/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib6=
4
                -L/lib/../lib64 -L/usr/lib/../lib64
                -L/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../..
                -lstdc++ -lm -lc -lgcc_s
                /usr/lib/gcc/x86_64-redhat-linux/4.8.5/crtendS.o
                /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/=
crtn.o=C2=A0=C2=A0=C2=A0
                -pthread -Wl,-soname -Wl,iexmodule.so -o
                .libs/iexmodule.so</font><br>
              <font color=3D"#ff0000">/usr/bin/ld:
                /opt/boost_1.65.1/lib/libboost_python.a(dict.o):
                relocation R_X86_64_32 against `.rodata.str1.1' can not
                be used when making a shared object; recompile with
                -fPIC<br>
                /opt/boost_1.65.1/lib/libboost_python.a: error adding
                symbols: Bad value<br>
                collect2: error: ld returned 1 exit status</font><br>
              <font color=3D"#993399">make[1]: *** [iexmodule.la] Error 1=
<br>
                make[1]: Leaving directory
                `/root/install-package/OpenEXR/pyilmbase-2.2.0/PyIex'</fo=
nt><br>
              <font color=3D"#ff0000">make: *** [all-recursive] Error 1</=
font><br>
              <font color=3D"#993399">[root@pc6 pyilmbase-2.2.0]# </font>=
</i><br>
          </p>
          <p><br>
          </p>
          I wonder, if there is an official procedure to install
          pyilmbase-2.2.0<br>
          <br>
          <b>I also observed a file name</b><b> install-sh. How can that
            file can be usefull for the installation?</b><br>
          <br>
          You also spoke about installing into the same folder of
          ilmbase-2-2-0. What would you change regarding my about steps?
          To be honst with you, last week I tried but I do not rember
          why, I finally soecified a folder dedicated for pyilmbase2-2-0
          in /opt/<br>
          <br>
          <br>
          Many many thank for your help and help from openexr community.<=
br>
          <br>
          Cheers<br>
          Pierrot<br>
          <p><i><font color=3D"#ff0000"><br>
              </font></i></p>
          <div class=3D"moz-cite-prefix">On 12/1/17 1:21 AM, Peter Hillma=
n
            wrote:<br>
          </div>
          <blockquote type=3D"cite"
            cite=3D"mid:[email protected]=
">./configure
            --prefix=3D/opt/ilmbase-2-2-0
            --with-boost-include-dir=3D/opt/boost/include
            --with-boost-lib-dir=3D/opt/boost/lib </blockquote>
          <br>
        </blockquote>
        <br>
        <br>
        <fieldset class=3D"mimeAttachmentHeader"></fieldset>
        <br>
        <pre wrap=3D"">_______________________________________________
Openexr-devel mailing list
<a class=3D"moz-txt-link-abbreviated" href=3D"mailto:Openexr-devel@nongnu=
.org" moz-do-not-send=3D"true">[email protected]</a>
<a class=3D"moz-txt-link-freetext" href=3D"https://lists.nongnu.org/mailm=
an/listinfo/openexr-devel" moz-do-not-send=3D"true">https://lists.nongnu.=
org/mailman/listinfo/openexr-devel</a>
</pre>
      </blockquote>
      <br>
      <br>
      <fieldset class=3D"mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap=3D"">_______________________________________________
Openexr-devel mailing list
<a class=3D"moz-txt-link-abbreviated" href=3D"mailto:Openexr-devel@nongnu=
.org">[email protected]</a>
<a class=3D"moz-txt-link-freetext" href=3D"https://lists.nongnu.org/mailm=
an/listinfo/openexr-devel">https://lists.nongnu.org/mailman/listinfo/open=
exr-devel</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>

--------------224CC84977432158B0D5D5C4--


--===============4164723693702802163==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Openexr-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/openexr-devel

--===============4164723693702802163==--