Boost logo

Boost Users :

Subject: [Boost-users] Android ndk-r3 and Boost
From: Carlos (asc2.cemg_at_[hidden])
Date: 2010-03-31 12:49:29


Hi!!

I have been successful in compiling my app with android ndk-r2 and boost
libraries.
However, I have some problems in compiling my app with it with the new
version of android ndk. I have done the same steps but with no results until
now.
I do the following steps:
*1º* Building my toolchain using your instruction;
*2º* Compile boost using the prebuild binary for step 1:
sudo bjam install --prefix=/usr/local/boost_1_42_0 toolset=gcc-arm
*3º* try to compile my program.
bjam toolset=gcc-arm link=static runtime-link=static
include="/home/carlos/Projectos/android-ndk-r3/build/platforms/android-3/arch-arm/usr/include"
include="/usr/local/boost_1_42_0/include"
library="/usr/local/boost_1_42_0/lib/libboost_system.a"
library="/usr/local/boost_1_42_0/lib/libboost_thread.a"
library="/usr/local/boost_1_42_0/lib/libboost_program_options.a"
library="/home/carlos/Projectos/android-ndk-r3/build/platforms/android-3/arch-arm/usr/lib/libc.a"

The following lines is an example of error I have:

*/usr/local/boost_1_42_0/include/boost/config/requires_threads.hpp:29:4:
error: #error "Threading support unavaliable: it has been explicitly
disabled with BOOST_DISABLE_THREADS"

/usr/local/boost_1_42_0/include/boost/thread/detail/platform.hpp:67:9:
error: #error "Sorry, no boost threads are available for this platform."

/usr/local/boost_1_42_0/include/boost/thread/mutex.hpp:18:2: error: #error
"Boost threads unavailable on this platform"

/usr/local/boost_1_42_0/include/boost/asio/detail/socket_types.hpp:165:
error: 'INET_ADDRSTRLEN' was not declared in this scope*

I really appreciate if you could give me some help or any advice that could
lead me in the right way.



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