|
[Sponsors] |
October 14, 2013, 17:37 |
Paraview v4 compilation
|
#1 |
Senior Member
Daniel WEI (老魏)
Join Date: Mar 2009
Location: Beijing, China
Posts: 689
Blog Entries: 9
Rep Power: 21 |
Hey guys,
Concerning building paraview version 4.0 (3.98 included), etc [tested with OpenFOAM-2.2.x]. A few lines of codes need to be updated. Today, after a few tries, I found the following modifications seem to work for me, I hope it helps! 1. Make sure you turn on "PARAVIEW_INSTALL_DEVELOPMENT_FILES ON" before you build paraview. (otherwise you won't have header files installed) 2. In file "vtkPV3FoamReader.h" and "vtkPV3blockMeshReader.h", change VTK_IO_EXPORT to VTK_EXPORT 3. In file "vtkPV3FoamReader.cxx" (~ line 314) Code:
for (int infoI = 0; infoI < nInfo; ++infoI) { vtkInformation *outInfo = outputVector->GetInformationObject(infoI); if ( outInfo->Has ( vtkStreamingDemandDrivenPipeline::UPDATE_TIME_STEP() ) && outInfo->Length ( vtkStreamingDemandDrivenPipeline::TIME_STEPS() ) >= 1 ) { requestTime[nRequestTime++] = outInfo->Get ( vtkStreamingDemandDrivenPipeline::UPDATE_TIME_STEP() ); } } ref-2: http://www.openfoam.org/mantisbt/view.php?id=621
__________________
~ Daniel WEI ------------- Boeing Research & Technology - China Beijing, China Last edited by lakeat; October 27, 2013 at 16:12. |
|
October 27, 2013, 16:09 |
|
#2 |
Senior Member
Daniel WEI (老魏)
Join Date: Mar 2009
Location: Beijing, China
Posts: 689
Blog Entries: 9
Rep Power: 21 |
Another thing I found last friday is that the Ubuntu-13.10, at least till to now, comes with paraview-4.x, qt-5.x and vtk-5. VTK-5 is not a problem, but if you are building with VTK-6, it seems that paraview does not support it yet. And also since the default qt version is qt5 for Ubuntu-13.10, so Qt in paraview build script should be set to use qt-4, that using qmake-qt4 instead of the default /usr/bin/qmake, when you are building your own paraview. But even so, there is still some problems that won't go through. So I finally find out why not just use the system paraview-4.x without building paraview yourself? Everything looks fine.
[*] By saying system, I mean you can download through apt-get.
__________________
~ Daniel WEI ------------- Boeing Research & Technology - China Beijing, China |
|
October 27, 2013, 16:25 |
|
#3 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi Daniel,
A few notes:
Bruno
__________________
|
|
October 27, 2013, 16:33 |
|
#4 |
Senior Member
Daniel WEI (老魏)
Join Date: Mar 2009
Location: Beijing, China
Posts: 689
Blog Entries: 9
Rep Power: 21 |
Thanks for the clarification. Are you hard-working on Sunday? I thought paraview and vtk are from the same team.
__________________
~ Daniel WEI ------------- Boeing Research & Technology - China Beijing, China |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[General] Plugin compilation for paraview | wil6 | ParaView | 0 | May 28, 2018 08:53 |
[OpenFOAM.org] Paraview 5.4.0 compilation failed on centos 6.9 | Saclay91 | OpenFOAM Installation | 1 | March 24, 2018 21:20 |
[OpenFOAM.org] OpenFOAM 2.4 ParaView 4.1 compilation problem | tubois | OpenFOAM Installation | 2 | October 23, 2015 07:56 |
[OpenFOAM] Paraview compilation failed due to not available files | Tobi | ParaView | 2 | July 5, 2014 16:39 |
paraFoam reader for OpenFOAM 1.6 | smart | OpenFOAM Installation | 13 | November 16, 2009 22:41 |