1828584 Members
2924 Online
109982 Solutions
New Discussion

Programming Motif

 

Programming Motif

Hi, recently i installed the B3394BA B.11.11.02 HP-UX Developer's Toolkit for 11.11
an d i want to develop some X programs does any body here has a tutorial to start??

thanks!!!
6 REPLIES 6
Tim Nelson
Honored Contributor

Re: Programming Motif

One place to start.

http://www.cs.cf.ac.uk/Dave/X_lecture/


googling gives you more.

Torsten.
Acclaimed Contributor

Re: Programming Motif

I did some Motif based programming abut 10 years ago and i can tell you it is much easier to use another toolkit like the X extension to perl or tcl (called tk) to do this.
Once you compare motif based C to tk you will agree.
Maybe motif based programming has changed since this time, I don't know...

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   

Re: Programming Motif

i wrote the example and compile the source, but show me this error...

# cc hello.c -o hello -lXm -lXt -lX11
(Bundled) cc: "/usr/include/X11/extensions/Print.h", line 250: error 1000: Unexpected symbol: "*".
(Bundled) cc: "/usr/include/X11/extensions/Print.h", line 252: error 1000: Unexpected symbol: "unsi
gned".
(Bundled) cc: "/usr/include/X11/extensions/Print.h", line 252: error 1616: Unable to open intrinsic
file "/usr/local/lib/sysintr".
(Bundled) cc: "/usr/include/X11/extensions/Print.h", line 253: error 1000: Unexpected symbol: "unsi
gned".
(Bundled) cc: "/usr/include/X11/extensions/Print.h", line 254: error 1000: Unexpected symbol: "clie
nt_data".
(Bundled) cc: "/usr/include/X11/extensions/Print.h", line 254: error 1584: Inconsistent type declar
ation: "XPointer".
(Bundled) cc: "/usr/include/X11/extensions/Print.h", line 254: warning 525: Redeclaration of identi
fier "XPointer".
(Bundled) cc: "/usr/include/X11/extensions/Print.h", line 256: error 1000: Unexpected symbol: "*".
...
...


Do i need to install morew packages??
James R. Ferguson
Acclaimed Contributor

Re: Programming Motif

Hi:

You don't have the Ansi C compiler; rather you have only the bundled C product. You need to license an ANSI C compiler. An evaluation copy can be obtained first if you like:

http://h20392.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=B9007AA

Otherwise, you might want to fetch a 'gcc' compiler (for free):

http://mirrors.develooper.com/hpux/

Regards!

...JRF...
dirk dierickx
Honored Contributor

Re: Programming Motif

don't waste your time on motif. it's from the stone age. gtk is included with hpux now so i highly suggest using that, at least it's a modern toolkit.

there are some tools available that can help you in building your gui, and the only thing left to do is adding code.

take a look at glade: http://glade.gnome.org/
Craig Smith_13
Frequent Advisor

Re: Programming Motif

Motif is ok, I've written serveral programs using it, but now using Qt from Trolltech (www.trolltech.com) and there is also wxWidgets (www.wxwidgets.org) with CodeBlocks IDE (www.codeblocks.org)....Have fun....