Good night,
I am trying to use the boost with the Android Studio NDK 1.6b and the BOOST 1.66.0 I used this process to compile the boost:
https://sites.google.com/site/robdevelopertips/how-to-build-boost-1-64-0-for-android
and everything it's ok
I am linking my BOOST as static library like this:
target_link_libraries( # Specifies the target library. native-lib
# Links the target library to the log library
# included in the NDK.
${log-lib} "/home/asilva/boost-android/arm/lib/libboost_system.a" "/home/asilva/android-openssl/jni/openssl/arch-armeabi/lib/libssl.a" "/home/asilva/android-openssl/jni/openssl/arch-armeabi/lib/libcrypto.a"
)
And they work with this teste :
https://github.com/trashoverride/AndroidRest/blob/master/app/src/main/cpp/teste.cpp
But when i put this header:
boost/asio.hpp
A error is generated:
In file included from /home/asilva/AndroidRest/app/src/main/cpp/teste.cpp:20: In file included from /home/asilva/Android/Sdk/ndk-bundle/sysroot/usr/include/boost/asio.hpp:131: In file included from /home/asilva/Android/Sdk/ndk-bundle/sysroot/usr/include/boost/asio/use_future.hpp:156: /home/asilva/Android/Sdk/ndk-bundle/sysroot/usr/include/boost/asio/impl/use_future.hpp:49:26: error: no member named 'current_exception' in namespace 'std' p.set_exception(std::current_exception());
I am tried to change the libc like this :
https://developer.android.com/ndk/guides/cpp-support.html
But Doesn't work.
Someone have some clue ?
Kind Regards,
Antonio Carlos
Aucun commentaire:
Enregistrer un commentaire