home *** CD-ROM | disk | FTP | other *** search
/ Complete Linux / Complete Linux.iso / docs / devel / tcl / tclx7_31.z / tclx7_31 / tcldev / BUILD < prev    next >
Encoding:
Text File  |  1993-11-26  |  2.1 KB  |  40 lines

  1. This file attempts to describe how to build the Tcl/Tk shared
  2. libraries for Linux.  Documentation isn't one of my strengths so I
  3. don't promise that everything will build without a hitch.  If you
  4. have problems, please let me know and I'll try to update this file.
  5.  
  6. All source has been pre-configured to compile on my Linux system.  The
  7. only things I changed from the original sources were to tweak the
  8. Makefiles to install in the desired directories and make it easier to
  9. build the binary packages, and to #ifdef a few files to avoid
  10. conflicts with the standard headers.  If you unpacked this in a
  11. directory other than /home/david/src, you'll have to scan the
  12. Makefiles and change some of the paths accordingly.  Everything was
  13. built using the following packages: Linux-0.99pl13X, GCC-2.5.[24] and
  14. DLL tools-2.9.
  15.  
  16. The first thing to do is to build and install static versions of
  17. everything.  I don't really expect anyone to use the static versions,
  18. but this is the easiest way to install all the support files.  To
  19. build and install the static versions, cd into each of the major
  20. source directories (tcl7.3, tk3.6, tclX7.3a, blt-1.0 and itcl-1.3) and
  21. run 'make' followed by a 'make install'.  The latter must be done as
  22. root.  Additionally, for TclX, you must set an environment variable
  23. named POSIXLY_CORRECT.  Not everything I included in the binary
  24. packages is installed automatically.  You'll have to manually copy the
  25. remaining files to the appropriate places.
  26.  
  27. We're now ready to build the shared libraries.  Clean out the static
  28. versions by running 'make clean' in all but the tclX7.3a directory.
  29. In the tclX7.3a directory, run 'rm src/*.o tksrc/*.o'.  Now build the
  30. shared libraries by running each of the make.{tcl,tk,tclx,tkx,blt,
  31. itcl} shell scripts in turn.  This will leave the stub libraries and
  32. unstripped binaries and library images in the current directory.
  33. Strip the binaries and images, if desired.  Then, as root, copy them
  34. along with the stubs to the appropriate place and run 'ldconfig'.
  35.  
  36. And that's it.  Please report any problems or suggestions to me.
  37.  
  38. David Engel
  39. david@ods.com
  40.