[Paraview] Compiling error with 3.8.0
Utkarsh Ayachit
utkarsh.ayachit at kitware.com
Wed Jun 2 09:53:27 EDT 2010
Did you by any chance turn the cmake variable: VTK_USE_VIEWS off? If
so, it must be ON.
Utkarsh
On Wed, Jun 2, 2010 at 5:37 AM, Fred Fred <stan1313 at hotmail.fr> wrote:
> Ok thx, this issue has been solved but now I face another one:
>
> [ 80%] Built target vtkPVFiltersPython
> [ 80%] Building CXX object
> Servers/ServerManager/CMakeFiles/vtkPVServerManager.dir/vtkSMBarChartViewProxy.cxx.o
> In file included from
> /usr/local/ParaView-3.8.0/VTK/GUISupport/Qt/vtkQtChartView.h:32,
> from
> /usr/local/ParaView-3.8.0/VTK/GUISupport/Qt/vtkQtBarChartView.h:31,
> from
> /usr/local/ParaView-3.8.0/Servers/ServerManager/vtkSMBarChartViewProxy.cxx:18:
> /usr/local/ParaView-3.8.0/VTK/GUISupport/Qt/vtkQtView.h:25:21: error:
> vtkView.h: No such file or directory
> /usr/local/ParaView-3.8.0/VTK/GUISupport/Qt/vtkQtView.h:30: error: expected
> class-name before ‘{’ token
> /usr/local/ParaView-3.8.0/VTK/GUISupport/Qt/vtkQtView.h:34: error: ‘vtkView’
> does not name a type
> /usr/local/ParaView-3.8.0/VTK/GUISupport/Qt/vtkQtView.h: In static member
> function ‘static int vtkQtView::IsTypeOf(const char*)’:
> /usr/local/ParaView-3.8.0/VTK/GUISupport/Qt/vtkQtView.h:34: error: ‘vtkView’
> has not been declared
> /usr/local/ParaView-3.8.0/VTK/GUISupport/Qt/vtkQtView.h: In static member
> function ‘static vtkQtView* vtkQtView::SafeDownCast(vtkObjectBase*)’:
> /usr/local/ParaView-3.8.0/VTK/GUISupport/Qt/vtkQtView.h:34: error: invalid
> static_cast from type ‘vtkObjectBase*’ to type ‘vtkQtView*’
> /usr/local/ParaView-3.8.0/VTK/GUISupport/Qt/vtkQtView.h: In member function
> ‘virtual vtkObjectBase* vtkQtView::NewInstanceInternal() const’:
> /usr/local/ParaView-3.8.0/VTK/GUISupport/Qt/vtkQtView.h:34: error: ‘New’ is
> not a member of ‘vtkQtView’
> /usr/local/ParaView-3.8.0/VTK/GUISupport/Qt/vtkQtChartView.h: At global
> scope:
> /usr/local/ParaView-3.8.0/VTK/GUISupport/Qt/vtkQtChartView.h:233: error: ISO
> C++ forbids declaration of ‘vtkDataRepresentation’ with no type
> /usr/local/ParaView-3.8.0/VTK/GUISupport/Qt/vtkQtChartView.h:233: error:
> ‘vtkDataRepresentation’ declared as a ‘virtual’ field
> /usr/local/ParaView-3.8.0/VTK/GUISupport/Qt/vtkQtChartView.h:233: error:
> expected ‘;’ before ‘*’ token
> /usr/local/ParaView-3.8.0/VTK/GUISupport/Qt/vtkQtChartView.h: In static
> member function ‘static vtkQtChartView*
> vtkQtChartView::SafeDownCast(vtkObjectBase*)’:
> /usr/local/ParaView-3.8.0/VTK/GUISupport/Qt/vtkQtChartView.h:51: error:
> invalid static_cast from type ‘vtkObjectBase*’ to type ‘vtkQtChartView*’
> /usr/local/ParaView-3.8.0/VTK/GUISupport/Qt/vtkQtChartView.h: In member
> function ‘virtual vtkObjectBase* vtkQtChartView::NewInstanceInternal()
> const’:
> /usr/local/ParaView-3.8.0/VTK/GUISupport/Qt/vtkQtChartView.h:51: error:
> ‘New’ is not a member of ‘vtkQtChartView’
> /usr/local/ParaView-3.8.0/VTK/GUISupport/Qt/vtkQtBarChartView.h: In static
> member function ‘static vtkQtBarChartView*
> vtkQtBarChartView::SafeDownCast(vtkObjectBase*)’:
> /usr/local/ParaView-3.8.0/VTK/GUISupport/Qt/vtkQtBarChartView.h:43: error:
> invalid static_cast from type ‘vtkObjectBase*’ to type ‘vtkQtBarChartView*’
> /usr/local/ParaView-3.8.0/VTK/GUISupport/Qt/vtkQtBarChartView.h: In member
> function ‘virtual vtkObjectBase* vtkQtBarChartView::NewInstanceInternal()
> const’:
> /usr/local/ParaView-3.8.0/VTK/GUISupport/Qt/vtkQtBarChartView.h:43: error:
> cannot convert ‘vtkQtBarChartView*’ to ‘vtkObjectBase*’ in return
> /usr/local/ParaView-3.8.0/Servers/ServerManager/vtkSMBarChartViewProxy.cxx:
> In member function ‘vtkQtBarChartView*
> vtkSMBarChartViewProxy::GetBarChartView()’:
> /usr/local/ParaView-3.8.0/Servers/ServerManager/vtkSMBarChartViewProxy.cxx:40:
> error: no matching function for call to
> ‘vtkQtBarChartView::SafeDownCast(vtkQtChartView*&)’
> /usr/local/ParaView-3.8.0/VTK/GUISupport/Qt/vtkQtBarChartView.h:43: note:
> candidates are: static vtkQtBarChartView*
> vtkQtBarChartView::SafeDownCast(vtkObjectBase*)
> make[2]: ***
> [Servers/ServerManager/CMakeFiles/vtkPVServerManager.dir/vtkSMBarChartViewProxy.cxx.o]
> Error 1
> make[1]: *** [Servers/ServerManager/CMakeFiles/vtkPVServerManager.dir/all]
> Error 2
> make: *** [all] Error 2
>
>
> ________________________________
> From: dave.partyka at kitware.com
> Date: Tue, 1 Jun 2010 17:12:05 -0400
> Subject: Re: [Paraview] Compiling error with 3.8.0
> To: stan1313 at hotmail.fr
> CC: paraview at paraview.org
>
> Turn VTK_USE_RPATH to ON or export DYLD_LIBRARY_PATH to your bin dir.
>
> On Tue, Jun 1, 2010 at 5:07 PM, Fred Fred <stan1313 at hotmail.fr> wrote:
>
> Hello,
> I have downloaded the 3.8 release source from the download page and I try to
> compile it on Mac OS X Leopard, using the classic cmake porcedure that has
> been successful with the 3.6.2 but I get a surprising error:
>
> [ 34%] Building CXX object
> VTK/VolumeRendering/CMakeFiles/vtkVolumeRenderingPython.dir/vtkVolumeRenderingPythonInit.cxx.o
> Linking CXX shared module ../../bin/libvtkVolumeRenderingPython.so
> [ 34%] Built target vtkVolumeRenderingPython
> [ 34%] Generating vtkCompositeZPassShader_fs.cxx,
> vtkCompositeZPassShader_fs.h
> [ 34%] Generating vtkSocketCommunicatorHash.h
> dyld: Library not loaded: libvtksys.pv3.8.dylib
> Referenced from:
> /usr/local/ParaView3_BUILD/VTK/Parallel/../../bin/vtkHashSource
> Reason: image not found
> /bin/sh: line 1: 970 Trace/BPT trap ../../bin/vtkHashSource
> /usr/local/ParaView-3.8.0/VTK/Parallel/vtkSocketCommunicator.cxx
> vtkSocketCommunicatorHash vtkSocketCommunicatorHash.h
> make[2]: *** [VTK/Parallel/vtkSocketCommunicatorHash.h] Error 133
> make[1]: *** [VTK/Parallel/CMakeFiles/vtkParallel.dir/all] Error 2
> make: *** [all] Error 2
> Macintosh-3:ParaView3_BUILD$ find . -name "*libvtksys*"
> ./bin/libvtksys.dylib
> ./bin/libvtksys.pv3.8.dylib
>
> So the required library is available in ./bin, which should be included in
> the path to search for librairies, but it does not work.
> What should I do to solve this issue?
>
>
>
> ________________________________
> Vous voulez protéger votre vie privée ? La solution avec Internet Explorer 8
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview
>
>
>
> ________________________________
> Vous voulez protéger votre numéro de CB ? Utilisez Internet Explorer 8
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview
>
>
More information about the ParaView
mailing list