Sunil Hadap (Sunil.Hadap++at++cui.unige.ch)
Thu, 03 Sep 1998 16:39:42 +0200
This might not be related to Performer but I am sure here I will get
the help!
I am trying to use OpenGL Optimizer inside Alias plugin environment. I
will explain how are Alias plugins. You have to make a DSO with
"int plugin_init( const char *dirName ) { }" defined in it, so that
Alias can recognize it as a plugin and can load it.
I created required plugin, now in order to use Optimizer I just called
a function "opInit()" to initialize Optimizer, a must before I start
using it seriosly. Now I need to link relavent DSOs (specific to
Optimizer and Cosmo3)D. I use CC linker as follows
CC -shared -show -I/usr/aw/alias/ODS/Common/include nothing.c++
-o run.plugin -L/usr/aw/alias/lib -lLiveData -lop_dp -lcosmo3d -laudio
Now I expect the output run.plugin is a DSO which has reference to (by
means of liblist in the DSO header, which rld uses) following
libraries
/usr/aw/alias/lib/libLiveData.so
/usr/lib/libop_dp.so
/usr/lib/libcosmo3d.so
/usr/lib/libaudio.a (???)
Notice libaudio.a is a static library. Now the problem. libcosmo3d.so
is not a selfcontained DSO, as it refers to a function afOpenFile from
libaudio.a
When I try to load run.plugin from within the Alias environment it
gives an error of "unresolved symbol afOpenFile reffered by
cosmo3d.so"
How can I include code from libaudio.a in my plugin so that cosmo3d.so
finds afOpenFile and other associated calls.
Bye the way I tried making libaudio.so from libaudio.a and putting it
in /usr/lib (just to make sure I don't do any mistake in
LD_LIBRARY_PATH or things like that). But attempt is unsuccessful.
Thanks a lot, I would be greatful if someone can help!
Regards
Sunil
This archive was generated by hypermail 2.0b2 on Thu Sep 03 1998 - 11:55:32 PDT