URL
https://opencores.org/ocsvn/or1k_old/or1k_old/trunk
Subversion Repositories or1k_old
[/] [or1k_old/] [trunk/] [insight/] [tix/] [docs/] [WinInst.txt] - Rev 1782
Compare with Previous | Blame | View Log
BUILDING THE WINDOWS BINARIESTo build Tix on Windows, you must have the following:* Visual C++ 4.0 or later; or Borland C++ 4.5 or later. There is notyet built-in support for Tix to work with other compilers.* The sources of Tcl/Tk for Windows.* The sources of Tix for Windows.1. DOWNLOAD THE TCL, TK AND TIX SOURCESYou can download latest version of the Tcl7.5, 7.6 or 8.0 fromftp://ftp.sunlabs.com/pub . There are detailed instructions thatcomes with these packages about compiling them on Windows. Hopefullythat will give you a good exercise on setting up the environment forcompiling Tcl-based programs on the Windows platforms.You can then get the Tix source distribution atftp://ftp.xpi.com/pub/Tix41.zip . This ZIP file contains files withlong file names and must be unzipped by an UNZIP program that knowslong filenames, such as winzip.exe.You should put the Tcl, Tk and Tix source packages in the samedirectory. For example, my directories look like this:C:\tcl7.6C:\tk4.2C:\Tix4.12. COMPILE TCL AND TKFollow the instructions that come with Tcl and Tk. If you can compilesuccessfully, you would get the following files:C:\tcl7.6\win\tcl76.dllC:\tcl7.6\win\tclpip76.dllC:\tk4.2\win\tk42.dllThese are the files you need to run Tix on Windows.3. COMPILE TIXChange to the Tix4.1\Win subdirectory. Tix supports several versionsof Tcl. You choose the version of Tcl to compile Tix with by using theTCL_VER variable:* Tcl 7.5: nmake -f makefile.vc TCL_VER=7.5* Tcl 7.6: nmake -f makefile.vc TCL_VER=7.6* Tcl 8.0: nmake -f makefile.vc TCL_VER=8.0* Itcl 2.2: nmake -f makefile.vc TCL_VER=2.2iIf you have BC++, use make -f makefile.bc instead.When make or nmake finishes, you will get Tix binaries inside thebuild directories. For example, if you compile Tix for Tcl 7.6, youwill be the following files:C:\Tix4.1\win\tcl7.6\tix4176.dllC:\Tix4.1\win\tcl7.6\tix4176.exeThe executable file tix4176.exe contains Tcl, Tk and Tix. You can useit to run an Tix script by:set TIX_LIBRARY=C:\Tix4.1\library C:\Tix4.1\win\tcl7.6\tix4176.exefoo.tcl4. FIXING DLL PROBLEMSYou may run into certain problems related to DLL's when you executetix4176.exe. For example:* Windows complains that a DLL, usually tcl76.dll, is not found.* Windows complains that a symbol is missing.* Some weird things happen.When tix4176.exe starts up, it will load in the following DLL's* tcl76.dll* tclpip76.dll* tk42.dll* tix4176.dllWindows searches for a DLL file by the following order:1. Same directory as executable.2. Windows system directory.3. directories in the PATH environment variable.To ensure that the correct DLLs are loaded, you can copy all the DLL'sused by tix4176.exe into the directory where tix4176.exe is.5. INSTALLING TIXYou can install Tix into the Tcl installation directory so that youcan load Tix with the "package require" command and no longer need toset the TIX_LIBRARY variable:1. Create a directory tix4.1 under the Tcl installation directory,usually in C:\Program Files\Tcl7.6\lib.2. Copy all the files under Tix4.1b1\library into the C:\ProgramFiles\Tcl7.6\lib\tix4.1 directory.3. Copy the file Tix4.1\win\pkgIndex.tcl into the C:\ProgramFiles\Tcl7.6\lib\tix4.1 directory.Now you should be able to start up wish42.exe and execute thefollowing command to load in Tix.package require -exact Tix [tixBinVer 4.1]Read the file Tix4.1\docs\Pkg.txt for more info about dynamicallyloading Tix._________________________________________________________________FAQ'S FOR RUNNING TIX ON WINDOWSHow do I set an environment variable.You can set it in your DOS window by typing something like "setTIX_LIBRARY=C:\Tix4.1\win". This will affect that particularDOS window only. If you want the change to affect the wholeWindows environment (for example, you want launch txwish41.exeby double-clicking on its icon), you must put the commands inyour AUTOEXEC.BAT file and then reboot your machine.I get an "out of environment space" error from DOS.Edit your CONFIG.SYS file and add the switch "/E:1024" to theSHELL=COMMAND.COM line. Reboot. This should give you enoughenv space.My C compiler says "unrecognized file format tk42.lib" or somethinglike that.You compiled tk42.lib with VC++ and are compiling Tix withBorland C++, or vice verse. Use the same compiler to compileall binaries._________________________________________________________________Last modified Sat Feb 15 21:52:36 EST 1997 --- Serial 856069650
