[GRASS5] Bob Covill's NVIZ2.2

Hello,
I tried to compile Bob's version of NVIZ2.2 on a SuSE7.1/i386 box. I came with
this error message:

#################################################################
/opt/src/grass5/grass50_exp_2003_06_14/src.contrib/GMSL/NVIZ2.2/src
  make -f OBJ.i686-pc-linux-gnu/make.rules

make[1]: Entering directory
`/opt/src/grass5/grass50_exp_2003_06_14/src.contrib/GMSL/NVIZ2.2/src'
gcc -I/opt/src/grass5/grass50_exp_2003_06_14/src/include -g -O2
-I/usr/X11R6/include -I/usr/include -I/usr/include
-I/opt/src/grass5/grass50_exp_2003_06_14/src/libes/ogsf -D_NO_PROTO
-D__STDC__ -c map_obj.c -o OBJ.i686-pc-linux-gnu/map_obj.o
map_obj.c: In function `get_att':
map_obj.c:1331: `SV_ATT_FLAT' undeclared (first use in this function)
map_obj.c:1331: (Each undeclared identifier is reported only once
map_obj.c:1331: for each function it appears in.)
map_obj.c: In function `sv_att_atoi':
map_obj.c:1717: `SV_ATT_FLAT' undeclared (first use in this function)
make[1]: *** [OBJ.i686-pc-linux-gnu/map_obj.o] Error 1
make[1]: Leaving directory
`/opt/src/grass5/grass50_exp_2003_06_14/src.contrib/GMSL/NVIZ2.2/src'
make: *** [nvwish] Error 2

*************************************************
I'm obviously missing something somewhere. Would you have any idea of a fix ?
Thanks in advance.
P.

--
------------------------------
Soil and Water Laboratory
Biological and Environmental Engineering Department
Cornell University
Riley-Robb Hall
ITHACA, NY 14853 - USA

On Tue, 17 Jun 2003, Soil & Water Lab. wrote:

Hello,
I tried to compile Bob's version of NVIZ2.2 on a SuSE7.1/i386 box. I came with
this error message:

#################################################################
/opt/src/grass5/grass50_exp_2003_06_14/src.contrib/GMSL/NVIZ2.2/src
  make -f OBJ.i686-pc-linux-gnu/make.rules

