From: Vadym K. <vk...@se...> - 2012-07-11 08:56:02
|
Dmitry, here is how I achieved this on Linux: cd <ICU build dir> # ICU source is in "../icu-src" export CFLAGS="-DU_CHARSET_IS_UTF8=1 -DU_GNUC_UTF16_STRING=1" export CXXFLAGS="-std=gnu++0x -DU_CHARSET_IS_UTF8=1 -DU_GNUC_UTF16_STRING=1 -DU_HAVE_CHAR16_T=1" export LDFLAGS="-std=gnu++0x" ../icu-src/icu/source/runConfigureICU Linux --prefix=<ICU bin dir> --with-data-packaging=library --enable-strict=no gmake -j4 gmake check gmake install Hope this helps, Vadym On 11/07/12 04:06, Steven R. Loomis wrote: > Dmitry, > That all sounds right - Please be more specific as to how you are > trying to do this, and how it "wasn't working". Perhaps attach > portions of the build output. > > Regards, > Steven > > On Tue, Jul 10, 2012 at 5:53 PM, Dmitry Markman > <di...@ma... <mailto:di...@ma...>> wrote: > > Hi > > I would like to build icu with options > > typedef char16_t UChar > > I tried clang with compiler option -std=c++11 and -stdlib=libc++ > (so char16_t will be available) > and preprocess macro U_HAVE_CHAR16_T=1 > > but I wasn't able to do so > > is it possible to build ICU in such a way that > > constructor > UnicodeString(const char16_t *) will be available. > > thanks > > dm > > > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. > Discussions > will include endpoint security, mobile security and the latest in > malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > icu-support mailing list - icu...@li... > <mailto:icu...@li...> > To Un/Subscribe: > https://lists.sourceforge.net/lists/listinfo/icu-support > Archives/Project > <https://lists.sourceforge.net/lists/listinfo/icu-support%0AArchives/Project> > Info: http://site.icu-project.org/contacts > > > > > This body part will be downloaded on demand. > > > This body part will be downloaded on demand. -- Regards, Vadym |