Boost logo

Boost Users :

Subject: Re: [Boost-users] Boost + Android NDK
From: Felipe Magno de Almeida (felipe.m.almeida_at_[hidden])
Date: 2010-05-18 06:41:41


On Mon, May 17, 2010 at 2:13 PM, Felipe Magno de Almeida
<felipe.almeida_at_[hidden]> wrote:
>
> NuSkooler <nuskooler_at_[hidden]> writes:
>>

[snip]

>> Again, all of this seems very messy. Some of it may not even be
>> necessary. STLPort was something I was messing with; I'm not sure if
>> it's ultimately required (the patch/stdllib=stlport).
>>
>> Any pointers greatly appreciated!

You don't need STLPort. The Crystax NDK already has a full STL.
My user-config.jam looks like this now:

using gcc : androidcrystax :
/opt/android-ndk-crystax/build/prebuilt/linux-x86/arm-eabi-4.4.0/bin/arm-eabi-g++
:
<cxxflags>-D_LITTLE_ENDIAN
<cxxflags>-I/opt/android-ndk-crystax/build/platforms/android-5/arch-arm/usr/include/
<cflags>-nostdlib
<cxxflags>-fPIC
#<cxxflags>-mthumb-interwork
<cxxflags>-ffunction-sections
<cxxflags>-funwind-tables
<cxxflags>-fstack-protector
<cxxflags>-DBOOST_THREAD_LINUX
<cxxflags>-DBOOST_HAS_PTHREADS
<cxxflags>-D__arm__
<cxxflags>-D_REENTRANT
<cxxflags>-D_GLIBCXX__PTHREADS
#<cxxflags>-DBOOST_HAS_GETTIMEOFDAY
#<cxxflags>-DBOOST_HAS_THREADS
<cxxflags>-DANDROID
<cxxflags>-D__ANDROID__
<cxxflags>--sysroot=/opt/android-ndk-crystax/build/platforms/android-5/arch-arm
#<cxxflags>-D_NEW
#<cxxflags>-D__SGI_STL_INTERNAL_PAIR_H
<cxxflags>-fno-short-enums
<cxxflags>-D__ARM_ARCH_5__
<cxxflags>-D__ARM_ARCH_5T__
<cxxflags>-D__ARM_ARCH_5E__
<cxxflags>-D__ARM_ARCH_5TE__
<cxxflags>-march=armv5te
<cxxflags>-mtune=xscale
<cxxflags>-msoft-float
<cxxflags>-mthumb
<cxxflags>-fomit-frame-pointer
<cxxflags>-fno-strict-aliasing
<architecture>arm
<linkflags>-lc
<linkflags>-nostdlib
<linkflags>-Wl,-rpath-link=/opt/android-ndk-crystax/build/platforms/android-5/arch-arm/usr/lib/
<linkflags>-L/opt/android-ndk-crystax/build/platforms/android-5/arch-arm/usr/lib/
<linkflags>/opt/android-ndk-crystax/build/prebuilt/linux-x86/arm-eabi-4.4.0/arm-eabi/lib/libsupc++.a
<linkflags>/opt/android-ndk-crystax/build/prebuilt/linux-x86/arm-eabi-4.4.0/arm-eabi/lib/libstdc++.a
<linkflags>/opt/android-ndk-crystax/build/prebuilt/linux-x86/arm-eabi-4.4.0/lib/gcc/arm-eabi/4.4.0/libgcc.a
<linkflags>/opt/android-ndk-crystax/build/platforms/android-5/arch-arm/usr/lib/libc.so
<linkflags>/opt/android-ndk-crystax/build/platforms/android-5/arch-arm/usr/lib/libm.so
<linkflags>-Wl,--no-undefined
<linkflags>-Wl,--whole-archive
<linkflags>-Wl,--no-whole-archive
<linkflags>-Wl,-shared,-Bsymbolic
;

Some modifications should go to tools/gcc.jam though

[snip]

Regards,

-- 
Felipe Magno de Almeida

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net