1 Copyright (C) 2016 and later: Unicode, Inc. and others.
2 License & terms of use: http://www.unicode.org/copyright.html#License
4 Copyright (c) 2002-2005, International Business Machines Corporation and others. All Rights Reserved.
5 ufortune: a sample program demonstrating the use of ICU resource files by an application.
7 This sample demonstrates
8 Defining resources for use by an application
9 Compiling and packaging them into a dll
10 Referencing the resource-containing dll from application code
11 Loading resource data using ICU's API
14 ./ufortune.c source code for the sample
15 ./ufortune.sln Windows MSVC workspace. Double-click this to get started.
16 ./ufortune.vcproj Windows MSVC project file.
17 ./Makefile Makefile for Unixes. Needs gmake.
18 resources/root.txt Default resources (text for messages in English)
19 resources/es.txt Spanish language resources source file..
20 resources/res-file-list.txt List of resource source files to be built
21 resources/Makefile Makefile for compiling resources, for Unixes.
24 To Build ufortune on Windows
25 1. Install and build ICU
26 2. In MSVC, open the workspace file icu\samples\ufortune\ufortune.sln
27 3. Choose a Debug or Release build.
31 1. Start a command shell window
32 2. Add ICU's bin directory to the path, e.g.
33 set PATH=c:\icu\bin;%PATH%
34 (Use the path to where ever ICU is on your system.)
35 3. cd into the ufortune directory, e.g.
36 cd c:\icu\source\samples\ufortune\debug
42 1. Build ICU. Specify an ICU install directory when running configure,
43 using the --prefix option. The steps to build ICU will look something
45 cd <icu directory>/source
46 runConfigureICU <platform-name> --prefix <icu install directory> [other options]
53 cd <icu directory>/source/samples/ufortune
54 export ICU_PREFIX= <icu install directory>
58 cd <icu directory>/source/samples/ufortune
62 export LD_LIBRARY_PATH=<icu install directory>/lib:.:$LD_LIBRARY_PATH
66 Note: The name of the LD_LIBRARY_PATH variable is different on some systems.
67 If in doubt, run the sample using "gmake check", and note the name of
68 the variable that is used there. LD_LIBRARY_PATH is the correct name
69 for Linux and Solaris.