Re: [Paraview] Compiling error

2012-12-04 Thread David Lonie
Bug created: http://paraview.org/Bug/view.php?id=13700

On Tue, Dec 4, 2012 at 8:44 AM, David Lonie  wrote:
> Hi Tom,
>
> On Mon, Dec 3, 2012 at 11:43 AM, Tom T  wrote:
>> Hi everyone,
>>
>> I've been trying so far unsuccessfully to compile paraview and I'm not sure
>> what the error message means.
>>
>> [snip]
>>
>> /scratch/fronk/software/ParaView/VTK/Rendering/Matplotlib/vtkMatplotlibMathTextUtilities.cxx:
>> In member function ‘virtual bool
>> vtkMatplotlibMathTextUtilities::StringToPath(const char*, vtkPath*,
>> vtkTextProperty*)’:
>> /scratch/fronk/software/ParaView/VTK/Rendering/Matplotlib/vtkMatplotlibMathTextUtilities.cxx:581:
>> error: ‘Py_ssize_t’ was not declared in this scope
>
> Py_ssize_t is a type defined by the python C API, but it looks like it
> wasn't introduced until Python 2.5, so I'm guess that you have an
> older version of python installed? What is the output of "python
> --version"?
>
> The matplotlib library requires python >= 2.6, so if your python is
> older than this, you'll need to update your python installation, or
> disable matplotlib in the ParaView build by editing
> CMake/VTKModules.cmake and commenting out this section (around line
> 350):
>
> # Enable vtkRenderingMatplotlib for math text rendering if python is available
> if (PARAVIEW_ENABLE_PYTHON)
>   list (APPEND _vtk_modules vtkRenderingMatplotlib)
> endif()
>
> I'll push a patch to only enable the matplotlib module when python is
> an appropriate version.
>
> Thanks for the report!
>
> Dave
___
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


Re: [Paraview] Compiling error

2012-12-04 Thread David Lonie
Hi Tom,

On Mon, Dec 3, 2012 at 11:43 AM, Tom T  wrote:
> Hi everyone,
>
> I've been trying so far unsuccessfully to compile paraview and I'm not sure
> what the error message means.
>
> [snip]
>
> /scratch/fronk/software/ParaView/VTK/Rendering/Matplotlib/vtkMatplotlibMathTextUtilities.cxx:
> In member function ‘virtual bool
> vtkMatplotlibMathTextUtilities::StringToPath(const char*, vtkPath*,
> vtkTextProperty*)’:
> /scratch/fronk/software/ParaView/VTK/Rendering/Matplotlib/vtkMatplotlibMathTextUtilities.cxx:581:
> error: ‘Py_ssize_t’ was not declared in this scope

Py_ssize_t is a type defined by the python C API, but it looks like it
wasn't introduced until Python 2.5, so I'm guess that you have an
older version of python installed? What is the output of "python
--version"?

The matplotlib library requires python >= 2.6, so if your python is
older than this, you'll need to update your python installation, or
disable matplotlib in the ParaView build by editing
CMake/VTKModules.cmake and commenting out this section (around line
350):

# Enable vtkRenderingMatplotlib for math text rendering if python is available
if (PARAVIEW_ENABLE_PYTHON)
  list (APPEND _vtk_modules vtkRenderingMatplotlib)
endif()

I'll push a patch to only enable the matplotlib module when python is
an appropriate version.

Thanks for the report!

Dave
___
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


Re: [Paraview] Compiling error with 3.8.0

2010-06-02 Thread Fred Fred

It seems that this was the reason since now it passes it. BTW this seems to be 
a mandatory option :-)
But now I have another problem:

 QT_LIBRARY_DIR   /Library/Frameworks
 QT_QTXMLPATTERNS_INCLUDE_DIR 
/Library/Frameworks/QtXmlPatterns.framework/Headers 
 
 QT_QTXMLPATTERNS_LIBRARY /Library/Frameworks/QtXmlPatterns.framework   
   
 QT_QTXMLPATTERNS_LIBRARY_DEBUG   QT_QTXMLPATTERNS_LIBRARY_DEBUG-NOTFOUND   
   
 QT_QTXMLPATTERNS_LIBRARY_RELEA   /Library/Frameworks/QtXmlPatterns.framework   


[ 88%] Built target vtkPVPython
Linking CXX executable ../../../bin/pvbatch
ld: file not found: QtXmlPatterns.framework/Versions/4/QtXmlPatterns
collect2: ld returned 1 exit status
make[2]: *** [bin/pvbatch] Error 1
make[1]: *** 
[Utilities/VTKPythonWrapping/Executable/CMakeFiles/pvbatch.dir/all] Error 2
make: *** [all] Error 2

The file /Library/Frameworks/QtXmlPatterns.framework/Versions/4/QtXmlPatterns 
exists, so any idea?

  
_
Installez gratuitement les nouvelles Emoch'ticones !
http://www.ilovemessenger.fr/emoticones/telecharger-emoticones-emochticones.aspx___
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


Re: [Paraview] Compiling error with 3.8.0

2010-06-02 Thread Utkarsh Ayachit
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  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.part...@kitware.com
> Date: Tue, 1 Jun 2010 17:12:05 -0400
> Subject: Re: [Paraview] Compiling error with 3.8.0
> To: stan1...@hotmail.fr
> CC: paraview@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  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 suc

Re: [Paraview] Compiling error with 3.8.0

2010-06-02 Thread Fred Fred

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.part...@kitware.com
Date: Tue, 1 Jun 2010 17:12:05 -0400
Subject: Re: [Paraview] Compiling error with 3.8.0
To: stan1...@hotmail.fr
CC: paraview@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  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: li

Re: [Paraview] Compiling error with 3.8.0

2010-06-01 Thread Dave Partyka
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  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
>
>
___
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