Motif library 'lXm'

This forum is read only. No new submissions are accepted.

Questions about motif? Contact us

11 posts / 0 new
Last post
Motif library 'lXm'

Submitted by shekharn on Mon, 02/05/2007 - 09:10. General Questions
hey pals.

i am trying to install a alliance-5.0 EDA tool on fedora core 6 , linux.

i could easily extract zipped files but while configuring it, by the command :
./configure
it shows the following error :

checking xpm.h usability... no
checking xpm.h presence... no
checking for xpm.h... no
checking for XpSelectInput in -lXp... no
checking for XmCreateOptionMenu in -lXm... no
checking for xmUseVersion in -lXm... no
checking for XmInstallImage in -lXm... no
checking for Xm21InstallImage in -lXm... no
configure: error: The Motif library '-lXm' could not be found.
Please use the configure options '--with-motif-includes=DIR'
and '--with-motif-libraries=DIR' to specify the Xm location.
See the files 'config.log'
for further diagnostics.

can anyone please help me to sort it out.

thanks.

 

 

It looks like you did not install motif development package.
Just to be on the safe side, install OpenMotif, not lessTif if you have a choice. I think Fedora does not ship OpenMotif any more due to licensing facism.
If you have too much trouble finding OpenMotif for Fedora, try Novel Suse Linux which includes proper version of Motif.

 

 

 

 

hey..

i could configure it using lesstif instead of motif and install the alliance software further.

but the fact that whenever i run a tool which involves graphics .i.e xpat, graal, etc, it shows an error :

Warning: Cannot convert string "-*-helvetica-bold-r-*--14-*" to type FontStruct
Warning: Cannot convert string "-*-helvetica-medium-r-*--12-*" to type FontStruct
Warning: XmFontListCreate() is an obsolete function!

Warning: XmFontListAdd() is an obsolete function!

Segmentation fault

i could guess that this warning is due to limited no. of Xm functions in libXm.so.2 , which is actually a motif library.

does anyone knows how to fix it ? i ll be really thankful.

and thanks peter for replying.
cheers!!

 

 

You need to install more fonts on your system.
Some newer version of Linux only install vector fonts by default.
Helvetica font should in every standard X11 installation, but you can not rely on anything on Linux.
Just look for fonts on your installation CD and install some more.
Note that these are old bitmap fonts, (75 dpi or 100 dpi, not TTF).

As for the warning, it just shows that software is old, but it should work
anyway. But if it does not find fonts the expected fonts, it might misbehave and crash. Or maybe the reason for crash has nothing to do with fonts.
You would need to run it in debugger to find that out.

 

 

hey..

I am not able to remove those warnings, though i 've all the fonts types, resulting i am not able to run the graphics viewer on Alliance software.

What exactly is meant by Segmentation Fault. ?

Is this problem occuring since i installed lesstif instead of motif ?

Your views are welcomed.

Shekhar

 

 

1. The font types have nothing to do with anything. The warning says that *String* cannot be converted to FontStruct. That means it is coming from a resource, and that also means that a default font (usually `fixed') will be substituted. The probability of any well designed application crashing due to missing fonts is remote.

2. The XmFontListAdd/Create warnings are more serious. It either means that the application is trying to dynamically allocate fonts (i.e. not via X resources), or some toolkit is doing it. This probably *can* crash the application. However, diagnosing this is beyond your capability.

3. MOST probably, this is due to intermixing lesstif into this. If you can, install OpenMotif 2.2.3, build Alliance with it, and then report any possible problems. Remember, this is the *Motif*Zone, not *Lesstif*Zone. If you have problems with Lesstif, you may need to go to the Lesstif folks.

4. In your case, libXm.so.2 is the Lesstif library, not the Motif library.

5. Segmentation Fault? It is when an application tries to access areas of RAM belonging to other applications, when the OS closes the offending application. It is called an Access Violation in Windows. Look for more on Wikipedia.

6. BOTTOM LINE: UNLESS YOU DO IT WITH OPENMOTIF, WE CAN'T HELP YOU.

dpeterc

It looks like you did not install motif development package.
Just to be on the safe side, install OpenMotif, not lessTif if you have a choice. I think Fedora does not ship OpenMotif any more due to licensing facism.
If you have too much trouble finding OpenMotif for Fedora, try Novel Suse Linux which includes proper version of Motif.

shekharn

hey..

i could configure it using lesstif instead of motif and install the alliance software further.

but the fact that whenever i run a tool which involves graphics .i.e xpat, graal, etc, it shows an error :

Warning: Cannot convert string "-*-helvetica-bold-r-*--14-*" to type FontStruct
Warning: Cannot convert string "-*-helvetica-medium-r-*--12-*" to type FontStruct
Warning: XmFontListCreate() is an obsolete function!

Warning: XmFontListAdd() is an obsolete function!

Segmentation fault
i could guess that this warning is due to limited no. of Xm functions in libXm.so.2 , which is actually a motif library.

does anyone knows how to fix it ? i ll be really thankful.

and thanks peter for replying.
cheers!!

dpeterc

You need to install more fonts on your system.
Some newer version of Linux only install vector fonts by default.
Helvetica font should in every standard X11 installation, but you can not rely on anything on Linux.
Just look for fonts on your installation CD and install some more.
Note that these are old bitmap fonts, (75 dpi or 100 dpi, not TTF).

As for the warning, it just shows that software is old, but it should work
anyway. But if it does not find fonts the expected fonts, it might misbehave and crash. Or maybe the reason for crash has nothing to do with fonts.
You would need to run it in debugger to find that out.

shekharn

hey..

I am not able to remove those warnings, though i 've all the fonts types, resulting i am not able to run the graphics viewer on Alliance software.

What exactly is meant by Segmentation Fault. ?

Is this problem occuring since i installed lesstif instead of motif ?

Your views are welcomed.

Shekhar

drjones

1. The font types have nothing to do with anything. The warning says that *String* cannot be converted to FontStruct. That means it is coming from a resource, and that also means that a default font (usually `fixed') will be substituted. The probability of any well designed application crashing due to missing fonts is remote.

2. The XmFontListAdd/Create warnings are more serious. It either means that the application is trying to dynamically allocate fonts (i.e. not via X resources), or some toolkit is doing it. This probably *can* crash the application. However, diagnosing this is beyond your capability.

3. MOST probably, this is due to intermixing lesstif into this. If you can, install OpenMotif 2.2.3, build Alliance with it, and then report any possible problems. Remember, this is the *Motif*Zone, not *Lesstif*Zone. If you have problems with Lesstif, you may need to go to the Lesstif folks.

4. In your case, libXm.so.2 is the Lesstif library, not the Motif library.

5. Segmentation Fault? It is when an application tries to access areas of RAM belonging to other applications, when the OS closes the offending application. It is called an Access Violation in Windows. Look for more on Wikipedia.

6. BOTTOM LINE: UNLESS YOU DO IT WITH OPENMOTIF, WE CAN'T HELP YOU.