Welcome, Guest. Please Login.
OpenDX User Forum
05/21/13 at 00:13:17
News: OpenDX 4.4.4 source code now available.


Pages: 1
compile results in XmFormConstraints undeclared (Read 7153 times)
Ender
Forum Newbie
*


Got Viz?

Posts: 1
compile results in XmFormConstraints undeclared
11/29/06 at 21:53:49
 
Anyone have an idea what's going on here during this make? All I saw for prerequisites were opengl and motif which I have, and also put on lesstif. I'm doing this on a gentoo 2.6 platform. What packages am I not seeing that need to be installed?
 
Making all in base
make[3]: Entering directory `/home/ender/Tools/dx-4.4.4/src/uipp/base'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/ender/Tools/dx-4.4.4/src/uipp/base'
Making all in dxl
make[3]: Entering directory `/home/ender/Tools/dx-4.4.4/src/uipp/dxl'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/ender/Tools/dx-4.4.4/src/uipp/dxl'
Making all in widgets
make[3]: Entering directory `/home/ender/Tools/dx-4.4.4/src/uipp/widgets'
gcc -DHAVE_CONFIG_H -I. -I. -I../../../include -I../../../include -I./../widgets -Dlinux  -I/usr/include  -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -g -O2 -D_GNU_SOURCE -c WorkspaceW.c
WorkspaceW.c: In function 'SetValues':
WorkspaceW.c:1559: error: 'XmFormConstraints' undeclared (first use in this function)
WorkspaceW.c:1559: error: (Each undeclared identifier is reported only once
WorkspaceW.c:1559: error: for each function it appears in.)
WorkspaceW.c: In function 'ChangeManaged':
WorkspaceW.c:1926: error: 'XmFormConstraints' undeclared (first use in this function)
WorkspaceW.c:1928: error: 'XmFormConstraintPart' has no member named 'atta'
WorkspaceW.c:1929: error: 'XmFormConstraintPart' has no member named 'atta'
WorkspaceW.c:1930: error: 'XmFormConstraintPart' has no member named 'atta'
WorkspaceW.c:1931: error: 'XmFormConstraintPart' has no member named 'atta'
make[3]: *** [WorkspaceW.o] Error 1
make[3]: Leaving directory `/home/ender/Tools/dx-4.4.4/src/uipp/widgets'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/ender/Tools/dx-4.4.4/src/uipp'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/ender/Tools/dx-4.4.4/src'
make: *** [all-recursive] Error 1
Back to top
 
 
  IP Logged
mstock
Forum Newbie
*


Got Viz?

Posts: 8
Re: compile results in XmFormConstraints undeclare
Reply #1 - 02/15/07 at 18:25:47
 
On my FC6 installation I don't get the error: 'XmFormConstraints' undeclared problems. These are defined in my /usr/include/Xm/FormP.h file, which was provided by lesstif-devel.
 
The "atta" problem seems to arise from the following lines in src/uipp/widgets/WorkspaceW.c:
Code:
#if (OLD_LESSTIF == 1)
	     formcon->atta[0].type = XmATTACH_NONE;
	     formcon->atta[1].type = XmATTACH_NONE;
	     formcon->atta[2].type = XmATTACH_NONE;
	     formcon->atta[3].type = XmATTACH_NONE;
#else
	     formcon->att[0].type = XmATTACH_NONE;
	     formcon->att[1].type = XmATTACH_NONE;
	     formcon->att[2].type = XmATTACH_NONE;
	     formcon->att[3].type = XmATTACH_NONE;
#endif 


where my FormP.h header file defines
Code:
typedef struct _XmFormConstraintPart {
    XmFormAttachmentRec att[4]; 


 
So, clearly OpenDX is OLD_LESSTIF to true. I'm working on this.
Back to top
 
 
  IP Logged
mstock
Forum Newbie
*


Got Viz?

Posts: 8
Re: compile results in XmFormConstraints undeclare
Reply #2 - 02/15/07 at 18:28:10
 
It looks like the configure script just sets OLD_LESSTIF=1, withouth checking anything. What's the best way to fix this?
Back to top
 
 
  IP Logged
mstock
Forum Newbie
*


Got Viz?

Posts: 8
Re: compile results in XmFormConstraints undeclare
Reply #3 - 02/15/07 at 19:57:05
 
Shoot, I just changed the  
#define OLD_LESSTIF 1
line in configure to
#define OLD_LESSTIF 0
and it built completely.
Back to top
 
 
  IP Logged
claudiosoriano
Forum Newbie
*


Got Viz?

Posts: 1
Re: compile results in XmFormConstraints undeclare
Reply #4 - 05/11/07 at 10:19:36
 
Smiley Fantastic !! It works very well!!!
 
Good tip.
 
I've found this tip at google search ...
 
My problem was the same:  
 
WorkspaceW.c:1559: error: ‘XmFormConstraints’ undeclared (first use in this function)
WorkspaceW.c:1559: error: (Each undeclared identifier is reported only once
WorkspaceW.c:1559: error: for each function it appears in.)
 
and so on ...
 
But changing #if (OLD_LESSTIF == 1) to #if (OLD_LESSTIF == 0) solves completely the problem.
 
I am also working at 64 architeture ...
Cheers!!
Back to top
 
 
Email   IP Logged
Justinaschwarz
Forum Newbie
*


Got Viz?

Posts: 3
Re: compile results in XmFormConstraints undeclare
Reply #5 - 11/09/11 at 01:22:43
 
The fact that the obvious thing does not parse is a parser issue, and will be fixed.
Back to top
 
 
  IP Logged
Pages: 1