Compiling the ICU library (using Cygwin)

Source: Internet
Author: User

SOURCE download
    • ICU Project Address
    • Install Cygwin, install at least the following tools
      • Make
      • Dos2unix
      • Binutils
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
    • Compiling-icu-with-msvc

http://wangjie.rocks/2015/12/10/compile-icu/

Compiling the ICU library (using Cygwin)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.