XMotif
I have posted this in the programming forum also, as I am in desperate need of a solution!
I am trying to install a piece of software called MaRS (Maryland Routing Simulator) which uses XMotif. My distro is Mandrake 9.1 which I installed using the default hdd setup. When I try and install MaRS I get an error refering to the location of Xm.h I found a post on this site that this file is not including in mandrake 9 so you have to download it. I did from ftp://openmotif.opengroup.org/pub/o...f/R2.1.30/tars/ I am now trying to install it. The instructions for doing so are as follows: "The distribution consists of a single gzip'd tar file. This file contains the source code, test code, and documentation of Motif. To unpack the distribution, create a directory to hold all of the sources and untar everything into that directory: % mkdir $MOTIFSOURCEDIR % cd $MOTIFSOURCEDIR and then either % tar zxf tar-file-name or % gzip -dc tar-file-name| tar xf - where $MOTIFSOURCEDIR designates the master source directory. If you unpack the distribution, you will have the following subdirectory under $MOTIFSOURCEDIR: motif Note that directory permissions stored in the tar file are generally set world writable. Make sure your umask is set the way you want before unpacking the distribution. Disk Space Requirements Approximately 70MB of disk space are required to unpack the Motif distribution. Disk usage is as follows (all amounts are in MB): motif 19 motif/tests 39 motif/doc 13 Building Motif This section provides a generic description of the build process for Motif. Motif has been built on the following platforms: Digital AlphaStation 200 Digital UNIX V4.0 Fujitsu DS/90 7000 UXP/DS V20L10 HP HP9000/7xx HP-UX 10.20 IBM RS/6000 AIX 4.2 Novell Intel 486/Pentium UnixWare 2.02 SGI Indigo 2 Irix 6.2 Sun SPARCstation Solaris 2.4 Linux Intel Redhat6.0/6.1 To build Motif, you must have an ANSI C compiler installed on your system and available in your $PATH. You should not have /usr/ucb in your $PATH, or the build is likely to fail. If you expect to build the distribution on more than one machine using a shared source tree, or you just want to keep the binaries out of the source tree, you may want to use the X11 program lndir to create a symbolic link tree on each build machine. The links require additional disk space but take less disk space than multiple copies of the source tree. Create a build directory that is not a subdirectory of the Motif master source directory, for example: % mkdir $MOTIFBUILDDIR Create a symbolic link tree using the following command: % lndir $MOTIFSOURCEDIR $MOTIFBUILDDIR where $MOTIFSOURCEDIR is the Motif master source directory. Note that the directory containing the lndir program must be in your $PATH. Note that the builds described below must be done in the order given: Building Motif 1. Customize $MOTIFBUILDDIR/motif/config/cf/site.def to reflect local preferences for install locations, compilers, paths, etc. Note that the default install location is /usr/dt, and is probably not the one you want. You should change it to where you want Motif to be installed, probably /usr. 2. If you are building with imports (the default setup in site.def), construct the necessary links as follows: % cd $MOTIFBUILDDIR/motif % mkdir -p imports/x11 % cd imports/x11 % ln -s <X11_bin_directory> bin % ln -s <X11_includes_directory> include % ln -s <X11_libs_directory> lib 3. Set your current directory as follows: % cd $MOTIFBUILDDIR/motif 4. See if there is a BootstrapCFlags mentioned in the comments in the <vendor>.cf file. This file is in the directory $MOTIFBUILDDIR/motif/config/cf. If there isn't a definition for BootstrapCFlags, type: % make World >& world.log If there is a BootstrapCFlags definition, take its value and type: % make World BOOTSTRAPCFLAGS="value" >& world.log Installing Motif Before installing Motif, check to see if you already have an installed version of Motif. If so and you want a completely new installation (which is recommended), then rename it or back it up and then remove it. Installing Motif To install motif do the following as root: % cd $MOTIFBUILDDIR/motif % make install >& install.log " when I try this step: % lndir $MOTIFSOURCEDIR $MOTIFBUILDDIR I get an saying motifsourcedir:no such directory or file I get the same for this: % cd $MOTIFBUILDDIR/motif % mkdir -p imports/x11 % cd imports/x11 % ln -s <X11_bin_directory> bin % ln -s <X11_includes_directory> include % ln -s <X11_libs_directory> lib X11_bin_directory:No such file or directory. I am a linux newbie, but I have read the man page for ln and I understand its trying to make a symbolic link between the two things. However I dont understand where I'm supposed to be linking to. The whole file can be found at: ftp://openmotif.opengroup.org/pub/o...0/tars/RELNOTES could someone please help with the installation of this so I can get on with installing MaRS and work on my project, which is due soon. Much Thanks |
try using lesstif instead. it shouldn't notice the difference. that will be on your cd's.
|
Chris, Lesstif only has limited compatibility with
Motif 2 ... Quote:
echo $MOTIFSOURCEDIR say? In all your copy & paste work I saw no instructions on what the variables are supposed to be set to... What shell are you using? Cheers, Tink |
All times are GMT -5. The time now is 01:23 PM. |