📄 readme
字号:
This is the directory where you configure, compile, test, and installUNIX versions of Tk. This directory also contains source files for Tkthat are specific to UNIX.The rest of this file contains instructions on how to do this. Therelease should compile and run either "out of the box" or with trivialchanges on any UNIX-like system that approximates POSIX, BSD, or SystemV. We know that it runs on workstations from Sun, H-P, DEC, IBM, andSGI, as well as PCs running Linux, BSDI, and SCO UNIX. To compile fora PC running Windows, see the README file in the directory ../win. Tocompile for a Macintosh, see the README file in the directory ../mac.SCCS: @(#) README 1.24 97/08/13 17:31:19How To Compile And Install Tk:------------------------------(a) Make sure that the Tcl 8.0 release is present in the directory ../../tcl-8.0. This release of Tk will only work with Tcl 8.0. Also, be sure that you have configured Tcl before you configure Tk.(b) Check for patches as described in ../README.(c) If you have already compiled Tk once in this directory and are now preparing to compile again in the same directory but for a different platform, or if you have applied patches, type "make distclean" to discard all the configuration information computed previously.(d) Type "./configure". This runs a configuration script created by GNU autoconf, which configures Tcl for your system and creates a Makefile. The configure script allows you to customize the Tcl configuration for your site; for details on how you can do this, type "./configure -help" or refer to the autoconf documentation (not Note: be sure to use only absolute path names (those starting with "/") in the --prefix and --exec_prefix options.(e) Type "make". This will create a library archive called "libtk.a" or "libtk.so" and an interpreter application called "wish" that allows you to type Tcl commands interactively or execute script files.(f) If the make fails then you'll have to personalize the Makefile for your site or possibly modify the distribution in other ways. First check the file "porting.notes" to see if there are hints for compiling on your system. Then look at the porting Web page described later in this file. If you need to modify Makefile, there are comments at the beginning of it that describe the things you might want to change and how to change them. (g) Type "make install" to install Tk's binaries and script files in standard places. You'll need write permission on the installation directoryies to do this. The installation directories are determined by the "configure" script and may be specified with the --prefix and --exec_prefix options to "configure". See the Makefile for information on what directories were chosen; you can override these choices by modifying the "prefix" and "exec_prefix" variables in the Makefile.(h) At this point you can play with Tk by invoking the "wish" program and typing Tcl commands. However, if you haven't installed Tk then you'll first need to set your TK_LIBRARY environment variable to hold the full path name of the "library" subdirectory. If you haven't installed Tcl either then you'll need to set your TCL_LIBRARY environment variable as well (see the Tcl README file for information on this). Note that installed versions of wish, libtk.a, libtk.so, and the Tk library have a version number in their names, such as "wish8.0" or "libtk8.0.so"; to use the installed versions, either specify the version number or create a symbolic link (e.g. from "wish" to "wish8.0").If you have trouble compiling Tk, read through the file "porting.notes".It contains information that people have provided about changes they hadto make to compile Tcl in various environments. Or, check out thefollowing Web URL: http://www.sunlabs.com/cgi-bin/tcl/info.8.0This is an on-line database of porting information. We make no guaranteesthat this information is accurate, complete, or up-to-date, but you mayfind it useful. If you get Tk running on a new configuration and had tomake non-trivial changes to do it, we'd be happy to receive new informationto add to "porting.notes". You can also make a new entry into theon-line Web database. We're also interested in hearing how to change theconfiguration setup so that Tcl compiles on additional platforms "out ofthe box".Test suite----------Tk has a substantial self-test suite, consisting of a set of scripts inthe subdirectory "tests". To run the test suite just type "make test"in this directory. You should then see a printout of the test filesprocessed. If any errors occur, you'll see a much more substantialprintout for each error. In order to avoid false error reports, be sureto run the tests with an empty resource database (e.g., remove your.Xdefaults file or delete any entries starting with *). Also, don'ttry to do anything else with your display or keyboard whlie the testsare running, or you may get false violations. See the README file inthe "tests" directory for more information on the test suite.If the test suite generates errors, most likely they are due to non-portable tests that are interacting badly with your system configuration.We are gradually eliminating the non-portable tests, but this releaseincludes many new tests so there will probably be some portabilityproblems. As long as the test suite doesn't core dump, it's probablysafe to conclude that any errors represent portability problems in thetest suite and not fundamental flaws with Tk.There are also a number of visual tests for things such as screen layout,Postscript generation, etc. These tests all have to be run manually andthe results have to be verified visually. To run the tests, cd to the"tests" directory and run the script "visual". It will present a mainwindow with a bunch of menus, which you can use to select various tests.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -