openexr-devel
[Top][All Lists]
Advanced

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

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


From: Florian Kainz
Subject: Re: [Openexr-devel] static EXR and dynamic stdc++ under linux
Date: Wed, 11 Apr 2007 19:22:50 -0700
User-agent: Mozilla Thunderbird 1.0 (X11/20041207)

Hi Pavel,

what is the problem you have with static linking?
Do you get unresolved symbols?  Are the libraries
missing?

Anyway, as far as I know mental has built-in support
for OpenEXR output.

Florian


Pavel Ledin wrote:
Hello Pavel,

Friday, March 16, 2007, 6:15:59 PM, you wrote:

Anyone can help with this?

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?








reply via email to

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