root/trunk/readme.txt

Revision 4, 5.1 kB (checked in by shai, 2 years ago)

Initial import

Line 
1FORTRAN/TK (v.0.6 beta):
2~~~~~~~~~~~~~~~~~~~~~~~~
3
4FORTRAN/TK is, an easy to learn, platform-independent (OS/2 and Windows 32-bit)
5widget toolkit for the Open Watcom FORTRAN 77 compiler. The files "calc.for"
6(Calculator), "edit.for"(Editor) and "example.for"(Simple example) are examples of
7some features already implemented in FORTRAN/TK. They are located in the "examples"
8subdirectory. FORTRAN/TK is based on Rexx/Tk by Roger O'Connor and Mark Hessling.
9(technically it's a kind of wrapper to the Rexx/Tk library) and therefore uses the
10TK-Toolkit from Tcl/Tk. All Rexx/Tk functions are already usable with FORTRAN/TK
11including some which are not even listed in the Rexx/Tk help. However FORTRAN/TK
12does not need a Rexx-Interpreter.
13It also includes about 20 new functions which are neither part of Tcl/Tk nor Rexx/Tk
14nor Open Watcom FORTRAN. They include functions for file management, file searching,
15basic support for dynamic DLL handling and the clipboard which are commonly needed.
16
17How to build FORTRAN/TK:
18FORTRAN/TK is built as a library of different object files, which you can easily
19include in your project.
20
21FORTRAN/TK and its examples can be compiled using the provided makefiles.
22To compile FOTRAN/TK, go to the commandline, set the environment variables of
23Open Watcom and issue the following in the FORTRAN/TK directory:
24wmake [os=OS2|WIN]
25"os=WIN" compiles the library for Windows 32-bit. If "os=OS2" or "os" is
26omitted, the library will be compiled for OS/2 32-bit.
27
28A file called "fortrantk.lib" will be created.
29Remember that the library includes platform dependent code and must be rebuilt to
30work on another system as compiled for.
31
32How to build the examples:
33Copy the prievously built "fortrantk.lib" to the "examples" subdirectory.
34Remember that the FORTRAN/TK directory should be somewhere in the FORTRAN include
35path (e.g. defined with the FINCLUDE environment variable in your "setvars.cmd"/
36"setvars.bat" or "config.sys"/"autoexec.bat") because FORTRAN/TK programs share
37some include files with the core itself.
38
39Then issue:
40wmake [ico16=|ico=] [os=OS2|WIN] [calc=] [edit=] [example=]
41If everything is omitted, all examples will be built for OS/2 without icons.
42Specify "os=WIN" to compile the examples for Windows. If you set either
43"calc=", "edit=" or "example=" then just these examples will be compiled.
44If "ico=" or "ico16=" is set, the standard FORTRAN/TK icon will be included
45in the file, whereas "ico16=" is for OS/2 only and says that the 16-bit
46resource compiler should be used instead of the 32-bit one (I had problems with
47it). Under OS/2, the resource compilers of the OS/2 Developers Toolkit are used,
48so be sure that you have installed them.
49So to compile all examples for OS/2 and include the icon, you would have to enter:
50wmake ico=
51or
52wmake ico= os=WIN
53for Windows.
54
55Basically, a FORTRAN/TK program can be built by issuing the Open Watcom FORTRAN
56Compile and Link Utility in the following way:
57
58wfl386 [yourprogram.for] -"f fortrantk.lib" -FE=[yourprogram.exe] -BM -DEF=[OSDEF] -L=[SYSTEM]
59
60where [yourprogram.for] is your program, [yourprogram.exe] is the executable name
61of your program, [OSDEF] is a compiler definition - either __OS2__ or __WIN__ and
62[SYSTEM] is the system identifier for the linker, which should be either OS2V2,
63OS2V2_PM (without console, windowed application), NT or NT_WIN (without console).
64
65Required libraries:
66OS/2: "rexxtk.dll", "rexxtran.dll", "tcl80.dll", "tk80.dll", EMX libraries (for Tcl/Tk).
67They must be somewhere in the PATH or in the directory defined by the TKINIT-function of your
68program.
69These files are already located in the "examples\binos2\runtime" directory of
70FORTRAN/TK.
71
72Windows: "Msvcrt.dll", "rexxtk.dll", "rexxtrans.dll", "tcl80.dll", "tk80.dll"
73(should be in the directory defined by the TKINIT-function of your program).
74You may also need the Tcl/Tk libraries - the "lib" directory must be
75one level deeper than the Tcl/Tk-DLLs (../), but you may change this
76by the TCL_LIBRARY and TK_LIBRARY environment variables.
77These files are already located in the "examples\binwin\runtime" directory of
78FORTRAN/TK.
79
80Documentation:
81Sadly, there is no real documentation yet except the example programs, the
82source code (which needs some more documentation, too) and this readme file.
83The FORTRAN/TK-Api is very similar to the Rexx/Tk library, so the Rexx/Tk help
84(http://rexxtk.sourceforge.net/) will also be useful.
85But the Rexx/Tk documentation isn't complete, too, so you should read the Tcl/Tk
86help of your installed release anyway.
87
88FORTRAN/TK is an Open Source project, so you are invited to participate in the
89development, to study the sourcecode, to send bug fixes and to modify the
90sourcecode in all ways allowed by the OSL v.2.1 license.
91I am happy about any suggestion and help.
92
93Copyright (C): 2005 Robin Haberkorn
94License: Open Software License v.2.1
95(look at "osl-2.1.txt" for a text copy)
96
97FORTRAN/TK may still contain serious bugs.
98It is distributed WITHOUT ANY WARRANTY!
99
100Detailed documentation coming soon...
101
102Contact:             None-Brain@web.de
103FORTRAN/TK Homepage: http://qdlos.sourceforge.net/fortrantk
Note: See TracBrowser for help on using the browser.