★ wanayoo — archive 1999 http://dev.scriptics.com/doc/howto/probuild.htmlNouvelle recherche | Portail wanayoo
Developer Site
Getting StartedTcl AdvocacySoftware ResourcesDocumentsServicesCommunity
Home
Login | Books | F.A.Q. | Manual Pages | Tutorials | White Papers | Y2K |  How To Guides| | Tcl Extension Architecture
Search 
TclPro Extensions | Wrap TclPro | Compile Tcl | Stub Libraries | Threads | Windows Extensions | Regular Expressions | I18N

This page provides a "how to" guide to building extensions that work with the TclPro binary distributions.
Do a full install of TclPro including sources into, for example,
/home/welch/TclPro1.3

To compile anything, there needs to be a "tclConfig.sh" that is a by-product
of building Tcl itself.  Because this file captures some of the local 
environment, we cannot ship it because our settings might be wrong.  The
customer has to generate this file, which happens automatically by running
the "configure" script in the src/tcl8.2/unix directory.

They must run configure with a --prefix (the install directory) and a
--exec-prefix (the install binary directory) setting to match their
TclPro installation.  I've just done:

cd ~/TclPro1.3/tcl8.2/unix
sh configure --enable-gcc --prefix=/home/welch/TclPro1.3 \ 
	--exec-prefix=/home/welch/TclPro1.3/solaris-sparc

cd ~/TclPro1.3/tk8.2/unix
sh configure --enable-gcc --prefix=/home/welch/TclPro1.3 \ 
    --exec-prefix=/home/welch/TclPro1.3/solaris-sparc \ 
    --with-tcl=/home/welchTclPro1.3/src/tcl8.3/unix/solaris-sparc


Unpack BLT into the TclPro src directory
cd ~/TclPro1.3/src
gunzip < ~/download/BLT2.4m.tar.gz

cd blt2.4m
mkdir solaris-sparc  (there is no unix subdir for BLT)
cd solaris-sparc

sh ../configure --enable-gcc --prefix=/home/welch/TclPro1.3  \ 
    --exec-prefix=/home/welch/TclPro1.3/solaris-sparc \
    --with-tcl=/home/welch/TclPro1.3/src/tcl8.2/unix/solaris-sparc \ 
    --with-tk=/home/welch/TclPro1.3/src/tk8.2/unix/solaris-sparc

Then need to fix the generated Makefile and shared/Makefile because
it isn't using --exec-prefix right.  Fix the -L path to list
/home/welch/TclPro1.3/solaris-sparc/lib
instead of
/home/welch/TclPro1.3/lib

Then the install didn't create a pkgIndex.tcl file,
and the Makefile in the library directory didn't install a
useful one.

We ended up editting the one in 
/home/welch/TclPro1.3/solaris-sparc/lib
to add
package ifneeded BLT  2.4  \ 
    [list load [file join $dir libBLT24[info sharedlibextension]] BLT]

Annotations Welcome
Add a comment | Add a link

Top of page
Developer Home | Ajuba | Getting Started | Tcl Advocacy | Software Resources | Documents | Services | Community
Search | Site Map | Feedback | Contact Us | webmaster@ajubasolutions.com
Increase page width
© 1998-2000 Ajuba Solutions. All rights reserved. Legal Notice | Privacy Statement

Last modified: August 08, 2000