]> git.saurik.com Git - apple/icu.git/blame - icuSources/samples/uresb/readme.txt
ICU-531.48.tar.gz
[apple/icu.git] / icuSources / samples / uresb / readme.txt
CommitLineData
729e4ab9 1Copyright (c) 2001-2010 International Business Machines
b75a7d8f
A
2Corporation and others. All Rights Reserved.
3uresb: Resource Bundle
4
5This sample demonstrates
6 Building a resource bundle
7 Using ICU to print data from a resource bundle
8
9
10Files:
11 uresb.c Main source file in C
73c04bcf
A
12 uresb.sln Windows MSVC workspace. Double-click this to get started.
13 uresb.vcproj Windows MSVC project file
b75a7d8f
A
14 resources.dsp Windows project file for resources
15 resources.mak Windows makefile for resources
16
17 root.txt Root resource bundle
18 en.txt English translation
19 sr.txt Serbian translation (cp1251)
20
21To Build uresb on Windows
22 1. Install and build ICU
73c04bcf 23 2. In MSVC, open the workspace file icu\samples\uresb\uresb.sln
b75a7d8f
A
24 3. Choose a Debug or Release build.
25 4. Build.
26
27To Run on Windows
28 1. Start a command shell window
29 2. Add ICU's bin directory to the path, e.g.
30 set PATH=c:\icu\bin;%PATH%
31 (Use the path to where ever ICU is on your system.)
32 3. cd into the uresb directory, e.g.
33 cd c:\icu\source\samples\uresb\debug
34 4. Run it (with a locale name, ex. english)
35 uresb en
729e4ab9 36 WARNING: The .txt files must be in the same directory as the executable, which is not the case by default on some systems.
b75a7d8f
A
37
38To Build on Unixes
39 1. Build ICU.
40 Specify an ICU install directory when running configure,
41 using the --prefix option. The steps to build ICU will look something
42 like this:
43 cd <icu directory>/source
44 runConfigureICU <platform-name> --prefix <icu install directory> [other options]
45 gmake all
46
47 2. Install ICU,
48 gmake install
49
50 3. Compile
51 cd <icu directory>/source/samples/uresb
52 gmake ICU_PREFIX=<icu install directory) ICU_PATH=<icu source directory>
53
54 To Run on Unixes
55 cd <icu directory>/source/samples/uresb
56
57 gmake ICU_PREFIX=<icu install directory> check
58 -or-
59
60 export LD_LIBRARY_PATH=<icu install directory>/lib:.:$LD_LIBRARY_PATH
61 uresb
62
63
64 Note: The name of the LD_LIBRARY_PATH variable is different on some systems.
65 If in doubt, run the sample using "gmake check", and note the name of
66 the variable that is used there. LD_LIBRARY_PATH is the correct name
67 for Linux and Solaris.
68