Hi,
I am trying to port the filesystem library in Boost 1.46 to Android
with the help of nkd5. I have gotten rid of some compiler warnings,
but one still remains:
gcc.compile.c++ bin.v2/libs/filesystem/build/gcc-android4.4.0/release/
link-static/threading-multi/v3/src/utf8_codecvt_facet.o
In file included from ./boost/filesystem/config.hpp:31,
from libs/filesystem/v3/src/utf8_codecvt_facet.cpp:
11:
./boost/filesystem/v3/config.hpp:49:5: error: #error Configuration not
supported: Boost.Filesystem V3 and later requires std::wstring support
"arm-linux-androideabi-g++" -ftemplate-depth-128 -O3 -finline-
functions -Wno-inline -Wall -DBOOST_NO_INTRINSIC_WCHAR_T -fno-strict-
aliasing -pthread -DBOOST_ALL_NO_LIB=1 -DBOOST_SYSTEM_STATIC_LINK=1 -
DNDEBUG -I"." -c -o "bin.v2/libs/filesystem/build/gcc-android4.4.0/
release/link-static/threading-multi/v3/src/utf8_codecvt_facet.o" "libs/
filesystem/v3/src/utf8_codecvt_facet.cpp"
I have read a couple of post with people succeeding in building Boost
for Android, but non of them has had problem with this. As I
understand, ndk5 does not support wstring, but boost Filesystemv3 can
not be build without it. What have I missed? Is there a boost
configure option turning V3 off?
The problem in config.hpp:
# if defined( BOOST_NO_STD_WSTRING )
# error Configuration not supported: Boost.Filesystem V3 and later
requires std::wstring support
# endif
Best regards
Sara
Boost is a HUGE set of libraries. My guess is that no one else tried to
build that one. I'm not even familiar with it myself, and I've used
various boost libraries for years.
Tim
Thanks for this tip Sara.
Another way to do it is using boost/config/user.hpp .
You have to just add the following line
{code}
#define BOOST_FILESYSTEM_VERSION 2
{code}
I think this method is more boost-native than editing files you suggested.
Kind regards,
Dmytro Gorbunov
--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-ndk?hl=en.