Montag, 7. Januar 2013

CDK

About

CDK (Curses Development Kit) is a library which defines many widgets and ready to use controls for curses-based programs. It works with NCurses as well as PDCurses.

CDK Installation / Quickstart

1. Download package

Web: http://invisible-island.net/cdk/#download
File: cdk.tar.gz

2. Build

sh
sh configure
make


3. Install headers

mkdir "%USERPROFILE%/include/cdk/"
cp -v include/*.h "%USERPROFILE%/include/cdk/"


4. Install libs

mkdir "%USERPROFILE%/lib/cdk/"
cp -v libcdk.a "%USERPROFILE%/lib/cdk/"


5. Install manpages

mkdir "c:/cygwin/home/%USERNAME%/man/cdk/"
mkdir "c:/cygwin/home/%USERNAME%/man/cdk/man3/"
cp -v man/*.3 "c:/cygwin/home/%USERNAME%/man/cdk/man3/"


6. Update environment

Add include directory to CPATH
Add libs directory to LIBRARY_PATH
Add base man directory to MANPATH

7. Compile a test program

cp -v examples/buttonbox_ex.c "%USERPROFILE%/Desktop/"
cd "%USERPROFILE%/Desktop/"
gcc -Wall -o buttonbox_ex buttonbox_ex.c -lcdk -lpdcurses


References:

http://invisible-island.net/cdk/

Keine Kommentare:

Kommentar veröffentlichen