I am running octave-2.1.64 on slackware v. 10.0
I downloaded the latest vtk from the CVS and compiled vtk
When compiling octaviz I received the following error:
In file included from vtkAnimationCue.cc:5:
/usr/local/include/vtk/vtkAnimationCue.h:60 error:declaration does not declare anything
/usr/local/include/vtk/vtkAnimationCue.h:60 error: parse error before numerical constant
Any thoughts?
Sincerely
geohex
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
Thanks for the tip. It got me over one hurdle. I'm using gcc-3.41 on Mandrake 10.1 community. Just compiled octave-2.1.65. and vtk from CVS. I'm getting some warnings for #include <string> and #include <map> deprication just to let you know. But the show-stopper
for me is the following:
Building Utility vtkAssemblyNode.cc...
Parsed func New
Parsed func PrintSelf
Parsed func SetViewProp
Parsed func SetMatrix
Parsed func GetMTime
syntax error
*** SYNTAX ERROR found in parsing the header file /usr/local/include/vtk/vtkAssemblyNode.h before line 113***
make[3]: *** [vtkAssemblyNode.cc] Error 1
make[2]: *** [default_target] Error 2
make[1]: *** [default_target_Common] Error 2
make: *** [default_target] Error 2
I've looked and looked and it appears that the offendiing problem is the addition of 'const' in vtkAssemblyNode.h
Any advise would be appreciated.
Best Regards,
Chuck
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
Well I think I found the source of the problem to my last post. I can get past that error by copying vtkParse.h, vtkParse.y, vtkParse.l and vtkParse.tab.c from the VTK/Wrapping directory to the Octaviz/Wrapping directory. The lastest VTK apparently adds a VTK_LEGACY macro that the Octavize wrapper doesn't yet have. So I think that
problem is solved.
However, I'm just now getting an error in vtkIdTypeArray:
error: invalid conversion from `long int*' to `const vtkIdType*'
which looks to be another parser item.
Best Regards,
Chuck
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi again. Just to let everyone know, I applied the patches
Alex posted in another thread with Dragan, and they solved this last problem. It looks like it's working perfectly. Very cool. I'm very impressed with Octaviz. It is hands down one of the coolest scientific tools on the net.
Have Fun,
Chuck
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi, I have also downloaded the last (as of a few days) version from CVS, and everything compiles. I now get the ....wrong type arguement vtk_object, when I try to run almost any of the examples. Where are the patches Alex posted in another thread? Is this now in the CVS?
Thanks for the help
George
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am running octave-2.1.64 on slackware v. 10.0
I downloaded the latest vtk from the CVS and compiled vtk
When compiling octaviz I received the following error:
In file included from vtkAnimationCue.cc:5:
/usr/local/include/vtk/vtkAnimationCue.h:60 error:declaration does not declare anything
/usr/local/include/vtk/vtkAnimationCue.h:60 error: parse error before numerical constant
Any thoughts?
Sincerely
geohex
Just add
#ifdef CurrentTime
#undef CurrentTime
#endif
at the end of the OctavizCommon.h file.
Cheers,
Dragan
Hi,
Thanks for the tip. It got me over one hurdle. I'm using gcc-3.41 on Mandrake 10.1 community. Just compiled octave-2.1.65. and vtk from CVS. I'm getting some warnings for #include <string> and #include <map> deprication just to let you know. But the show-stopper
for me is the following:
Building Utility vtkAssemblyNode.cc...
Parsed func New
Parsed func PrintSelf
Parsed func SetViewProp
Parsed func SetMatrix
Parsed func GetMTime
syntax error
*** SYNTAX ERROR found in parsing the header file /usr/local/include/vtk/vtkAssemblyNode.h before line 113***
make[3]: *** [vtkAssemblyNode.cc] Error 1
make[2]: *** [default_target] Error 2
make[1]: *** [default_target_Common] Error 2
make: *** [default_target] Error 2
I've looked and looked and it appears that the offendiing problem is the addition of 'const' in vtkAssemblyNode.h
Any advise would be appreciated.
Best Regards,
Chuck
Hi,
Well I think I found the source of the problem to my last post. I can get past that error by copying vtkParse.h, vtkParse.y, vtkParse.l and vtkParse.tab.c from the VTK/Wrapping directory to the Octaviz/Wrapping directory. The lastest VTK apparently adds a VTK_LEGACY macro that the Octavize wrapper doesn't yet have. So I think that
problem is solved.
However, I'm just now getting an error in vtkIdTypeArray:
error: invalid conversion from `long int*' to `const vtkIdType*'
which looks to be another parser item.
Best Regards,
Chuck
Hi, well that was quick. I just downloaded the lastest CVS
and that appears to fix the compilation problems. Good.
Now the problem is Running. I'm getting the following error message consistenetly.
error: octave_base_value::uint32_scalar_value(): wrong type argument `vtk_object'.
Could this be from the vtkIdType in the vtkParse? The change from Long to Int?
Best Regards,
Chuck
Hi again. Just to let everyone know, I applied the patches
Alex posted in another thread with Dragan, and they solved this last problem. It looks like it's working perfectly. Very cool. I'm very impressed with Octaviz. It is hands down one of the coolest scientific tools on the net.
Have Fun,
Chuck
Hi, I have also downloaded the last (as of a few days) version from CVS, and everything compiles. I now get the ....wrong type arguement vtk_object, when I try to run almost any of the examples. Where are the patches Alex posted in another thread? Is this now in the CVS?
Thanks for the help
George
Hi George and Chuck,
It's nice to see that the patches were helpful!
The patches are at:
http://ocgmod1.marine.usf.edu/octaviz-0.4.0_cvs.diff
Most of the patches are relevant for 64 bit machines, but the changes should also work on 32 bit.
Alex
Hi George, Chuck & Alex,
The patch for 64bit machines that Alex posted is now in CVS (as of yesterday). "vtk_object bug" is fixed as well. Thanks again to all of you!
Cheers,
Dragan