CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Paraview & paraFoam

Paraview v4 compilation

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree3Likes
  • 2 Post By lakeat
  • 1 Post By lakeat

Reply
 
LinkBack Thread Tools Display Modes
Old   October 14, 2013, 16:37
Default Tips for Building Paraview-4.x
  #1
Senior Member
 
lakeat's Avatar
 
Daniel WEI (老魏)
Join Date: Mar 2009
Location: South Bend, IN, USA
Posts: 688
Blog Entries: 9
Rep Power: 12
lakeat is on a distinguished road
Send a message via Skype™ to lakeat
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-1: http://www.vtk.org/Wiki/VTK/Remove_vtkTemporalDataSet
ref-2: http://www.openfoam.org/mantisbt/view.php?id=621
wyldckat and Tobi like this.
__________________
~
Daniel WEI
-------------
NatHaz Modeling Laboratory
Department of Civil & Environmental Engineering & Earth Sciences
University of Notre Dame, USA
Email || My Personal CFD Blog

Last edited by lakeat; October 27, 2013 at 16:12.
lakeat is offline   Reply With Quote

Old   October 27, 2013, 16:09
Default
  #2
Senior Member
 
lakeat's Avatar
 
Daniel WEI (老魏)
Join Date: Mar 2009
Location: South Bend, IN, USA
Posts: 688
Blog Entries: 9
Rep Power: 12
lakeat is on a distinguished road
Send a message via Skype™ to lakeat
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
-------------
NatHaz Modeling Laboratory
Department of Civil & Environmental Engineering & Earth Sciences
University of Notre Dame, USA
Email || My Personal CFD Blog
lakeat is offline   Reply With Quote

Old   October 27, 2013, 16:25
Default
  #3
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,301
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi Daniel,

A few notes:
  • AFAIK, ParaView usually builds with its own branch of VTK and rarely works with the system's VTK version .
    • One example is that as of ParaView 3.98.0, it has been built with beta versions of VTK 6. When ParaView 4.0.1 was released, VTK 6.0.0 hadn't been released yet.
    • Another example - you won't find a specific indication of which VTK version it's using: http://paraview.org/Wiki/ParaView/Binaries
    • There was a mail sometime ago in the ParaView mailing list from Debian maintainers asking for cooperation for consolidating VTK versions with ParaView versions, at least to avoid collision of library files: http://markmail.org/message/pujxu6d526albnx2
  • VTK 6.0 does not support Qt 5, therefore neither does ParaView 4.0.
Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   October 27, 2013, 16:33
Default
  #4
Senior Member
 
lakeat's Avatar
 
Daniel WEI (老魏)
Join Date: Mar 2009
Location: South Bend, IN, USA
Posts: 688
Blog Entries: 9
Rep Power: 12
lakeat is on a distinguished road
Send a message via Skype™ to lakeat
Thanks for the clarification. Are you hard-working on Sunday? I thought paraview and vtk are from the same team.
wyldckat likes this.
__________________
~
Daniel WEI
-------------
NatHaz Modeling Laboratory
Department of Civil & Environmental Engineering & Earth Sciences
University of Notre Dame, USA
Email || My Personal CFD Blog
lakeat is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Paraview compilation error: Openfoam-1.6-ext turbomachinery OpenFOAM Installation 22 February 27, 2015 16:26
paraview compilation error paraview-3.12.0 balkrishna OpenFOAM Installation 22 June 11, 2012 04:53
paraFoam reader for OpenFOAM 1.6 smart OpenFOAM Installation 13 November 16, 2009 22:41
Installation of OpenFoam 15 Compilation paraview soeren_brot OpenFOAM Installation 45 January 12, 2009 07:39
Error building DICOMAppHelper during ParaView compilation geoffjay OpenFOAM Installation 1 May 7, 2008 13:07


All times are GMT -4. The time now is 02:44.