📄 porting.notes
字号:
This file contains a collection of notes that various people haveprovided about porting Tk to various machines and operating systems.I don't have personal access to any of these machines, so I makeno guarantees that the notes are correct, complete, or up-to-date.If you see the word "I" in any explanations, it refers to the personwho contributed the information, not to me; this means that Iprobably can't answer any questions about any of this stuff. Insome cases, a person has volunteered to act as a contact point forquestions about porting Tcl to a particular machine; in thesecases the person's name and e-mail address are listed. I'm veryinterested in getting new porting information to add to the file;please mail updates to "john.ousterhout@eng.sun.com".This file reflects information provided for Tk 4.0 and later releases.If there is no information for your configuration in this file, checkthe file "porting.old" too; it contains information that wassubmitted for Tk 3.6 and earlier releases, and some of that informationmay still be valid.A new porting database has recently become available on the Web atthe following URL: http://www.sunlabs.com/cgi-bin/tcl/info.4.0This page provides information about the platforms on which Tcl 7.4and Tk 4.0 have been compiled and what changes were needed to get Tcland Tk to compile. You can also add new entries to that databasewhen you install Tcl and Tk on a new platform. The Web database islikely to be more up-to-date than this file.sccsid = SCCS: @(#) porting.notes 1.10 96/04/10 15:38:54--------------------------------------------Solaris, various versions--------------------------------------------1. If typing "make test" results in an error message saying thatthere are no "*.test" files, or you get lots of globbing errors,it's probably because your system doesn't have cc installed andyou used gcc. In order for this to work, you have to set yourCC environment variable to gcc and your CPP environment variableto "gcc -E" before running the configure script.2. Make sure that /usr/ucb is not in your PATH or LD_LIBRARY_PATHenvironment variables; this will cause confusion between the newSolaris libraries and older UCB versions (Tk will expect one versionand get another).3. On 486 PCs with Solaris 2.4, when compiling with gcc 2.6.0,tkMessage.c appears to hang gcc. If the -O switch is removedthen it compiles fine.--------------------------------------------486 PCs, Solaris 2.4--------------------------------------------When compiling with gcc 2.6.0, tkMessage.c appears to hang gcc.If the -O switch is removed then it compiles fine.--------------------------------------------SGI machines, IRIX 5.2, 5.3, IRIX64 6.0.1--------------------------------------------1. Add "-D_BSD_TIME" to CFLAGS in Makefile. This avoids type conflictsin the prototype for the gettimeofday procedure.2. If you're running under Irix 6.x and wish dumps core, tryremoving -O from the CFLAGS in Makefile and recompiling; compileroptimizations seem to cause problems on some machines.--------------------------------------------QNX 4.22--------------------------------------------All of the source files built as is. All I had to do was edit theMakefile generated by ./configure to specify where the X11 librarieswere (ie, I added in -L/usr/X11/lib)--------------------------------------------HP-UX--------------------------------------------There are problems compiling Tk gcc (version 2.7.2) and the HP assembler.The problem is that if static functions are called using a pointer reference,double arguments are not transferred correctly into the function. That canbe fixed by making all those functions global. This happens with theScaleXxx() and TranslateXxx() functions for all canvas item types.The simplest fix is configure gcc to use the GNU assembler.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -