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/#downloadFile: cdk.tar.gz
2. Build
shsh 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 CPATHAdd 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
Keine Kommentare:
Kommentar veröffentlichen