6 Install Windows XP or higher.
7 Install Microsoft Visual C++ 2008 or 2010.
8 Install Microsoft SDK 7.1 (optional).
9 Install patch command, MinGW or TortoiseGit in order to patch source files.
12 STEP 1: Getting the gettext archive
14 Download the gettext version 0.19.5.1
15 http://www.gnu.org/software/gettext/
17 Extract libintl sources.
18 copy to libintl/intl/ from gettext-runtime/intl/ on gettext archive.
21 STEP 2: Patching source files
23 Patch libintl sources using patch command.
25 cd libintl/intl/; patch -p0 < ../patch-0.19.5.1.patch
27 Or, use TortoiseGitUDiff.
32 Edit libintl/msvc/config.h if need.
33 * Define SKIP_LC_MESSAGES to 1 if you don't need LC_MESSAGES sub-directory
35 * Undefine HAVE_POSIX_PRINTF if you want to use printf() function supports
36 format strings with positions.
39 STEP 4: Building libraries using MSVC solution file
41 Build all using libintl_vc09.sln or libintl_vc10.sln.
42 On success, copy library files to lib/* or libdll/*.
44 lib/x86/ ........ 32bit static library.
45 libintl.lib ..... Release : MBCS and Release build
46 libintld.lib .... Debug : MBCS and Debug build
47 libintlu.lib .... Unicode_Release : Unicode and Release build
48 libintlud.lib ... Unicode_Debug : Unicode and Debug build
49 lib/x64/ ........ 64bit static library.
50 libintl.lib ..... Release : MBCS and Release build
51 libintld.lib .... Debug : MBCS and Debug build
52 libintlu.lib .... Unicode_Release : Unicode and Release build
53 libintlud.lib ... Unicode_Debug : Unicode and Debug build
55 libdll/x86/ ..... 32bit dynamic link library.
56 libintl.dll ..... DLL_Release : MBCS and Release build
58 libintld.dll .... DLL_Debug : MBCS and Debug build
60 libintlu.dll .... DLL_Unicode_Release : Unicode and Release build
62 libintlud.dll ... DLL_Unicode_Debug : Unicode and Debug build
64 libdll/x64/ ..... 64bit dynamic link library.
65 libintl.dll ..... DLL_Release : MBCS and Release build
67 libintld.dll .... DLL_Debug : MBCS and Debug build
69 libintlu.dll .... DLL_Unicode_Release : Unicode and Release build
71 libintlud.dll ... DLL_Unicode_Debug : Unicode and Debug build
77 Build sample program on samples directory and test them.
79 If you test dll, copy dll file to application directory from libdll
86 See gettext.h in samples directory to buildable on both MBCS and UNICODE