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 icucal: a sample program which displays the calendar.
7 This sample demonstrates
9 Outputting text in the default codepage to the console
13 cal.c Main source file
14 uprint.h codepage output convenience header
15 uprint.h codepage output convenience implementation
16 cal.sln Windows MSVC workspace. Double-click this to get started.
17 cal.vcproj Windows MSVC project file
19 To Build icucal on Windows
20 1. Install and build ICU
21 2. In MSVC, open the workspace file icu\samples\cal\cal.sln
22 3. Choose a Debug or Release build.
26 1. Start a command shell window
27 2. Add ICU's bin directory to the path, e.g.
28 set PATH=c:\icu\bin;%PATH%
29 (Use the path to where ever ICU is on your system.)
30 3. cd into the cal directory, e.g.
31 cd c:\icu\source\samples\cal\debug
36 1. Build ICU. icucal is built automatically by default unless samples are turned off.
37 Specify an ICU install directory when running configure,
38 using the --prefix option. The steps to build ICU will look something
40 cd <icu directory>/source
41 runConfigureICU <platform-name> --prefix <icu install directory> [other options]
48 cd <icu directory>/source/samples/cal
53 export LD_LIBRARY_PATH=<icu install directory>/lib:.:$LD_LIBRARY_PATH
57 Note: The name of the LD_LIBRARY_PATH variable is different on some systems.
58 If in doubt, run the sample using "gmake check", and note the name of
59 the variable that is used there. LD_LIBRARY_PATH is the correct name
60 for Linux and Solaris.