From AlphaWiki

Cabal: Alpha core building check list

This page maintains a checklist of the tasks to be executed when preparing a new AlphaX binary

Tcl framework

Different binaries must be compiled for Jaguar, Panther and Tiger systems. Each one must be linked against the corresponding Tcl framework. In the case of Jaguar and Panther, the framework is embedded and its path is

 
     @executable_path/../Frameworks/Tcl.framework/Versions/8.4/Tcl

For the Tiger build, we can use the framework provided by Apple. The path in the binary is:

 
     /System/Library/Frameworks/Tcl.framework/Versions/8.4/Tcl

Building the private framework with XCode

Todo (insert man page of the shell script)

Access permissions

Permissions on the usual framework are like this:

 
     lrwxr-xr-x   1 bernardo  admin   24 Jan  7 22:07 Headers -> Versions/Current/Headers
     lrwxr-xr-x   1 bernardo  admin   31 Jan  7 22:07 PrivateHeaders -> Versions/Current/PrivateHeaders
     lrwxr-xr-x   1 bernardo  admin   26 Jan  7 22:07 Resources -> Versions/Current/Resources
     lrwxr-xr-x   1 bernardo  admin   20 Jan  7 22:07 Tcl -> Versions/Current/Tcl
     drwxr-xr-x   5 bernardo  admin  170 Jan  7 22:08 Versions
     lrwxr-xr-x   1 bernardo  admin   28 Jan  7 22:07 libtclstub8.5.a -> Versions/8.5/libtclstub8.5.a
     lrwxr-xr-x   1 bernardo  admin   29 Jan  7 22:07 libtclstub8.5g.a -> Versions/8.5/libtclstub8.5g.a
     lrwxr-xr-x   1 bernardo  admin   29 Jan  7 22:07 tclConfig.sh -> Versions/Current/tclConfig.sh

 
     drwxr-xr-x   7 bernardo  admin     238 Dec 29 19:09 Headers
     drwxr-xr-x   7 bernardo  admin     238 Dec 29 19:09 PrivateHeaders
     drwxr-xr-x   7 bernardo  admin     238 Jan  7 22:09 Resources
     -r-xr-xr-x   1 bernardo  admin  847516 Dec 29 19:09 Tcl
     -rw-r--r--   1 bernardo  admin    2536 Dec 29 19:09 libtclstub8.5.a
     -rw-r--r--   1 bernardo  admin    8262 Dec 29 18:51 tclConfig.sh

 
     -rw-r--r--   1 bernardo  admin   87424 Dec 29 18:41 tcl.h
     -rw-r--r--   1 bernardo  admin  231416 Dec 29 18:42 tclDecls.h
     -rw-r--r--   1 bernardo  admin    3909 Nov  3  2004 tclPlatDecls.h
     -rw-r--r--   1 bernardo  admin   18561 Dec 15 17:50 tclTomMath.h
     -rw-r--r--   1 bernardo  admin   26055 Dec 13 23:43 tclTomMathDecls.h

They might have to be changed inside the Libraries folder in order to let XCode build a private framework (@executable_path) there. The definitive permissions will be set when the framework is installed to its destination inside the AlphaX bundle.

Tcl extensions

The Tclextensions folder contains the following extensions

If we are assembling a standalone bundle, the Tclextensions folder is located inside the bundle like this

 
 	AlphaX_D.app/Contents/Resources/Scripts/AlphaTcl/Tclextensions

or 1 level up (directly in Scripts).

Linking

Make sure the binary is linked against the embedded Tcl framework found in /AlphaX/Libraries/PrivateFrameworks

AlphaTcl library

See the Release check list page on the wiki.

If we are assembling a standalone bundle, the library is located inside the bundle like this

AlphaX_D.app/Contents/Resources/Scripts/AlphaTcl/Tcl

Ditto for the Help, Examples, and Tools folders.

Retrieved from http://alphatcl.sourceforge.net/wiki/pmwiki.php/Cabal/BuildCheckList
Page last modified on May 26, 2006, at 07:31 AM