Tcl/Tk: Difference between revisions

From CLONWiki
Jump to navigation Jump to search
Boiarino (talk | contribs)
No edit summary
 
Boiarino (talk | contribs)
No edit summary
Line 5: Line 5:
  expect-5.43
  expect-5.43
  blt2.4z
  blt2.4z
Go to every directory ..
 
Installation instructions:
 
* tcl
 
cd /usr/local/src/tcl8.4.13/unix
./configure --prefix=/usr --enable-shared
gmake
gmake install
 
* tk
 
cd /usr/local/src/tk8.4.13/unix
./configure --prefix=/usr --enable-shared
gmake
gmake install
 
* tix
 
cd /usr/local/src/tix-8.4.0
 
In file Makefile.in:
 
1. Replace 'pkglibdir' by 'libdir' in 4 places in following fragment:
 
install-lib-binaries:
        @mkdir -p $(DESTDIR)$(pkglibdir)
        @list='$(lib_BINARIES)'; for p in $$list; do \
          if test -f $$p; then \
            echo " $(INSTALL_PROGRAM) $$p $(DESTDIR)$(libdir)/$$p"; \
            $(INSTALL_PROGRAM) $$p $(DESTDIR)$(libdir)/$$p; \
            echo " $(RANLIB) $(DESTDIR)$(libdir)/$$p"; \
            $(RANLIB) $(DESTDIR)$(libdir)/$$p; \
            ....................................
 
to enforce libTix8.4.so installation into ${exec_prefix}/lib/,
not into ${exec_prefix}/lib/Tix8.4/
 
2. Add following fragment to enforce 'tixwish' building:
 
WISH_OBJS = tixAppInit.o
tixwish: $(WISH_OBJS) $(PKG_LIB_FILE)
        ${CC} ${CFLAGS} ${LDFLAGS} $(WISH_OBJS) -lTix8.4 -ltk8.4 -ltcl8.4 \
                $(CC_SEARCH_FLAGS) -o tixwish
 
3. Add 'tixwish' target to the following line:
 
binaries: $(BINARIES) pkgIndex.tcl tixwish
 
 
4. Add 'tixwish' line in following fragment:
 
install-binaries: binaries install-lib-binaries install-bin-binaries
        @mkdir -p $(DESTDIR)$(pkglibdir)
        $(INSTALL_DATA) pkgIndex.tcl $(DESTDIR)$(pkglibdir)
        $(INSTALL_PROGRAM) tixwish $(DESTDIR)$(bindir)
        ...........................................
 
./configure --prefix=/usr --enable-shared
gmake
gmake install
 
* expect
 
* blt

Revision as of 21:42, 22 November 2007

Basic Tcl/Tk must be installed to satisfy CODA references. Following packages were downloaded to /usr/local/downloads from the web:

tcl8.4.13
tk8.4.13
tix-8.4.0
expect-5.43
blt2.4z

Installation instructions:

  • tcl
cd /usr/local/src/tcl8.4.13/unix
./configure --prefix=/usr --enable-shared
gmake
gmake install
  • tk
cd /usr/local/src/tk8.4.13/unix
./configure --prefix=/usr --enable-shared
gmake
gmake install
  • tix

cd /usr/local/src/tix-8.4.0

In file Makefile.in:

1. Replace 'pkglibdir' by 'libdir' in 4 places in following fragment:

install-lib-binaries:
       @mkdir -p $(DESTDIR)$(pkglibdir)
       @list='$(lib_BINARIES)'; for p in $$list; do \
         if test -f $$p; then \
           echo " $(INSTALL_PROGRAM) $$p $(DESTDIR)$(libdir)/$$p"; \
           $(INSTALL_PROGRAM) $$p $(DESTDIR)$(libdir)/$$p; \
           echo " $(RANLIB) $(DESTDIR)$(libdir)/$$p"; \
           $(RANLIB) $(DESTDIR)$(libdir)/$$p; \
           ....................................

to enforce libTix8.4.so installation into ${exec_prefix}/lib/, not into ${exec_prefix}/lib/Tix8.4/

2. Add following fragment to enforce 'tixwish' building:

WISH_OBJS = tixAppInit.o
tixwish: $(WISH_OBJS) $(PKG_LIB_FILE)
       ${CC} ${CFLAGS} ${LDFLAGS} $(WISH_OBJS) -lTix8.4 -ltk8.4 -ltcl8.4 \
               $(CC_SEARCH_FLAGS) -o tixwish

3. Add 'tixwish' target to the following line:

binaries: $(BINARIES) pkgIndex.tcl tixwish


4. Add 'tixwish' line in following fragment:

install-binaries: binaries install-lib-binaries install-bin-binaries
       @mkdir -p $(DESTDIR)$(pkglibdir)
       $(INSTALL_DATA) pkgIndex.tcl $(DESTDIR)$(pkglibdir)
       $(INSTALL_PROGRAM) tixwish $(DESTDIR)$(bindir)
       ...........................................
./configure --prefix=/usr --enable-shared
gmake
gmake install
  • expect
  • blt