openexr-devel
[Top][All Lists]
Advanced

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

[Openexr-devel] static link


From: Pavel Ledin
Subject: [Openexr-devel] static link
Date: Fri, 15 Jun 2007 13:03:53 +0400

Hello,

How can I link OpenEXR library as static? I had tried it many times
and many ways, but with no luck. And nobody know how to do it.

I'm try to write mental ray output shader.
My Makefile looks like this:

CC = g++
INC = -I/usr/autodesk/maya8.5/devkit/mentalray/include 
-I../../../openexr-1.4.0/IlmImf -I../../../openexr-1.4.0/IlmThread 
-I../../../openexr-1.4.0/Imath -I../../../openexr-1.4.0/Iex 
-I../../../openexr-1.4.0/Half -I../../../zlib-1.2.3
LIB = -L../lib -lstdc++ ../../../openexr-1.4.0/IlmImf/.libs/libIlmImf.a 
../../../openexr-1.4.0/IlmThread/.libs/libIlmThread.a 
../../../openexr-1.4.0/Imath/.libs/libImath.a  
../../../openexr-1.4.0/Iex/.libs/libIex.a 
../../../openexr-1.4.0/Half/.libs/libHalf.a -L../../../zlib-1.2.3 -lz
CFLAGS = -O2 -fPIC -shared -export-dynamic

shaders_p.so : p_OpenEXR_saver.cpp p_MegaTK_pass.cpp p_constant.cpp

        $(CC) $(INC) $(LIB) $(CFLAGS) -o shaders_p.so p_OpenEXR_saver.cpp 
p_MegaTK_pass.cpp p_constant.cpp

local: shaders_p.so

Shader comiled fine without any errors, but
I always get Maya crash and this error during call my shader:
/usr/autodesk/maya8.5/bin/maya.bin: symbol lookup error: 
/usr/autodesk/maya8.5/mentalray/lib/shaders_p.so: undefined symbol: 
_ZN3Imf5SliceC1ENS_9PixelTypeEPcjjiidbb

What's wrong?
Is it poosible to link static OpenEXR? Please help


-- 
Best regards,
 Pavel Ledin aka Puppet                          mailto:address@hidden
 Moscow, Russia






reply via email to

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