jclinton@spss.com ("Clinton, Julian") writes:
> Date: 6 Oct 1999 13:47:09 GMT
>
> In the past I've been able to link Linux Poplog
> against LessTif, the free Motif-lookalike library.
> There were 2-3 symbols to do with obscure Text/TextField
> functions that are not supported by LessTif. The symbols
> are referred to xmTextWidget.p and xmTextFieldWidget.p in
> $usepop/pop/x/pop/lib/Xm - the lines containing the
> offending symbols needed to be commented out. Once that
> was done, it was a pretty usable system.
On the basis of that hint I've tried to get linux poplog to link with
lesstif, on a PC running RedHat 6, and it worked.
Axel Grossman provided the following information about getting LessTif
The free implementation of OSF/Motif, called LessTif is available from
http://www.lesstif.org/
and is is compatible with Motif 1.2 and Motif 2.0.
LessTif is not part of the standard RedHat 6.1 distribution, but is
available in RedHat's PowerTools 6.1. The PowerTools are available
on CD2 or can be downloaded from any ftp.redhat.com mirror, for
example,
http://www.mirror.ac.uk/sites/ftp.redhat.com/pub/redhat/powertools/6.1/i386/
You will need the following four RPM packages
lesstif-0.88.1-3.i386.rpm
lesstif-1.2-devel-0.88.1-3.i386.rpm
lesstif-clients-0.88.1-3.i386.rpm
lesstif-mwm-0.88.1-3.i386.rpm
which you need to install in this sequence, for example, on the
command line using
rpm -i lesstif-0.88.1-3.i386.rpm
rpm -i lesstif-1.2-devel-0.88.1-3.i386.rpm
rpm -i lesstif-clients-0.88.1-3.i386.rpm
rpm -i lesstif-mwm-0.88.1-3.i386.rpm
Then you can relink poplog, but to make it work you have to modify the
two pop11 files mentioned by Julian.
One line of code needs to be commented out in each file.
In this file
$usepop/pop/x/pop/lib/Xm/xmTextFieldWidget.p
Comment out this line, thus:
;;; XmTextFieldGetAddMode(widget) :XptBoolean,
In this file
$usepop/pop/x/pop/lib/Xm/xmTextWidget.p
Comment out this line, thus:
;;; XmTextGetAddMode(widget) :XptBoolean,
Then you can run newpop to do the relinking and re-installation of
Poplog saved images, etc.
$popsrc/newpop -link -x=-xm -xpw
IF YOU ARE CAUTIOUS ADD -noinstall to see if it works, i.e.
$popsrc/newpop -noinstall -link -x=-xm -xpw
That will create
$popsys/newpop11
which you can check out as follows: see if lib startup compiles.
Run this
$popsys/newpop11
Then give this command to the pop11 prompt:
lib startup
which should compile propsheet and XVed, printing out what it is doing,
in the process. If you end up with the pop-11 prompt without any error
messages, try
"x" -> vedusewindows;
then
ved testfile
That should start up XVed with a scrollbar and some menu buttons at the
top.
If all that works do a full relink and install.
You'll then have XVed with its menu buttons and scroll bars (and that
horrible motif widget that asks if you really mean to quit a file which
has been altered and not saved!! -- I must find out how to disable it so
that it behaves just like Ved, using only a query on the status line.
I'll shortly add the above information to the linux poplog tar file.
Aaron
===
--
Aaron Sloman, ( http://www.cs.bham.ac.uk/~axs/ )
School of Computer Science, The University of Birmingham, B15 2TT, UK
EMAIL A.Sloman AT cs.bham.ac.uk (NB: Anti Spam address)
PAPERS: ftp://ftp.cs.bham.ac.uk/pub/groups/cog_affect/0-INDEX.html
|