Compiling NVIZ2.2

Hi everybody
After compiling grass5.0beta3 on SuSE 6.0 and Linux 2.2.9, I tried to compile
NVIZ2.2.
It stopped with the following error:

In file included from togl.h:19,
                 from tkAppInit.c:8:
tkInt.h:800: parse error before `Tcl_Obj'
tkAppInit.c: In function `Tcl_AppInit':
tkAppInit.c:73: `Tk_SafeInit' undeclared (first use in this function)tkAppInit.c:73: (Each undeclared identifier is reported only once
tkAppInit.c:73: for each function it appears in.)
make[1]: *** [OBJ.i686-linux-elf/tkAppInit.o] Error 1
make[1]: Leaving directory `/usr/src/grass5.0beta/src.contrib/GMSL/NVIZ2.2/src'
make: *** [nvwish] Error 2

It doesn't make sense to me, but because there is something with Tcl/tk in the
Error Message, I installed a newer version of Tcl/Tk. I had version 8.04 and
now I have 8.05 but compiling is still not working.

Kurt Gerber

Hello Kurt !

I had the same problem when compiling Nviz on Suse. "Tk_SafeInit" is
declared in tk8.0.h, but after installing the tcl/tk-Stuff with Suse, you
still have "old" tk.h and tcl.h (version 7.x). I symlinked the "new"
tk8.0.h to tk.h and backuped the "old" tk.h !

This worked for me! Perhaps it can help to fix your probelm !

Cheers, Michael

==============================================================
Michael Schulz

Christoph-Mang-Str.5 Geologisches Institut
79100 Freiburg Universitaet Freiburg
                           Albertstr. 23b
                           79104 Freiburg

On Thu, 30 Sep 1999, Kurt Gerber wrote:

Hi everybody
After compiling grass5.0beta3 on SuSE 6.0 and Linux 2.2.9, I tried to compile
NVIZ2.2.
It stopped with the following error:

In file included from togl.h:19,
                 from tkAppInit.c:8:
tkInt.h:800: parse error before `Tcl_Obj'
tkAppInit.c: In function `Tcl_AppInit':
tkAppInit.c:73: `Tk_SafeInit' undeclared (first use in this function)tkAppInit.c:73: (Each undeclared identifier is reported only once
tkAppInit.c:73: for each function it appears in.)
make[1]: *** [OBJ.i686-linux-elf/tkAppInit.o] Error 1
make[1]: Leaving directory `/usr/src/grass5.0beta/src.contrib/GMSL/NVIZ2.2/src'
make: *** [nvwish] Error 2

It doesn't make sense to me, but because there is something with Tcl/tk in the
Error Message, I installed a newer version of Tcl/Tk. I had version 8.04 and
now I have 8.05 but compiling is still not working.

Kurt Gerber

Hi
I tried with your suggestion. I symlinked tk8.0.h with tk.h. But it didn't
work.

I've got the following error message:

