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

Integrate in Android Build

Open Soccertrash opened this issue 6 years ago • 1 comments

Hello,

I tried to integrate the build boost libraries in a up-to-date NDK build in Android (CMake). I'm using find_boost for this. I use this Boost Options:

set(distribution_DIR ${CMAKE_SOURCE_DIR}/../distribution)
set( Boost_DEBUG ON )
set( Boost_USE_STATIC_LIBS ON )
set( Boost_USE_STATIC_RUNTIME ON )
set( Boost_USE_MULTITHREADED ON )
set( Boost_NO_SYSTEM_PATHS ON )
set( BOOST_ALL_DYN_LINK OFF )

SET ( BOOST_ROOT "{distribution_DIR}/boost" )
SET ( BOOST_INCLUDEDIR "${distribution_DIR}/boost/include")
SET ( BOOST_LIBRARYDIR "${distribution_DIR}/boost/lib")

Find Boost has a problem with the file name pattern of the libraries. The system lib name is e.g. libboost_system-clang-darwin-mt-a32-1_66.a If I remove "-clang-darwin-mt-a32-1_66" Boost find does find the library. Do you know how to properly integrate the libraries without removing this suffix.

thank you

Soccertrash avatar Mar 12 '18 12:03 Soccertrash

i don't know if this would help but you can change --layout value to system in build-android.sh to remove those suffix.

frkami123 avatar Apr 24 '18 11:04 frkami123