Giter VIP home page Giter VIP logo

cdk-ext's Introduction

Cdk Perl5 Extension,
Mike Glover, Copyright 1995
------------------------------------------------------------------------------
This is the Perl5 extension to the Cdk library written by Mike Glover.
All the copyright notices from the Cdk C distribution also apply to the
extension. If you don't agree then remove this package.

Compiling procedure:
---------------------
1. To incorporate this extension into Perl you must modify the Makefile.PL
file to tell the compiler where to find the Cdk library and header files.
The following is an example Makefile.PL file:

use ExtUtils::MakeMaker;
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.

WriteMakefile(
    'NAME'	=> 'Cdk',
    'VERSION'	=> '4.6',
    'LIBS'	=> ['-L/usr/local/lib -L/home/glover/cdk -lcdk -lncurses'],
    'DEFINE'    => '-DNCURSES',
    'INC'	=> '-I/usr/local/include -I/usr/local/include/ncurses -I/home/glover/cdk',
    'clean'	=> {FILES => 'Makefile.old'},
);

* LIBS tells the compiler where to find the Cdk and curses libraries. Just
change the -L paths to reflect what is on your system. Leave the -lcdk
and -lcurses.

* DEFINE tells the compiler which extra flags to use when compiling the
extension. Here are the flags currently supported.
	* If you are using Ncurses, set -DNCURSES, as above. If not then
	leave it blank.
	* If your header file defines COLOR_* values for color support then
	use -DCOLOR.

* INC tells the compiler where to find the header files. Just change the -I
paths to reflect what is on your system.

2. Change directories into the Perl5 home directory and rerun Configure. When
it asks about Perl5 extensions, make sure that Cdk is in the list. If it's
not then add it. Configure will ask about statically or dynamically loaded
extensions, pick one for Cdk. Don't choose both.

3. Run make and let Perl rebuild itself.

4. If you have any problems compiling, read the NOTES file. If you are 
compiling on a Solaris box read the NOTES file.

Testing the Cdk extension:
--------------------------
1. To test the extension, change directories into the ext/Cdk/fulldemo 
directory. This directory has a file named cdkdemo. It demonstrates all 
of the current Cdk widgets. There are two more directories: examples, which
has a script which demonstrates each widget individually and demo which 
has a couple of simple application programs.

2. Before running the demo script set you PERL5LIB environment
variable to the lib directory under the Perl5 source tree. On my machine
Perl is under:
/opt/perl5.001n
so my PERL5LIB would be temporarily set to
/opt/perl5.001n/lib

3. Run the cdkdemo script. If everything is OK, you should see the main
screen to the cdkdemo script.

4. Install the new version of Perl. Change directories into the source tree
and make install. 

5. Revert your PERL5LIB environment variable to whatever it was before.

Misc:
-----
The cdkdemo script has a full complement of help on how to build Cdk Perl
scripts. If you want some more examples, look under the examples directory
in this distribution. There is an example for each widget.

Have fun.

If you have any questions I can be contacted at:
[email protected]

ttfn,
	Mike

cdk-ext's People

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.