LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-25-2017, 06:02 PM   #1
surlac
LQ Newbie
 
Registered: Aug 2016
Posts: 14

Rep: Reputation: 0
Question shared obj versioning


I've noticed that some cross toolchains create shared objects with version appended (e.g. libgeos on Android built with NDK produces "libgeos-3.6.1.so", but on x86-64 it is "libgeos.so").
Why this versioning is needed on Android? And what controls this kind of behavior?
 
Old 06-25-2017, 07:50 PM   #2
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,513

Rep: Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009
There is usually a lib.so and a lib.version.so, or several. It is controlled by the library itself. Sometimes there are different versions of a library on the same system. So, in order for users to check if the correct version is present, version numbers are attached. Programs can read the version from within the library.

Many times the various versions are symlinks to one file. Many times when one is missing a library, he can just make a symlink from the base library with the correct version number.

Last edited by AwesomeMachine; 06-25-2017 at 07:51 PM.
 
1 members found this post helpful.
  


Reply

Tags
android, shared object


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Obj C in Slackware wolfslacker Slackware 2 12-03-2013 08:51 PM
[SOLVED] shared obj libwx_gtk2u_richtext-2.8.so.0 still unavail after build/install wxGTK SkyMeadow Linux - Newbie 2 03-11-2012 07:41 PM
[SOLVED] C++ - Two-way Communication between objects if A (obj) creates an instance of B (obj) Gavin Harper Programming 5 04-06-2011 05:27 AM
Using Shared Obj implicitly ugenn Programming 0 04-15-2002 09:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration