Difference between revisions of "Tk"

From CBLFS
Jump to navigationJump to search
(Multilib)
Line 2: Line 2:
 
|-
 
|-
 
!Download Source:
 
!Download Source:
| http://prdownloads.sourceforge.net/tcl/tk8.4.14-src.tar.gz
+
| http://prdownloads.sourceforge.net/tcl/tk{{Tk-Version}}-src.tar.gz
 
|}
 
|}
  
Line 29: Line 29:
 
  make install &&
 
  make install &&
 
  make install-private-headers &&
 
  make install-private-headers &&
  ln -v -sf wish8.4 /usr/bin/wish
+
  ln -v -sf wish{{Tk-Version2}} /usr/bin/wish
  
 
=== Command Explanations ===
 
=== Command Explanations ===
Line 37: Line 37:
 
'''make install-private-headers''': This command is used to install the Tk library interface headers used by other packages if they link to the Tk library.
 
'''make install-private-headers''': This command is used to install the Tk library interface headers used by other packages if they link to the Tk library.
  
'''ln -v -sf wish8.4 /usr/bin/wish''': This command is used to create a compatibility symbolic link to the '''wish8.4''' file as many packages expect a file named '''wish'''.
+
'''ln -v -sf wish{{Tk-Version2}} /usr/bin/wish''': This command is used to create a compatibility symbolic link to the '''wish{{Tk-Version2}}''' file as many packages expect a file named '''wish'''.
  
 
== Multilib ==
 
== Multilib ==
Line 80: Line 80:
 
  make install &&
 
  make install &&
 
  make install-private-headers &&
 
  make install-private-headers &&
  ln -v -sf wish8.4 /usr/bin/wish
+
  ln -v -sf wish{{Tk-Version2}} /usr/bin/wish
  
 
= Contents =
 
= Contents =
Line 87: Line 87:
 
|-valign="top"
 
|-valign="top"
 
! Installed Programs:
 
! Installed Programs:
| wish and wish8.4
+
| wish and wish{{Tk-Version2}}
 
|-valign="top"
 
|-valign="top"
 
! Installed Libraries:
 
! Installed Libraries:
| libtk.so and libtkstub8.4.a
+
| libtk.so and libtkstub{{Tk-Version2}}.a
 
|-valign="top"
 
|-valign="top"
 
! Installed Directories:
 
! Installed Directories:
| /usr/lib/tk8.4
+
| /usr/lib/tk{{Tk-Version2}}
 
|}
 
|}
  
Line 103: Line 103:
 
| is a symlink to the '''wish8.4''' program.  
 
| is a symlink to the '''wish8.4''' program.  
 
|-valign="top"
 
|-valign="top"
! wish8.4
+
! wish{{Tk-Version2}}
 
| is a simple shell containing the Tk toolkit that creates a main window and then processes Tcl commands.  
 
| is a simple shell containing the Tk toolkit that creates a main window and then processes Tcl commands.  
 
|-valign="top"
 
|-valign="top"

Revision as of 13:17, 17 December 2006

Download Source: http://prdownloads.sourceforge.net/tcl/tk8.5.7-src.tar.gz

Introduction to Tk

The Tk package contains a TCL GUI Toolkit.

Dependencies

Required

Non-Multilib

Compile the package:

cd unix &&
./configure --prefix=/usr --enable-threads &&
make

Install the package

make install &&
make install-private-headers &&
ln -v -sf wish8.5 /usr/bin/wish

Command Explanations

--enable-threads: This switch forces the package to build with thread support.

make install-private-headers: This command is used to install the Tk library interface headers used by other packages if they link to the Tk library.

ln -v -sf wish8.5 /usr/bin/wish: This command is used to create a compatibility symbolic link to the wish8.5 file as many packages expect a file named wish.

Multilib

32Bit

Compile the package:

cd unix &&
CC="gcc ${BUILD32}" ./configure --prefix=/usr \
    --enable-threads --x-libraries=${XORG_PREFIX}/lib &&
make

Install the package

make install

N32

Compile the package:

cd unix &&
CC="gcc ${BUILDN32}" ./configure --prefix=/usr --libdir=/usr/lib32 \
    --enable-threads --x-libraries=${XORG_PREFIX}/lib32 &&
make

Install the package

make install

64Bit

Compile the package:

cd unix &&
CC="gcc ${BUILD64}" ./configure --prefix=/usr --libdir=/usr/lib64 \
    --enable-threads --x-libraries=${XORG_PREFIX}/lib64 &&
make

Install the package

make install &&
make install-private-headers &&
ln -v -sf wish8.5 /usr/bin/wish

Contents

Installed Programs: wish and wish8.5
Installed Libraries: libtk.so and libtkstub8.5.a
Installed Directories: /usr/lib/tk8.5

Short Descriptions

wish is a symlink to the wish8.4 program.
wish8.5 is a simple shell containing the Tk toolkit that creates a main window and then processes Tcl commands.
libtk.so contains the API functions required by Tk.