make[1]: Entering directory
`/opt/src/grass5/grass50_exp_2003_06_14/src.contrib/GMSL/NVIZ2.2/src'
gcc -I/opt/src/grass5/grass50_exp_2003_06_14/src/include -g -O2
-I/usr/X11R6/include -I/usr/include -I/usr/include
-I/opt/src/grass5/grass50_exp_2003_06_14/src/libes/ogsf -D_NO_PROTO
-D__STDC__ -c map_obj.c -o OBJ.i686-pc-linux-gnu/map_obj.o
map_obj.c: In function `get_att':
map_obj.c:1331: `SV_ATT_FLAT' undeclared (first use in this function)
map_obj.c:1331: (Each undeclared identifier is reported only once
map_obj.c:1331: for each function it appears in.)

That isn't the version I sent you that you're compiling; in Bob's latest
version the first mention of SV_ATT_FLAT in map_obj.c is at line 1454:
doom 944% grep -n SV_ATT_FLAT *
interface.h:62:#define SV_ATT_FLAT -7
map_obj.c:1454: case SV_ATT_FLAT:
map_obj.c:1866: return (SV_ATT_FLAT);
doom 945%
so maybe something else has got mixed up.

I maybe should have said after backing up the existing NVIZ2.2 and ogsf
directories, to delete them (or simply move them somewhere else which
will do the two things at once), as the tar archive contains all the
files in these two directories, changed and unchanged.

Paul

Hello,

It appears that you do not have the current version of "interface.h" from "src.contrib/GMSL/NVIZ2.2/src".

It is in this file that "SV_ATT_FLAT" is defined.

If you are building from a CVS version, then I would recommend doing an update in the src/libes/ogsf and src.contrib/GMSL/NVIZ2.2 directories just to make sure you have everything up to date.

Hope this helps.

--
Bob Covill

Tekmap Consulting
P.O. Box 2016
Fall River, N.S.
B2T 1K6
Canada

E-Mail: bcovill@tekmap.ns.ca
Phone: 902-860-1496
Fax: 902-860-1498

Soil & Water Lab. wrote:

Hello,
I tried to compile Bob's version of NVIZ2.2 on a SuSE7.1/i386 box. I came with this error message:

#################################################################
/opt/src/grass5/grass50_exp_2003_06_14/src.contrib/GMSL/NVIZ2.2/src
  make -f OBJ.i686-pc-linux-gnu/make.rules

make[1]: Entering directory `/opt/src/grass5/grass50_exp_2003_06_14/src.contrib/GMSL/NVIZ2.2/src'
gcc -I/opt/src/grass5/grass50_exp_2003_06_14/src/include -g -O2 -I/usr/X11R6/include -I/usr/include -I/usr/include -I/opt/src/grass5/grass50_exp_2003_06_14/src/libes/ogsf -D_NO_PROTO -D__STDC__ -c map_obj.c -o OBJ.i686-pc-linux-gnu/map_obj.o
map_obj.c: In function `get_att':
map_obj.c:1331: `SV_ATT_FLAT' undeclared (first use in this function)
map_obj.c:1331: (Each undeclared identifier is reported only once
map_obj.c:1331: for each function it appears in.)
map_obj.c: In function `sv_att_atoi':
map_obj.c:1717: `SV_ATT_FLAT' undeclared (first use in this function)
make[1]: *** [OBJ.i686-pc-linux-gnu/map_obj.o] Error 1
make[1]: Leaving directory `/opt/src/grass5/grass50_exp_2003_06_14/src.contrib/GMSL/NVIZ2.2/src'
make: *** [nvwish] Error 2

*************************************************
I'm obviously missing something somewhere. Would you have any idea of a fix ? Thanks in advance.
P.

It appears that you do not have the current version of "interface.h"
from "src.contrib/GMSL/NVIZ2.2/src".

After correction, and taking Paul's advices into account, I managed to compile
the latest version of NVIZ2.2, which gives me some troubles, though:
The "Control" window consists only in a portion of the menu bar ("File", "an"
(for "Panel"), and "Help"). No Orientation panel. When "Surface" or any other
panel is selected, nothing is displayed.
Reversing to the grass50_exp_2003_06_14 version seems to fix the problem (viz,
the "control" window is correclty displayed)

Would you have any idea of what causes this problem ? In its current state,
nviz is unusable on my box.

Thanks a lot in advance

P.

--
------------------------------
Soil and Water Laboratory
Biological and Environmental Engineering Department
Cornell University
Riley-Robb Hall
ITHACA, NY 14853 - USA

"Soil & Water Lab." wrote:

> It appears that you do not have the current version of "interface.h"
> from "src.contrib/GMSL/NVIZ2.2/src".

After correction, and taking Paul's advices into account, I managed to compile
the latest version of NVIZ2.2, which gives me some troubles, though:
The "Control" window consists only in a portion of the menu bar ("File", "an"
(for "Panel"), and "Help"). No Orientation panel. When "Surface" or any other
panel is selected, nothing is displayed.
Reversing to the grass50_exp_2003_06_14 version seems to fix the problem (viz,
the "control" window is correclty displayed)

Would you have any idea of what causes this problem ? In its current state,
nviz is unusable on my box.

Does it look like this?
http://skagit.meas.ncsu.edu/~helena/grasswork/grassprobl/nviztop2kde.jpg
I have seen that problem under KDE. It works OK under gnome.
Do we have any KDE experts who could look into this?

Helena

Thanks a lot in advance

P.

--
------------------------------
Soil and Water Laboratory
Biological and Environmental Engineering Department
Cornell University
Riley-Robb Hall
ITHACA, NY 14853 - USA

_______________________________________________
grass5 mailing list
grass5@grass.itc.it
http://grass.itc.it/mailman/listinfo/grass5

Does it look like this?

Almost. In fact, the menu bar is truncated : the "Scripting" entry does not
appear, and the "Panel" entry becomes "an". No space between "an" and "Help"
(Please look at the .PNG I attach, it looks pretty much like that).
I have only tried with KDE: everything's fine with the CVS version, I get the
truncated bar with Bob's version.

(attachments)

nviztop2kdeX.png

On Tue, Jun 17, 2003 at 04:05:59PM -0400, Soil & Water Lab. wrote:

> Does it look like this?

Almost. In fact, the menu bar is truncated : the "Scripting" entry does not
appear, and the "Panel" entry becomes "an". No space between "an" and "Help"
(Please look at the .PNG I attach, it looks pretty much like that).
I have only tried with KDE: everything's fine with the CVS version, I get the
truncated bar with Bob's version.

For me this patch helped:

diff -u nviz2.2_script~ nviz2.2_script
--- nviz2.2_script~ Fri May 30 18:54:14 2003
+++ nviz2.2_script Fri May 30 18:57:47 2003
@@ -131,7 +131,7 @@
     toplevel .top2
     wm geometry .top2 "+400+300"
     wm minsize .top2 370 404
- wm resizable .top2 false false
+ wm resizable .top2 true true
     wm title .top2 "Controls"
     set Nv_(height) 720

then the menu works well (Redhat 7.1, KDE 2.x).

Markus