openexr-devel
[Top][All Lists]
Advanced

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

[Openexr-devel] static EXR and dynamic stdc++ under linux


From: Pavel Ledin
Subject: [Openexr-devel] static EXR and dynamic stdc++ under linux
Date: Fri, 16 Mar 2007 17:15:59 +0300

Hello openexr-devel,

 I have OpenEXR saver (mental ray output shader) and I have a problem
 with static link OpenEXR 1.4.0 library under linux.
 I need static link OpenEXR and shared stdc++ (or all static).
 Or is it possible to remove stdc++ dependency for link all library as static?

 Maybe it is not so OpenEXR question as linux, but nevertheless...

 For example my Makefile looks like.

CC = g++
INC = -I../include -I../include/exr
LIB = -shared -export-dynamic -L/usr/aw/maya8.0/lib -lstdc++ -static 
-L../libs/exr -lIlmImf -lIlmThread
CFLAGS = -O2 -fPIC 
 
shaders_p.so : p_OpenEXR_saver.cpp p_maya_shadingengine.cpp p_MegaTK_pass.cpp 
p_scatter_wrap.cpp p_fur.cpp p_occlusion.cpp
p_reflect_refract.cpp p_SpotTK.cpp p_PointTK.cpp p_DirectTK.cpp p_MegaTK.cpp 
p_bake_read.cpp p_fg_light.cpp p_ray_type.cpp
p_buffer_writer.cpp p_fg_no_light.cpp p_saturation.cpp p_color_plus_alpha.cpp 
p_fisheye.cpp p_shadow.cpp p_color_to_float.cpp
p_irradiance.cpp p_shadow_transparency.cpp p_constant.cpp p_math_output.cpp 
p_z.cpp p_facing_ratio.cpp p_motion_to_rgb.cpp
p_CSG.cpp p_environment.cpp

        $(CC) $(INC) $(LIB) $(CFLAGS) -o shaders_p.so p_OpenEXR_saver.cpp 
p_maya_shadingengine.cpp p_MegaTK_pass.cpp
p_scatter_wrap.cpp p_fur.cpp p_occlusion.cpp p_reflect_refract.cpp p_SpotTK.cpp 
p_PointTK.cpp p_DirectTK.cpp p_MegaTK.cpp
p_bake_read.cpp p_fg_light.cpp p_ray_type.cpp p_buffer_writer.cpp 
p_fg_no_light.cpp p_saturation.cpp p_color_plus_alpha.cpp
p_fisheye.cpp p_shadow.cpp p_color_to_float.cpp p_irradiance.cpp 
p_shadow_transparency.cpp p_constant.cpp p_math_output.cpp
p_z.cpp p_facing_ratio.cpp p_motion_to_rgb.cpp p_CSG.cpp p_environment.cpp 

local: shaders_p.so


What's wrong?
 
-- 
Best regards,
 Pavel Ledin aka Puppet                          mailto:address@hidden
 Moscow, Russia






reply via email to

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