[GUI] crass platform? Htk?

George Russell ger@tzi.de
Fri, 24 Jan 2003 18:02:27 +0100


Shae Matijs Erisson wrote
[snip]
> I've just tried the latest version announced yesterday on the primary haskell
> list. It works on my Debian Linux box.
> I haven't tried it on windows, I don't have one available.
> I don't know if Tcl/Tk works on Mac at all. (but would like to know)
[snip]
As one of the authors, I am very grateful for the endorsement.  Always nice to receive
assistance in our quest for world domination ...

I have tested HTk (and it works) on Windows (both 98 and NT), Linux and Solaris.
Or at least I hope it does; if it doesn't please complain to me ...

I believe it would work on Mac OS X, because that does indeed have Tcl/Tk (almost every
system does) and GHC.  The compilation needs a Unixy environment, but no more than
say MinGW or Cygwin provide on Windows (I have compiled with both).

[snip]
> Admittedly, Tcl/Tk is ugly enough to be called "crass platform" but it would
> follow the "Worse Is Better" approach.
[snip]
You can improve the look of Tcl/Tk somewhat, and add other widgets, by using
"tixwish" instead of "wish".  
   http://tix.sourceforge.net/
If you build HTk with tixwish in your path, it will default to using that instead of wish. 
Or you can switch between the two by setting an environment variable before running your
programs.  Alas though there is a bug in tixwish (reported but as yet not fixed) which
means it won't work on Windows, so there you do have to use wish.

Only problem is I don't at the moment have access to a Mac (or FreeBSD).  If someone would like to build
binaries for me, I'd be very grateful to help.  However the following *allegedly* works, where
$TAR is GNU tar, and $MAKE is GNU make.  Make sure that ghc, wish, and the GNU linker gld or ld are in your
PATH.  The build process needs other programs, but looking at ./configure's output should tell you
if there's a problem, and if so what.

wget http://www.informatik.uni-bremen.de/htk/download/uni-0-99-src.tar.gz
$TAR -xvzf uni-0-99-src.tar.gz
cd uni
./configure
$MAKE packages
$MAKE prepareexports
$MAKE exports

Hope this helps,

George Russell