Steps to compile paraview from source
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 |
Hi,
On openSUSE 10.2 Qt4-4.
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 |
Hi, Takuya,
Thanks for the
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 |
funnier still, I have OpenSUSE
funnier still, I have OpenSUSE 10.3, cmake complains that my qt version is too new! hahahaha
|
Happy new year guys,
@Pei:
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 |
Correction: Kuan, not Kutan. S
Correction: Kuan, not Kutan. Sincere apologies for your name.
T. |
thanks Takuya, will try it out
thanks Takuya, will try it out. kinda stuck for a post-processor, could just take a look in tecplot
|
Hi,
I'm currently trying to
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 |
Hi Johannes,
The reader doesn
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 |
Hi Takuya,
that's good to k
Hi Takuya,
that's good to know, thank you. I tried ParaView 3.2.1 and it compiled flawlessly. Best regards, Johannes |
Hi Johannes,
Oops, too late.
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 |
Takuya,
Have you compiled P
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 |
Hi Eric,
Yes, in fact I found
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 |
All times are GMT -4. The time now is 15:44. |