SourceFiles.org - Use the Source, Luke
Home | Register | News | Forums | Guide | MyLinks | Bookmark

Related Sites

Latest News
  General News
  Reviews
  Press Releases
  Software
  Hardware
  Security
  Tutorials
  Off Topic


Back to files

This is for Mac OS X users.

In order to compile mtink and ttink you need the libusb package which can be found at sourceforge.net and the necessary development package for you Mac OS X system which can be downloaded from the apple site.

This package include a terminal version (ttink) and a graphical user interface mtink, which require the X11 system and the openMotif or Lesstif package.

Only USB printers are supported.

libusb

The version used was 0.1.8. The file darwin.c contain a little error which was fixed by the libusb maintainer into the CVS tree.

Please download the regular version and modify the file darwin.c as follow:

replace the line 810:

bzero(&urequest, sizeof(IOUSBDevRequestTO));


with:
#if !defined (LIBUSB_NO_TIMEOUT_DEVICE) bzero(&urequest, sizeof(IOUSBDevRequestTO)); #else
bzero(&urequest, sizeof(IOUSBDevRequest)); #endif

Call then
./configure
make
sudo make install

The libusb will be installed under /usr/local/lib, the include files under /usr/local/include

Lesstif / OpenMotif:

If X11 is not installed you can download the fink package and install it (http://www.fink.org).

Concerning openMotif / Lesstif you may download openMotif from http://www.ist.co.uk/DOWNLOADS/motif_download.html or install Lesstif from the finkCommander.

The Installation of one of the component will not be difficult.
OpenMotif is delivered as *.dmg file and contain a *.pkg file which do all necessary works if clicked.

The finkCommander allow to select the wanted components (look for file containing the string lesstif) and tell the finkCommander to install them if necessary.

Mtink/Ttink Configuration:

call "./Configure -x -p /usr"

This will generate the Makefile necessary for compiling the terminal application ttink.

or "./Configure -p /usr"

The second command will generate the Makefile for producing of the terminal based ttink as well as the GUI program mtink.

If openMotif or Lesstif is installed ./Configure shall no complain and produce the wanted Makefile.

If lessTif an openMotif are not installed please download You will be advertized.

Compilation

if all was ok call "make"
Installation

if all was ok call "sudo make install"

After this step you can call ttink from a terminal. or launch mtink which is located under /usr/bin. The best way to lauch mtink will probably to insert it into the X11 Applications menu.

I don't own an Apple computer, so I am not able to perform all needed tests. Most tests I have done was made via a remote terminal connection to an Apple computer and simulation under Linux on a PC.

Environment

The Apple I had was not OK concerning the language to use for the programs. I solved the problems as follow: create the file /Users/<yourLogin>/.bashrc and insert the
line
export LANG=de_DE.UTF-8 finally Save the file. At the next login the enironment LANG will be set correctly. The example above is for german. The supported languages are Italian (it_IT.UTF-8), english, not need to do anythings, French (fr_FR.UTF-8), Hungarian (hu_HU.UTF-8), turkish (tr_TR.UTF8), danish (da_DA.UTF8),... . If your preferred language is not known by ttink/mtink, the tools default to english.

Jean-Jacques Sarton
jj.sarton@t-online.de
http://xwtools.automatix.de


Other Sites

Discussion Groups
  Beginners
  Distributions
  Networking / Security
  Software
  PDAs

About | FAQ | Privacy | Awards | Contact
Comments to the webmaster are welcome.
Copyright 2006 Sourcefiles.org All rights reserved.