info-inventor-dev
[Top] [All Lists]

Open Inventor with openmotif

To: info-inventor-dev@xxxxxxxxxxx
Subject: Open Inventor with openmotif
From: Dennis Mikkelson <dennis@xxxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 16 Sep 2000 02:23:08 -0500
Cc: dennis@xxxxxxxxxxxxxxxxxxxxxx
Sender: owner-info-inventor-dev@xxxxxxxxxxx
Hi,

I was having trouble building Open Inventor using the OpenMotif 2.1.30 rpms
from Metrolink on a RedHat 6.2 Linux system.  In particular ivview would
seg fault immediately.  I tracked the problem to a call to
XmCreatePulldownMenu that passed NULL in for the second parameter,
the name string.  Replacing:

  XmCreatePulldownMenu(menuWidget, NULL, popupargs, popupn);

with

  XmCreatePulldownMenu(menuWidget, "", popupargs, popupn);

fixed the problem.  This problem had been fixed at a few other places
in the source tree.  Searching for occurrences of XmCreate* showed that
the second parameter was still passed as NULL in a few statements in the
files:

./apps/demos/SceneViewer/SoSceneViewer.c++
./apps/demos/noodle/Interface.c++
./apps/demos/textomatic/TextGraph.c++
./apps/samples/widgets/MyColEd.c++
./apps/samples/widgets/MyMtlPal.c++
./apps/samples/widgets/MyTextureEd.c++
./apps/tools/ivview/ivview.c++
./libSoXt/src/mixedMode/SoXtColEd.c++
./libSoXt/src/viewers/SoXtBitmapButton.c++

After changing the NULL to "", in these calls to XmCreate*, the code built
using OpenMotif 2.1.30 was much more functional.  If passing an empty string
instead of NULL does not cause problems with other systems, perhaps this
change could be made to the CVS sources.

  I am still working on one remaining problem.  The Material Editor
"works" (as in the example 16.3.AttachEditor from The Inventor Mentor)
but the sliders are not drawn properly.  The top slider is ok and all
of the digital displays are ok, but the other sliders are not drawn.
They are either blank, or just have a snapshot of the pixels that were
under that portion of the editor window when it was constructed.
Similarly, the Material Diffuse Color editor "works" but the widgets
are not drawn properly.  The code in ./apps/samples/widgets does not
compile cleanly, but gives an undefined reference to
glwMDrawingAreaWidgetClass.

  I also tried building using lesstif, as an experiment, with partial success.
However, I need to use OpenMotif for some other applications.  Since installing
the lesstif rpms overwrites /usr/X11R6/lib/libXm and related files, it's not
convenient to have both lesstif and OpenMotif on the system.  Also, the
material and color editors didn't work properly with lesstif either. Does
anyone have any suggestions?

Thanks
Dennis

--
Dennis Mikkelson
dennis@xxxxxxxxxxxxxxxxxxxxxx

<Prev in Thread] Current Thread [Next in Thread>