SOURCE download
- ICU Project Address
- Install Cygwin, install at least the following tools
Compiling the project
- Open the command line and go to the root directory of the source folder
- Configure the VC compilation environment, execute the command "C:\Program Files (x86) \microsoft Visual Studio 10.0\vc\vcvarsall.bat" x86
- Set the environment variable, add the Cygwin bin directory path to the environment variable, execute the command set path=%path%;D: \dev\cygwin64\bin
Convert files, execute commands
- Dos2unix *
- Dos2unix-f Configure
If you need to compile Mt , open the runconfigureicu file and change the MD in the cygwin/msvc configuration to Mt
Configure compilation options, execute command bash runconfigureicu–enable-debug–disable-release cygwin/msvc-prefix=/cygdrive/f/3rd/icu-lib– Enable-static–disable-shared
- -prefix: Set the installation directory, note that starting with /cygdrive
- –enable-debug–disable-release: Debug version, nothing added, default to release
- –enable-static–disable-shared: statically compiled Lib
- –disable-static–enable-shared: dynamically compiled DLLs
Static compile, execute command D:\Dev\cygwin64\bin\make.exe , note with Cygwin64 make
- After the compilation is complete, install ICU, execute command D:\Dev\cygwin64\bin\make.exe Install
- After the command is executed, the ICU library file is copied to the directory specified in the previous-prefix parameter
- Cleanup temporary files, execute command D:\Dev\cygwin64\bin\make.exe clean
Reference documents
http://wangjie.rocks/2015/12/10/compile-icu/
Compiling the ICU library (using Cygwin)