Building shared libraries on Linux
Posted: Tue Jun 07, 2011 3:38 pm
Unfortunately I am a newbie to both Linux and CodeLite, but CodeLite has made the shift to Linux (so far) much less painful so I cannot complain.
The issue I am having maybe more a Linux issue than a CodeLite issue but my ignorance is too great to know.
I am trying to create two dynamically loaded libraries. The source of both is straight C code, but one will be loaded by java and the other by C++ based executables.
In Linux, such a beast has three components; libMyLibrary.so, libMyLibrary.so.1, libMyLibrary.so.1.0.0
Going through the process of configuring the project generates the libMyLibrary.so file by default (at least the CodeLite version for Fedora 15 does).
How do I generate the other two files or should I configure the default 'so' name to 'so.x.y.z' where the x.y.z is the version number and use some other tool to generate the other two 'libraries'?
Hopefully, once I get these three files generated I can copy them to their expected location /usr/lib or something like that and be able to use them in those programs that need them.
The issue I am having maybe more a Linux issue than a CodeLite issue but my ignorance is too great to know.
I am trying to create two dynamically loaded libraries. The source of both is straight C code, but one will be loaded by java and the other by C++ based executables.
In Linux, such a beast has three components; libMyLibrary.so, libMyLibrary.so.1, libMyLibrary.so.1.0.0
Going through the process of configuring the project generates the libMyLibrary.so file by default (at least the CodeLite version for Fedora 15 does).
How do I generate the other two files or should I configure the default 'so' name to 'so.x.y.z' where the x.y.z is the version number and use some other tool to generate the other two 'libraries'?
Hopefully, once I get these three files generated I can copy them to their expected location /usr/lib or something like that and be able to use them in those programs that need them.