Home:ALL Converter>Building Boost with ICU using MinGW

Building Boost with ICU using MinGW

Ask Time:2012-09-02T15:12:42         Author:user14416

Json Formatter

I downloaded the last ICU release (49) binaries and add the following arg to b2:

-sICU_PATH="D:\lib64\icu"

I got

gcc.link D:\boost\1.51.0\boost\boost\bin.v2\libs\locale\build\gcc-mingw-4.7.1\debug\has_icu64.exe                 
d:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.1/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -licui18n 
d:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.1/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -licudata 
collect2.exe: error: ld returned 1 exit status                                

There were not such libicui18n, libicudata among icu binaries.

So I tried to build it myself. I got this error

PATH=../../lib:../../stubdata:../../tools/ctestfw:$PATH  ../../bin/genrb -e UTF-8 -s resources -d uconvmsg root.txt                                                                                                                 
Makefile:173: recipe for target `uconvmsg/root.res'     failed                                                        
make[2]: *** [uconvmsg/root.res] Error 127                              

Could somebody suggest me how I should build Boost with ICU using MinGW?

Author:user14416,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/12234070/building-boost-with-icu-using-mingw
yy