5.0beta/src/include -c tkAppInit.c
In file included from tkAppInit.c:7:
/usr/X11R6/include/tk.h:1275: parse error before `Tcl_Obj'
/usr/X11R6/include/tk.h:1468: parse error before `Tcl_Obj'
/usr/X11R6/include/tk.h:1495: parse error before `Tcl_Obj'
/usr/X11R6/include/tk.h:1542: parse error before `Tcl_Obj'
/usr/X11R6/include/tk.h:1551: parse error before `Tcl_Obj'
In file included from togl.h:19,
                 from tkAppInit.c:8:
tkInt.h:800: parse error before `Tcl_Obj'
make[1]: *** [OBJ.i686-linux-elf/tkAppInit.o] Error 1
make[1]: Leaving directory `/usr/src/grass5.0beta/src.contrib/GMSL/NVIZ2.2/src'
make: *** [nvwish] Error 2

Cheers, Kurt

On Fri, 01 Oct 1999, Michael Schulz wrote:

Hello Kurt !

I had the same problem when compiling Nviz on Suse. "Tk_SafeInit" is
declared in tk8.0.h, but after installing the tcl/tk-Stuff with Suse, you
still have "old" tk.h and tcl.h (version 7.x). I symlinked the "new"
tk8.0.h to tk.h and backuped the "old" tk.h !

This worked for me! Perhaps it can help to fix your probelm !

Cheers, Michael

==============================================================
Michael Schulz

Christoph-Mang-Str.5 Geologisches Institut
79100 Freiburg Universitaet Freiburg
                          Albertstr. 23b
                          79104 Freiburg

On Thu, 30 Sep 1999, Kurt Gerber wrote:

Hi everybody
After compiling grass5.0beta3 on SuSE 6.0 and Linux 2.2.9, I tried to compile
NVIZ2.2.
It stopped with the following error:

In file included from togl.h:19,
                 from tkAppInit.c:8:
tkInt.h:800: parse error before `Tcl_Obj'
tkAppInit.c: In function `Tcl_AppInit':
tkAppInit.c:73: `Tk_SafeInit' undeclared (first use in this function)tkAppInit.c:73: (Each undeclared identifier is reported only once
tkAppInit.c:73: for each function it appears in.)
make[1]: *** [OBJ.i686-linux-elf/tkAppInit.o] Error 1
make[1]: Leaving directory `/usr/src/grass5.0beta/src.contrib/GMSL/NVIZ2.2/src'
make: *** [nvwish] Error 2

It doesn't make sense to me, but because there is something with Tcl/tk in the
Error Message, I installed a newer version of Tcl/Tk. I had version 8.04 and
now I have 8.05 but compiling is still not working.

Kurt Gerber

Hi Kurt !

Right now i am not at the computer where i installed nviz. But you are
right: i forgot to say, that i added (now i am not sure, where) a
include<tk.h> somewhere. I suppose it was in tkAppInit.c (not sure).

I will write you again when i have looked it up at work.

Cheers, Michael

==============================================================
Michael Schulz

Christoph-Mang-Str.5 Geologisches Institut
79100 Freiburg Universitaet Freiburg
                           Albertstr. 23b
                           79104 Freiburg

On Fri, 1 Oct 1999, Kurt Gerber wrote:

Hi
I tried with your suggestion. I symlinked tk8.0.h with tk.h. But it didn't
work.

I've got the following error message:

5.0beta/src/include -c tkAppInit.c
In file included from tkAppInit.c:7:
/usr/X11R6/include/tk.h:1275: parse error before `Tcl_Obj'
/usr/X11R6/include/tk.h:1468: parse error before `Tcl_Obj'
/usr/X11R6/include/tk.h:1495: parse error before `Tcl_Obj'
/usr/X11R6/include/tk.h:1542: parse error before `Tcl_Obj'
/usr/X11R6/include/tk.h:1551: parse error before `Tcl_Obj'
In file included from togl.h:19,
                 from tkAppInit.c:8:
tkInt.h:800: parse error before `Tcl_Obj'
make[1]: *** [OBJ.i686-linux-elf/tkAppInit.o] Error 1
make[1]: Leaving directory `/usr/src/grass5.0beta/src.contrib/GMSL/NVIZ2.2/src'
make: *** [nvwish] Error 2

Cheers, Kurt

On Fri, 01 Oct 1999, Michael Schulz wrote:
>Hello Kurt !
>
>I had the same problem when compiling Nviz on Suse. "Tk_SafeInit" is
>declared in tk8.0.h, but after installing the tcl/tk-Stuff with Suse, you
>still have "old" tk.h and tcl.h (version 7.x). I symlinked the "new"
>tk8.0.h to tk.h and backuped the "old" tk.h !
>
>This worked for me! Perhaps it can help to fix your probelm !
>
>Cheers, Michael
>
>
>==============================================================
>Michael Schulz
>
>Christoph-Mang-Str.5 Geologisches Institut
>79100 Freiburg Universitaet Freiburg
> Albertstr. 23b
> 79104 Freiburg
>
>
>On Thu, 30 Sep 1999, Kurt Gerber wrote:
>
>> Hi everybody
>> After compiling grass5.0beta3 on SuSE 6.0 and Linux 2.2.9, I tried to compile
>> NVIZ2.2.
>> It stopped with the following error:
>>
>> In file included from togl.h:19,
>> from tkAppInit.c:8:
>> tkInt.h:800: parse error before `Tcl_Obj'
>> tkAppInit.c: In function `Tcl_AppInit':
>> tkAppInit.c:73: `Tk_SafeInit' undeclared (first use in this function)tkAppInit.c:73: (Each undeclared identifier is reported only once
>> tkAppInit.c:73: for each function it appears in.)
>> make[1]: *** [OBJ.i686-linux-elf/tkAppInit.o] Error 1
>> make[1]: Leaving directory `/usr/src/grass5.0beta/src.contrib/GMSL/NVIZ2.2/src'
>> make: *** [nvwish] Error 2
>>
>> It doesn't make sense to me, but because there is something with Tcl/tk in the
>> Error Message, I installed a newer version of Tcl/Tk. I had version 8.04 and
>> now I have 8.05 but compiling is still not working.
>>
>> Kurt Gerber
>>

