Openmotif toolkit!


 
Thread Tools Search this Thread
Top Forums Programming Openmotif toolkit!
# 1  
Old 04-19-2010
Openmotif toolkit!

I'm using ubuntu 9.10 as OS and i installed a toolkit of widgets: openmotif.
The packages are: libmotif3, libx11-dev, libxp-dev, libxt-dev, x-dev. How can I compile a program including the MOTIF toolkit?

I tried:
Code:
gcc <my_file.c> -L /usr/lib/

It doesn't work

I don't know very much the linking process of C, and I'm not an expert of GUI creared by this wonderful programming language, but i want to learn.

Someone help this poor newbie! Thanks for all answer! Smilie
# 2  
Old 04-19-2010
-L only tells it where, not what. Try -lXm
# 3  
Old 04-19-2010
Quote:
Originally Posted by mghis
It doesn't work
I wonder what does that mean? What do the error messages say?
How does your code look like?
I guess you include Xm.h and/or XmAll.h header files?
Those should be located in /usr/include/Xm
You'll want to check the Programmer's Guide too:
Open Motif - Documentation Supplement

Regards,
pc
# 4  
Old 06-18-2010
Excuse for the late answer..... Smilie

I solved! I have to add -lXm (as you said) and -lXt -lX11
I can compile the programs now.


I'm off-topic, but i did not open a new thread....

Where can I found documentation about motif? I downloaded the manuals, and i'm learning some ancients tutorial that I found; but I havn't a complete guide.

Where you learned motif? Can you suggest me a book


Thanks in advance for any reply! Smilie
# 5  
Old 06-19-2010
no.
documentation is very scarce.
kenton lee

the man pages aren't too bad.
you will need to get used to trawling through the header files too.
there are lots of typedefs.

e.g: man XtIntervalId will say:
Code:
   XtIntervalId XtAddTimeOut(unsigned long interval, XtInputCallbackProc
              proc, XtPointer client_data);

what the hell is the correct prototype for an XtInputCallbackProc? I hear you cry. So you need to
grep the header files until you find the typedef

Intrinsic.h on my BSD
Code:
typedef void (*XtInputCallbackProc)(
    XtPointer           /* closure */,
    int*                /* source */,
    XtInputId*          /* id */
);


there are some design aids for building the interface:
there is Xdesigner which used to come with the
Sun Studio, though i never got it to work on linux.
and dtcreator used to exist on solaris for
the CDE environment.
but all pretty much ignored.

I gave up on X because designing interfaces is boring without a graphical tool.
I can recommend fltk which has fluid as a lightweight X environment
for knocking up nice little apps without massive Qt GTK dependencies.
# 6  
Old 06-19-2010
Thanks! I'll try what you suggested!

Thanks again! Smilie


PS: Other suggestions are welcome!

---------- Post updated at 02:59 PM ---------- Previous update was at 02:58 PM ----------

EDIT:

What do you think about wxMotif?


THANKS!
# 7  
Old 06-21-2010
never tried wxmotif.

it looks worth a look to me though.
it makes life easier having a form designer.
it's very tedious doing it by hand.

why motif particularly?
motif is a bit of a backwater now, in this millenium.
Login or Register to Ask a Question

Previous Thread | Next Thread

5 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

help me please(HTK toolkit)

Unfortunately, I do not metrizable much English, but I have a big problem on programming using HTK, precisely because the command Hrest after having run this statement, an error appeared, the vFloors is illegible, although that it is the result of the command Hcompv. I would like to help me find:... (0 Replies)
Discussion started by: mawahib
0 Replies

2. Solaris

Jass Toolkit 4.2

I have Jass Toolkit 4.2 for Solaris 10. If I run #jass-execute -d secure.driver and then enable certain services which were disabled by jass, such as ssh, how do I incorporate those changes to jass so that when i rerun jass-execute secure-driver, it does not complain. Any suggestions please,... (1 Reply)
Discussion started by: Tirmazi
1 Replies

3. UNIX for Advanced & Expert Users

Globus Toolkit 4

Hello! I'm trying to install the Globus Toolkit 4 on a Fedora 8 system. The instructions I'm using to do so can be found here: Chapter 1. 4.0.x quickstart I'm at the Certificate Authorities point where I am supposed to sign the certificate though, and I'm having a bit of trouble that... (2 Replies)
Discussion started by: Curtor
2 Replies

4. Programming

Where can I download OpenMotif for Solaris ?

The ones on Motif Zone are for MacOS, Linux and FreeBSD only. (0 Replies)
Discussion started by: endeavour1985
0 Replies

5. UNIX for Dummies Questions & Answers

unix toolkit for VB

How can i have a VB program use Unix technology to print to a Dazzle print server? In other words I have text files that I want to use a VB program I'm writing thats on our windows 2000 nt side print and move text to our Unix server to a Unix Dazzle print server? Also do I need to download any... (13 Replies)
Discussion started by: marklane1
13 Replies
Login or Register to Ask a Question