CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Visualization & Post-Processing Software > ParaView

[OpenFOAM] Steps to compile paraview from source

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 30, 2007, 21:17
Default Steps to compile paraview from source
  #1
Senior Member
 
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 317
Rep Power: 18
hsieh is on a distinguished road
Hi,

I am interested in compiling the native OF reader for paraview3.2.1. My SuSE 10.2 only has rpm for qt3. So, I need to compile Qt4.2.3 + paraview3.2.1. Can someone point a direction how to compile Qt and paraview? where should I place qt? Thanks!

Pei
hsieh is offline   Reply With Quote

Old   December 30, 2007, 22:16
Default Hi, On openSUSE 10.2 Qt4-4.
  #2
Super Moderator
 
Takuya OSHIMA
Join Date: Mar 2009
Location: Niigata City, Japan
Posts: 518
Blog Entries: 1
Rep Power: 20
7islands is on a distinguished road
Hi,

On openSUSE 10.2 Qt4-4.2.3 built quite straightforward out of Trolltech's open source distribution. Also there's a detailed installation instruction of ParaView3 [1].

However, if it's the first time to build ParaView it'll take some time anyway. So, my recommendation is to try out the Windows binary with the reader builtin [2] first on any Windows PC in handy to find if the reader is worthy of doing all the building works (the binary works without Cygwin port of OpenFOAM).

[1] http://paraview.org/Wiki/ParaView:Build_And_Install
[2] http://www.cfd-online.com/cgi-bin/Op...8825#POST18825

Takuya
7islands is offline   Reply With Quote

Old   December 31, 2007, 08:48
Default Hi, Takuya, Thanks for the
  #3
Senior Member
 
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 317
Rep Power: 18
hsieh is on a distinguished road
Hi, Takuya,

Thanks for the suggestion. Your OF reader on MS Windows is great and I will greatly benefit from it because I do need to bring OF data over to MS Windows to share my results with colleagues. However, it will be a great learning experience too to learn how to compile paraview from source for OpenFOAM (with and without the native reader).

I downloaded qt-X11-opensource-src-4.3.3.tar.gz. Installed qt to the default directory under root. My SuSE has qt-4.2.1 installed also. I did include /usr/local/Trolltech/Qt-4.3.3/bin in my PATH. However, when I did cmake in paraview, it complains that I only has qt-4.2.1 and minimum requirement is qt-4.2.3. How can I tell paraview where to look for the latest qt?

Thanks a lot and Happy New Year!

Pei
hsieh is offline   Reply With Quote

Old   December 31, 2007, 22:24
Default funnier still, I have OpenSUSE
  #4
Member
 
Kuan Tek Seang
Join Date: Mar 2009
Posts: 31
Rep Power: 17
seang is on a distinguished road
funnier still, I have OpenSUSE 10.3, cmake complains that my qt version is too new! hahahaha
seang is offline   Reply With Quote

Old   December 31, 2007, 22:59
Default Happy new year guys, @Pei:
  #5
Super Moderator
 
Takuya OSHIMA
Join Date: Mar 2009
Location: Niigata City, Japan
Posts: 518
Blog Entries: 1
Rep Power: 20
7islands is on a distinguished road
Happy new year guys,

@Pei: One way is to set PATH so that Qt-4.3.3 comes before the system Qt as suggested by Berk in the ParaView mailing list. Another is to set the value of cmake variable QT_QMAKE_EXECUTABLE to /usr/local/Trolltech/Qt-4.3.3/bin/qmake (the absolute path to Qt-4.3.3 qmake). Still, there may (or may not, as I have no experience with the 4.3.3) be a problem with Qt-4.3 series as written below for Kutan. If you have such a problem you can switch to Qt-4.2.3.

@Kutan: You can shut up the complaint by removing several lines in ParaView3/Qt/CMakeLists.txt which check the Qt4 version. However, at least under my environment Qt4 that comes with suse 10.3 (Qt-4.3.1) didn't come along with paraview. That is, animations couldn't be stopped until the end onece the Play button was clicked, since the Pause button didn't appear. The problem didn't appear when ParaView was linked with Qt-4.2.3 so the safe bet would be to compile Qt-4.2.3 by yourself anyway.

Takuya
7islands is offline   Reply With Quote

