Menu

compile problem

Help
geohex
2005-02-19
2013-04-22
  • geohex

    geohex - 2005-02-19

    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

     
    • Dragan Tubic

      Dragan Tubic - 2005-02-28

      Just add

      #ifdef CurrentTime
      #undef CurrentTime
      #endif

      at the end of the OctavizCommon.h file.

      Cheers,

      Dragan

       
    • Chuck

      Chuck - 2005-03-02

      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

       
    • Chuck

      Chuck - 2005-03-03

      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

       
    • Chuck

      Chuck - 2005-03-03

      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

       
    • Chuck

      Chuck - 2005-03-05

      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

       
    • geohex

      geohex - 2005-03-06

      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

       
    • alex

      alex - 2005-03-06

      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

       
    • Dragan Tubic

      Dragan Tubic - 2005-03-08

      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

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.