moritz-wundke / Boost-for-Android

Android port of Boost C++ Libraries
MIT License
1.02k stars 483 forks source link

Boost locale support #50

Open gerstrong opened 11 years ago

gerstrong commented 11 years ago

Hi I tried enabling boost locale for android by changing line 72 in build-android.sh:

LIBRARIES=--with-libraries=date_time,filesystem,program_options,regex,signals,system,thread,iostreams,locale

bjam also tries to build this but:

  • iconv (libc) : no
  • iconv (separate) : no
  • icu : no
  • icu (lib64) : no
    • Boost.Locale needs either iconv or ICU library to be built.
    • Boost.Locale needs either iconv or ICU library to be built.
    • Boost.Locale needs either iconv or ICU library to be built.
    • Boost.Locale needs either iconv or ICU library to be built.
    • Boost.Locale needs either iconv or ICU library to be built.
    • Boost.Locale needs either iconv or ICU library to be built.
    • has_icu builds : no

Component configuration:

- atomic                   : not building
- chrono                   : not building
- context                  : not building
- date_time                : building
- exception                : not building
- filesystem               : building
- graph                    : not building
- graph_parallel           : not building
- iostreams                : building
- locale                   : building
- math                     : not building
- mpi                      : not building
- program_options          : building
- python                   : not building
- random                   : not building
- regex                    : building
- serialization            : not building
- signals                  : building
- system                   : building
- test                     : not building
- thread                   : building
- timer                    : not building
- wave                     : not building

So I tried building ICU with these instructions and got them made:

http://thebugfreeblog.blogspot.de/2013/05/cross-building-icu-for-applications-on.html

I have a directory, but as I see boost needs a special directory as told here:

http://www.boost.org/doc/libs/1_48_0/libs/locale/doc/html/building_boost_locale.html

So I tried to overrride ./bjam with ./bjam --with-locale -sICU_PATH= stage

but no luck, it still tells me the same error. As told the libs are there.

I hope someone can help on this and enable boost locale...

gerstrong commented 10 years ago

no one?

pelya commented 10 years ago

I've compiled boost::locale, check out this repo, branch "locale": https://github.com/pelya/Boost-for-Android/tree/locale Build script also compiles libicu on the fly, and resulting library should be linked with libicu and libandroid_support from the same directory. When compiling with it, you will probably need -I$(AndroidNDKRoot)/sources/android/support/include in compiler flags before system headers, because this lib overrides few header files.

gerstrong commented 10 years ago

Ahh cool!

Thank you very much!

I would have done it today, but you have taken it away. Now VCMI has a chance once again!

Am 25.11.2013 10:56, schrieb Sergii Pylypenko:

I've compiled boost::locale, check out this repo, branch "locale": https://github.com/pelya/Boost-for-Android/tree/locale Build script also compiles libicu on the fly, and resulting library should be linked with libicu and libandroid_support from the same directory. When compiling with it, you will probably need -I$(AndroidNDKRoot)/sources/android/support/include in compiler flags before system headers, because this lib overrides few header files.

— Reply to this email directly or view it on GitHub https://github.com/MysticTreeGames/Boost-for-Android/issues/50#issuecomment-29188913.

moritz-wundke commented 10 years ago

This could be included in the docs. Good catch!

On Mon, Nov 25, 2013 at 11:15 AM, Gerhard Stein notifications@github.comwrote:

Ahh cool!

Thank you very much!

I would have done it today, but you have taken it away. Now VCMI has a chance once again!

Am 25.11.2013 10:56, schrieb Sergii Pylypenko:

I've compiled boost::locale, check out this repo, branch "locale": https://github.com/pelya/Boost-for-Android/tree/locale Build script also compiles libicu on the fly, and resulting library should be linked with libicu and libandroid_support from the same directory. When compiling with it, you will probably need -I$(AndroidNDKRoot)/sources/android/support/include in compiler flags before system headers, because this lib overrides few header files.

— Reply to this email directly or view it on GitHub < https://github.com/MysticTreeGames/Boost-for-Android/issues/50#issuecomment-29188913 .

— Reply to this email directly or view it on GitHubhttps://github.com/MysticTreeGames/Boost-for-Android/issues/50#issuecomment-29189997 .

Moritz Wundke www.MysticTreeGames.com www.DarkCultureGames.com http://www.darkculturegames.com/