Boost-for-Android icon indicating copy to clipboard operation
Boost-for-Android copied to clipboard

How to generate shared libboost_xxxx.so without the version number such as .so.1.74.0

Open IHaveBeenAHero opened this issue 2 years ago • 2 comments

I was building shared libs of Boost-for-Android.

I modified build-android.sh, changed "link=static" to "link=shared" and ran build-android.sh. Finally in ./build/output, I got the libs with their soft links, such as: libboost_atomic-clang-mt-a64-1_74.so -> libboost_atomic-clang-mt-a64-1_74.so.1.74.0

However, it seems that such libs with the soft links can not be loaded by Android. My app crashed when loading such libs. Renaming libboostxxx.so.1.74.0 to libboostxxx.so also does not work.

So how can i build Boost-for-Android to generate libboost_xxxx.so only, without the soft links.

Thanks very much. I am looking forward to your response.

IHaveBeenAHero avatar Feb 03 '23 07:02 IHaveBeenAHero

Please copy crash logs here

On Fri, 3 Feb 2023, 09:20 IHaveBeenAHero, @.***> wrote:

I was building shared libs of Boost-for-Android.

I modified build-android.sh, changed "link=static" to "link=shared" and ran build-android.sh. Finally in ./build/output, I got the libs with their soft links, such as: libboost_atomic-clang-mt-a64-1_74.so -> libboost_atomic-clang-mt-a64-1_74.so.1.74.0

However, it seems that such libs with the soft links can not be loaded by Android. My app crashed when loading such libs. Renaming libboostxxx.so.1.74.0 to libboostxxx.so also does not work.

So how can i build Boost-for-Android to generate libboost_xxxx.so only, without the soft links.

Thanks very much. I am looking forwards to your response.

— Reply to this email directly, view it on GitHub https://github.com/moritz-wundke/Boost-for-Android/issues/251, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABF5QFN45UPNUOBC7N76ZLWVSWUXANCNFSM6AAAAAAUP5SNUM . You are receiving this because you are subscribed to this thread.Message ID: @.***>

pelya avatar Feb 03 '23 10:02 pelya

here's the proper solution: https://github.com/boostorg/boost/pull/206

tickets about the same: #23, #44

kambala-decapitator avatar Feb 18 '23 12:02 kambala-decapitator