Home | History | Annotate | only in /external/icu4c/samples/cal
Up to higher level directory
NameDateSize
cal.c17-Dec-201122.1K
cal.sln17-Dec-20111.2K
cal.vcproj17-Dec-20119.1K
cal.vcxproj17-Dec-201113.9K
cal.vcxproj.filters17-Dec-20111.1K
Makefile17-Dec-20111.6K
Makefile.in17-Dec-20111.6K
readme.txt17-Dec-20112.1K
uprint.c17-Dec-20111.8K
uprint.h17-Dec-2011706

readme.txt

      1 Copyright (c) 2002-2005, International Business Machines Corporation and others. All Rights Reserved.
      2 icucal: a sample program which displays the calendar.
      3 
      4 This sample demonstrates
      5          Formatting a calendar
      6          Outputting text in the default codepage to the console
      7 
      8          
      9 Files:
     10     cal.c                      Main source file
     11     uprint.h                   codepage output convenience header
     12     uprint.h                   codepage output convenience implementation
     13     cal.sln                    Windows MSVC workspace.  Double-click this to get started.
     14     cal.vcproj                 Windows MSVC project file
     15 
     16 To Build icucal on Windows
     17     1.  Install and build ICU
     18     2.  In MSVC, open the workspace file icu\samples\cal\cal.sln
     19     3.  Choose a Debug or Release build.
     20     4.  Build.
     21 	
     22 To Run on Windows
     23     1.  Start a command shell window
     24     2.  Add ICU's bin directory to the path, e.g.
     25             set PATH=c:\icu\bin;%PATH%
     26         (Use the path to where ever ICU is on your system.)
     27     3.  cd into the cal directory, e.g.
     28             cd c:\icu\source\samples\cal\debug
     29     4.  Run it
     30             cal
     31 
     32 To Build on Unixes
     33     1.  Build ICU.  icucal is built automatically by default unless samples are turned off.
     34         Specify an ICU install directory when running configure,
     35         using the --prefix option.  The steps to build ICU will look something
     36         like this:
     37            cd <icu directory>/source
     38            runConfigureICU <platform-name> --prefix <icu install directory> [other options]
     39            gmake all
     40            
     41     2.  Install ICU, 
     42            gmake install
     43            
     44  To Run on Unixes
     45            cd <icu directory>/source/samples/cal
     46            
     47            gmake check
     48                -or- 
     49 
     50            export LD_LIBRARY_PATH=<icu install directory>/lib:.:$LD_LIBRARY_PATH
     51            cal
     52            
     53            
     54  Note:  The name of the LD_LIBRARY_PATH variable is different on some systems.
     55         If in doubt, run the sample using "gmake check", and note the name of
     56         the variable that is used there.  LD_LIBRARY_PATH is the correct name
     57         for Linux and Solaris.
     58 
     59