Boost-for-Android
Boost-for-Android copied to clipboard
Integrate in Android Build
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
i don't know if this would help but you can change --layout value to system in build-android.sh to remove those suffix.