gitpan / cdk-ext Goto Github PK
View Code? Open in Web Editor NEWRead-only release history for Cdk-ext
Home Page: http://metacpan.org/release/Cdk-ext
Read-only release history for Cdk-ext
Home Page: http://metacpan.org/release/Cdk-ext
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.