openexr-devel
[Top][All Lists]
Advanced

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

[Openexr-devel] Compiling ilmbase+openexr on solaris x86 64bit


From: Campbell Barton
Subject: [Openexr-devel] Compiling ilmbase+openexr on solaris x86 64bit
Date: Fri, 4 Jan 2008 15:35:24 +0100

Hi, Iv been getting blender3d to compile on Solaris10-x86 64bit (for
use on suns network.com grid computing engine, for the peach project
peach.blender.org)
I had quite a bit of trouble getting openexr built.

32bit would build with no problems, but compiling 64bit openexr
binaries was difficult.

The problem is that I could not tell it to look for libs in /usr/sfw/lib/amd64/
it would instead look for libstdc++ and in /usr/sfw/lib/ and give a
linking error when building.
This problem happens with ilmbase-1.0.1 and openexr-1.6.1

- "wrong ELF class: ELFCLASS64"

I tried ./configure --libdir=/usr/sfw/lib/amd64/ setting LDFLAGS but
it seemed I could not overwide the reference to /usr/sfw/lib/ and
there was no way to set it.

Anyhow here are the commands I used to compile, maybe it gives some
insights into the problem or at least help others in the meantime.

If anyones interested, heres some info about setting up the renderfarm
http://wiki.blender.org/index.php/Bf-institute/renderfarm

--------
PATH=$PATH:/usr/ccs/bin:/usr/sfw/bin:/opt/csw/bin
CFLAGS="-m64 -O2 -pipe -mtune=opteron"
CCFLAGS=$CFLAGS

mkdir /C
mkdir /C/exr
cd /C/exr
cp /Documents/ilmbase-1.0.1.tar.gz ./
cp /Documents/openexr-1.6.1.tar.gz ./

export CC="gcc -m64 -L/usr/sfw/lib/amd64"
export CXX="g++ -m64 -L/usr/sfw/lib/amd64"

gunzip ilmbase-1.0.1.tar.gz
gtar -xpvf ilmbase-1.0.1.tar
cd ilmbase-1.0.1
export LD_LIBRARY_PATH=/usr/sfw/lib/amd64
./configure --prefix=/L/exr/ --enable-static
gmake
gmake install


gunzip openexr-1.6.1.tar.gz
gtar -xpvf openexr-1.6.1.tar
cd openexr-1.6.1
export LD_LIBRARY_PATH=/usr/sfw/lib/amd64
./configure --prefix=/C/exr/ --enable-static --disable-ilmbasetest
ln -s /usr/sfw/lib/amd64/libgcc_s.so.1 /usr/sfw/lib/amd64/libgcc_s.so
gmake
gmake install




reply via email to

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