Old   December 31, 2007, 23:04
Default Correction: Kuan, not Kutan. S
  #6
Super Moderator
 
Takuya OSHIMA
Join Date: Mar 2009
Location: Niigata City, Japan
Posts: 518
Blog Entries: 1
Rep Power: 20
7islands is on a distinguished road
Correction: Kuan, not Kutan. Sincere apologies for your name.

T.
7islands is offline   Reply With Quote

Old   January 1, 2008, 09:26
Default thanks Takuya, will try it out
  #7
Member
 
Kuan Tek Seang
Join Date: Mar 2009
Posts: 31
Rep Power: 17
seang is on a distinguished road
thanks Takuya, will try it out. kinda stuck for a post-processor, could just take a look in tecplot
seang is offline   Reply With Quote

Old   March 16, 2008, 16:02
Default Hi, I'm currently trying to
  #8
Member
 
Johannes Baumann
Join Date: Mar 2009
Location: Baden-Wuerttemberg, Germany
Posts: 43
Rep Power: 17
johannes is on a distinguished road
Hi,

I'm currently trying to compile ParaView 3.3.0 from source with the updated OpenFOAM native reader by Takuya Oshima. I'm using Qt-4.2.3 and CMake-2.4.7.

Although I followed the instructions on the wiki and completed the pre-configuration using CCMake without problems, I recently got this strange compilation error concerning the reader itself:


[ 14%] Building CXX object VTK/IO/CMakeFiles/vtkIO.dir/vtkOpenFOAMReader.o
/home/johannes/OpenFOAM/linux/paraview-3.3.0/ParaView3/VTK/IO/vtkOpenFOAMReader. c
xx: In member function 'int vtkOpenFOAMReader::CreateDataSet(vtkMultiBlockData Set
*, int)':
/home/johannes/OpenFOAM/linux/paraview-3.3.0/ParaView3/VTK/IO/vtkOpenFOAMReader. c
xx:5111: error: 'class vtkMultiBlockDataSet' has no member named 'SetNumberOfGrou
ps'
/home/johannes/OpenFOAM/linux/paraview-3.3.0/ParaView3/VTK/IO/vtkOpenFOAMReader. c
xx:5119: error: 'class vtkMultiBlockDataSet' has no member named 'GetNumberOfData
Sets'
/home/johannes/OpenFOAM/linux/paraview-3.3.0/ParaView3/VTK/IO/vtkOpenFOAMReader. c
xx:5125: error: 'class vtkMultiBlockDataSet' has no member named 'GetNumberOfData
Sets'
/home/johannes/OpenFOAM/linux/paraview-3.3.0/ParaView3/VTK/IO/vtkOpenFOAMReader. c
xx:5159: error: 'class vtkMultiBlockDataSet' has no member named 'GetNumberOfData
Sets'
/home/johannes/OpenFOAM/linux/paraview-3.3.0/ParaView3/VTK/IO/vtkOpenFOAMReader. c
xx:5170: error: 'class vtkMultiBlockDataSet' has no member named 'GetNumberOfData
Sets'
/home/johannes/OpenFOAM/linux/paraview-3.3.0/ParaView3/VTK/IO/vtkOpenFOAMReader. c
xx:5189: error: 'class vtkMultiBlockDataSet' has no member named 'GetNumberOfData
Sets'
/home/johannes/OpenFOAM/linux/paraview-3.3.0/ParaView3/VTK/IO/vtkOpenFOAMReader. c
xx:5208: error: 'class vtkMultiBlockDataSet' has no member named 'GetNumberOfData
Sets'
make[2]: *** [VTK/IO/CMakeFiles/vtkIO.dir/vtkOpenFOAMReader.o] Fehler 1
make[1]: *** [VTK/IO/CMakeFiles/vtkIO.dir/all] Fehler 2
make: *** [all] Fehler 2


I searched the forum but did not find any similar error description. Since this is my first attempt of building ParaView, I'd be glad if someone more experienced could give me a hint.

Many thanks in advance.

Best regards,
Johannes
johannes is offline   Reply With Quote

Old   March 16, 2008, 19:10
Default Hi Johannes, The reader doesn
  #9
Super Moderator
 
