Skip to contentSkip to conversation

shared library in xenomai ?

Xenomai-help luan dinh 2 participants 2 messages May 5, 2009

lore
Share & tools
lore

luan dinh

author
#0 lore raw

Dear all.
i finished build a program and run it in xenomai. now i want to build it as shared library. i use following commands  to create library file (.so ) from object file (.o)

    gcc -shared -Wl,-soname,libctest.so.1 -o libctest.so.1.0   *.o
    mv libctest.so.1.0 /opt/lib
    ln -sf /opt/lib/libctest.so.1.0 /opt/lib/libctest.so
    ln -sf /opt/lib/libctest.so.1.0 /opt/lib/libctest.so.1

after that i write TEST program and use fuctions which my library support. i can build and run TEST program but some functions in my library doen't work ....
how to build and use my shared library in xenomai? Thanks for any help.
Luan Dinh

#1 lore raw
Quoted 3 lines

after that i write TEST program and use fuctions which my library support. i can build and run TEST program but some functions in my library doen't work ....

What does "doesn't work" mean? If the test program is willing to run then it is finding all symbols in the library and (I think) the library is finding all symbols it needs.

Quoted 1 line

how to build and use my shared library in xenomai?

Did you try running ldd on your built library to make sure that the linking is finding all of the dependencies? Or please clarify what does not seem to be working for you...

hth

- Tom

Signature · 4 lines
Thomas Lockhart
Supervisor, Distributed and Real-time Group
Instrument Software and Science Data Systems
Caltech/JPL