Hi Michael
The Problem is solved! I compiled Nviz2.2 successfully. The Problem was: I
symlinked only tk.h, but of course I had to do the same thing with tcl.h.

Thanks for your help!
Kurt

On Sat, 02 Oct 1999, you wrote:

Hi Kurt !

Right now i am not at the computer where i installed nviz. But you are
right: i forgot to say, that i added (now i am not sure, where) a
include<tk.h> somewhere. I suppose it was in tkAppInit.c (not sure).

I will write you again when i have looked it up at work.

Cheers, Michael

==============================================================
Michael Schulz

Christoph-Mang-Str.5 Geologisches Institut
79100 Freiburg Universitaet Freiburg
                          Albertstr. 23b
                          79104 Freiburg

On Fri, 1 Oct 1999, Kurt Gerber wrote:

Hi
I tried with your suggestion. I symlinked tk8.0.h with tk.h. But it didn't
work.

I've got the following error message:

5.0beta/src/include -c tkAppInit.c
In file included from tkAppInit.c:7:
/usr/X11R6/include/tk.h:1275: parse error before `Tcl_Obj'
/usr/X11R6/include/tk.h:1468: parse error before `Tcl_Obj'
/usr/X11R6/include/tk.h:1495: parse error before `Tcl_Obj'
/usr/X11R6/include/tk.h:1542: parse error before `Tcl_Obj'
/usr/X11R6/include/tk.h:1551: parse error before `Tcl_Obj'
In file included from togl.h:19,
                 from tkAppInit.c:8:
tkInt.h:800: parse error before `Tcl_Obj'
make[1]: *** [OBJ.i686-linux-elf/tkAppInit.o] Error 1
make[1]: Leaving directory `/usr/src/grass5.0beta/src.contrib/GMSL/NVIZ2.2/src'
make: *** [nvwish] Error 2

Cheers, Kurt

On Fri, 01 Oct 1999, Michael Schulz wrote:
>Hello Kurt !
>
>I had the same problem when compiling Nviz on Suse. "Tk_SafeInit" is
>declared in tk8.0.h, but after installing the tcl/tk-Stuff with Suse, you
>still have "old" tk.h and tcl.h (version 7.x). I symlinked the "new"
>tk8.0.h to tk.h and backuped the "old" tk.h !
>
>This worked for me! Perhaps it can help to fix your probelm !
>
>Cheers, Michael
>
>
>==============================================================
>Michael Schulz
>
>Christoph-Mang-Str.5 Geologisches Institut
>79100 Freiburg Universitaet Freiburg
> Albertstr. 23b
> 79104 Freiburg
>
>
>On Thu, 30 Sep 1999, Kurt Gerber wrote:
>
>> Hi everybody
>> After compiling grass5.0beta3 on SuSE 6.0 and Linux 2.2.9, I tried to compile
>> NVIZ2.2.
>> It stopped with the following error:
>>
>> In file included from togl.h:19,
>> from tkAppInit.c:8:
>> tkInt.h:800: parse error before `Tcl_Obj'
>> tkAppInit.c: In function `Tcl_AppInit':
>> tkAppInit.c:73: `Tk_SafeInit' undeclared (first use in this function)tkAppInit.c:73: (Each undeclared identifier is reported only once
>> tkAppInit.c:73: for each function it appears in.)
>> make[1]: *** [OBJ.i686-linux-elf/tkAppInit.o] Error 1
>> make[1]: Leaving directory `/usr/src/grass5.0beta/src.contrib/GMSL/NVIZ2.2/src'
>> make: *** [nvwish] Error 2
>>
>> It doesn't make sense to me, but because there is something with Tcl/tk in the
>> Error Message, I installed a newer version of Tcl/Tk. I had version 8.04 and
>> now I have 8.05 but compiling is still not working.
>>
>> Kurt Gerber
>>