Takuya OSHIMA
Join Date: Mar 2009
Location: Niigata City, Japan
Posts: 518
Blog Entries: 1
Rep Power: 20
7islands is on a distinguished road
Hi Johannes,
The reader doesn't compile with the ParaView 3.3 CVS head due to a recent change in its dataset API. Try the ParaView 3.2.1 released version for the time being. Hopefully I can release a new version of the reader shortly.

Takuya
7islands is offline   Reply With Quote

Old   March 18, 2008, 13:44
Default Hi Takuya, that's good to k
  #10
Member
 
Johannes Baumann
Join Date: Mar 2009
Location: Baden-Wuerttemberg, Germany
Posts: 43
Rep Power: 17
johannes is on a distinguished road
Hi Takuya,

that's good to know, thank you. I tried ParaView 3.2.1 and it compiled flawlessly.

Best regards,
Johannes
johannes is offline   Reply With Quote

Old   March 19, 2008, 08:30
Default Hi Johannes, Oops, too late.
  #11
Super Moderator
 
Takuya OSHIMA
Join Date: Mar 2009
Location: Niigata City, Japan
Posts: 518
Blog Entries: 1
Rep Power: 20
7islands is on a distinguished road
Hi Johannes,
Oops, too late. I posted a new revision of the reader. Please check the last post of this thread. If you try the new reader upon the already patched source, please revert the patch to ParaView3.2.1/Servers/ServerManager/Resources/readers.xml and reapply the new one.

Takuya
7islands is offline   Reply With Quote

Old   March 21, 2008, 12:13
Default Takuya, Have you compiled P
  #12
egp
Senior Member
 
egp's Avatar
 
Eric Paterson
Join Date: Mar 2009
Location: Blacksburg, VA
Posts: 197
Blog Entries: 1
Rep Power: 18
egp is on a distinguished road
Takuya,

Have you compiled ParaView 3.2.1 on a Mac using OSX 10.5(.2)? I am trying to compile with your reader, but it gets about 90% through the compile process and gives the following error:


===== cut ======

Built target pvserver
[ 89%] [ 89%] Built target ServerManagerStateLoader
Built target ServersServerManagerPrintSelf
[ 89%] Built target HTMLDocumentation
[ 89%] Built target csServer
[ 89%] Built target vtkPVServerManagerPythonD
[ 89%] Built target vtkPVServerManagerPython
[ 89%] [ 89%] Built target pvbatch
Built target pvpython
Linking CXX shared library ../../bin/libpqCore.dylib
ld64: warning: option -noprebind is obsolete and being ignored
ld: cycle in dylib re-exports with /usr/X11R6/lib/libGL.dylib
collect2: ld returned 1 exit status
make[2]: *** [bin/libpqCore.dylib] Error 1
make[1]: *** [Qt/Core/CMakeFiles/pqCore.dir/all] Error 2
make: *** [all] Error 2


Eric
egp is offline   Reply With Quote

Old   March 21, 2008, 19:45
Default Hi Eric, Yes, in fact I found
  #13
Super Moderator
 
Takuya OSHIMA
Join Date: Mar 2009
Location: Niigata City, Japan
Posts: 518
Blog Entries: 1
Rep Power: 20
7islands is on a distinguished road
Hi Eric,
Yes, in fact I found the solution in this forum [1]. Add the string described in the link to the CMake variables CMAKE_*_LINKER_FLAGS*.

[1] Pierre-Olivier's post on Oct. 28, 2007 in http://www.cfd-online.com/cgi-bin/Op...7635#POST17635

Takuya
7islands is offline   Reply With Quote

Reply


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[swak4Foam] Installation Problem with OF 6 version Aurel OpenFOAM Community Contributions 14 November 18, 2020 16:18
[OpenFOAM.org] Patches to compile OpenFOAM 2.2 on Mac OS X gschaider OpenFOAM Installation 136 October 10, 2017 17:25
what is swap4foam ?? AB08 OpenFOAM 28 February 2, 2016 01:22
Trouble compiling utilities using source-built OpenFOAM Artur OpenFOAM Programming & Development 14 October 29, 2013 10:59
"parabolicVelocity" in OpenFoam 2.1.0 ? sawyer86 OpenFOAM Running, Solving & CFD 21 February 7, 2012 11:44


All times are GMT -4. The time now is 20:34.