blob: 71cba67b46634e30f05a5f6f683f61c70d3b5eba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
Installation on Woe32 (WinNT/2000/XP, Win95/98/ME):
- Requires MS Visual C/C++ 4.0 or 5.0 or 6.0 or 7.0.
- Cannot build in a separate directory.
- Build instructions:
Make sure that the MSVC4.0 or MSVC5.0 or MSVC6.0 or MSVC7.0 utilities
("cl" etc.) are found in PATH. In a typical MSVC6.0 installation, this
can be achieved by running
C:\Program Files\Microsoft Visual Studio\VC98\bin\vcvars32.bat
In a typical MSVC7.0 installation, it can be achieved by running
C:\Program Files\Microsoft Visual Studio .NET\VC7\bin\vcvars32.bat
Decide which compilation model you will use:
MFLAGS=-ML (the default) Single-threaded, statically linked - libc.lib
MFLAGS=-MT Multi-threaded, statically linked - libcmt.lib
MFLAGS=-MD Multi-threaded, dynamically linked - msvcrt.lib
You need GNU libiconv (version 1.9 or newer) installed under c:\usr. If
you haven't yet, build and install GNU libiconv (version 1.9 or newer)
using the same MFLAGS. Then come back to here, to build GNU gettext.
For shared library (DLL):
nmake -f Makefile.msvc DLL=1 MFLAGS=-MD
(NOTE: This does not work yet! Only the gettext-runtime subpackage
can be compiled for DLL; the gettext-tools subpackage cannot!)
For static library:
nmake -f Makefile.msvc
If you want to build both the shared and static library, you have to
unpack the gettext sources twice in different directories. Don't mix
the two formats; you cannot use the libintl.h generated for the static
library together with the shared library or vice versa.
Install it:
nmake -f Makefile.msvc DLL=1 MFLAGS=-MD install
or
nmake -f Makefile.msvc install
- Installation:
Complete and automatic installation:
nmake -f Makefile.msvc DLL=1 MFLAGS=-MD install PREFIX=InstallBaseDirectory
or
nmake -f Makefile.msvc install PREFIX=InstallBaseDirectory
By default, the compiled package is installed under c:\usr. You can
specify a different directory by giving the installation base directory
in a PREFIX=... option in the install step. (DON'T give the PREFIX
already in the build step! This won't work.) You can also omit the
PREFIX=... option, thus installing everything under c:\usr, and then
move the installed package as a whole from c:\usr to a different
location.
|