Operating System - HP-UX
1836380 Members
2396 Online
110100 Solutions
New Discussion

Motif 2.1: Where is Imakefile?

 
Gus Larsson
Advisor

Motif 2.1: Where is Imakefile?

Hello all,

I hope this is not too silly a question, but I was trying to follow some instructions from the Motif Widget Writer's Guide and ran into difficulty. In the part in Chaper 13 that discusses "Building a WMD File from your WML File", it says I should be able to find an Imakefile in demos/lib/Exm/wml. First of all, it looks like "Exm/wml" is actually installed in "/usr/contrib/Xm2.1/lib/". Secondly, and this is my real issue, there is no Imakefile under the Xm2.1 tree.

I have the "HP-UX Developer's Toolkit - X11, Motif and Imake" installed on this machine, and the Motif version is 2.1.

So, does anybody know how I can generate this Imakefile? I tried just typing "xmkmf", but that came back with "No such file or directory; No description file".

Thanks for any help,
Gus
4 REPLIES 4
H.Merijn Brand (procura
Honored Contributor

Re: Motif 2.1: Where is Imakefile?

short answer : /opt/imake/bin/xmkmf


longer answer:

a5:/u/usr/merijn 102 > swlist -l file X11MotifDevKit.IMAKE
# Initializing...
# Contacting target "a5"...
#
# Target: a5:/
#

# X11MotifDevKit.IMAKE B.11.00.03 Imake Development Environment
/
/opt
/opt/imake
/opt/imake/bin
/opt/imake/bin/bsdinst
/opt/imake/bin/imake
/opt/imake/bin/install
/opt/imake/bin/makedepend
/opt/imake/bin/mkdirhier
/opt/imake/bin/xmkmf
/opt/imake/config
/opt/imake/config/Imake.cf
/opt/imake/config/Imake.rules
/opt/imake/config/Imake.tmpl
/opt/imake/config/Library.tmpl
/opt/imake/config/Motif.rules
/opt/imake/config/Motif.tmpl
/opt/imake/config/Project.tmpl
/opt/imake/config/Server.tmpl
/opt/imake/config/hp.cf
/opt/imake/config/hpLib.rules
/opt/imake/config/hpLib.tmpl
/opt/imake/config/noop.rules
/opt/imake/config/site.def
/opt/imake/man
/opt/imake/man/man1.Z
/opt/imake/man/man1.Z/imake.1
/opt/imake/man/man1.Z/makedepend.1
/opt/imake/man/man1.Z/mkdirhier.1
/opt/imake/man/man1.Z/xmkmf.1
/usr
/usr/lib
/usr/lib/X11
/usr/lib/X11/config
a5:/u/usr/merijn 103 >

So, do you have /opt/imake/bin in your $PATH?

Enjoy, have FUN!
Enjoy, Have FUN! H.Merijn
Gus Larsson
Advisor

Re: Motif 2.1: Where is Imakefile?

Yes, /opt/imake/bin is in my path. What I meant to say when I said I ran "xmkmf" was that this was returned:

MyHP:/home/gus/myuil/Exm/wml> xmkmf
imake -DUseInstalled -I/usr/lib/X11/config
imake: No such file or directory: No description file. Stop.


Any help is appreciated.
Gus
H.Merijn Brand (procura
Honored Contributor

Re: Motif 2.1: Where is Imakefile?

xmkmf builds a Mekefile out of an Imakefile

personally I hate this process, because it generates unmaintainable Makefile's. I know you are not to maintain the makefile, but the Imakefile, but I also don't like that syntax.

xmkmf reads the Imakefile, and generates a Makefile. You will have to make the Imakefile yourself I think.

man xmkmf sais I'm correct:

NAME
xmkmf ? create a Makefile from an Imakefile

SYNOPSIS
xmkmf [ ?a ] [ topdir [ curdir ] ]

DESCRIPTION
The xmkmf command is the normal way to create a Makefile from an
Imakefile shipped with third?party software.


So I guess you don't have an Imakefile. That will give this error:

a5:/tmp 103 > ll Imakefile
ls: Imakefile: No such file or directory
Exit 1
a5:/tmp 104 > xmkmf
imake -DUseInstalled -I/usr/lib/X11/config
imake: No such file or directory: No description file. Stop.
Exit 1
a5:/tmp 105 >

Enjoy, have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Gus Larsson
Advisor

Re: Motif 2.1: Where is Imakefile?

OK, I think I'm going in the wrong direction. What it all boils down to is this:

Can a Motif 2.1 WMD file be created from an existing WML file using just the tools, libraries & includes that are in the "HP-UX Developer's Toolkit -X11, Motif, and Imake" ?

Thanks again,
Gus