CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   Compilation of Paraview3.3-cvs with python support (http://www.cfd-online.com/Forums/openfoam/64449-compilation-paraview3-3-cvs-python-support.html)

crazysumi May 12, 2009 01:48

Compilation of Paraview3.3-cvs with python support
 
Hi Foamers,

I want to use python scripts supported paraFoam. For this I enabled the switch "Paraview_enable_python" in Cmakelists.txt file.

I have QT 4.3.1, Python 2.6.1 in Opensuse 10.3.

I am using the buildParaview3.3--cvs script for recompilation as suggested in the README file. However the script is not able to build it and it stops upon 8% completion

I am getting following errors:-

[ 7%] Building CXX object VTK/Common/CMakeFiles/vtkCommon.dir/vtkMultiThreader.o
Linking CXX shared library ../../bin/libQtTesting.so
[ 7%] Building CXX object VTK/Common/CMakeFiles/vtkCommon.dir/vtkMutexLock.o
/usr/bin/ld: /usr/local/lib/python2.6/config/libpython2.6.a(exceptions.o): relocation R_X86_64_32 against `_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/python2.6/config/libpython2.6.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [bin/libQtTesting.so] Error 1
make[1]: *** [Qt/Testing/CMakeFiles/QtTesting.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 7%] Building CXX object VTK/Common/CM
..
..
..
..
[ 8%] Building CXX object VTK/Common/CMakeFiles/vtkCommon.dir/vtkCommonInstantiator.o
Linking CXX shared library ../../bin/libvtkCommon.so
[ 8%] Built target vtkCommon
make: *** [all] Error 2
done

Afterwards I installed QT 4.3.5, but I received the same build error messages from paraview script.

Regards
Sumeet

jfb May 12, 2009 04:27

Did You install python-devel? You could use
# zypper install python-devel
or if You use "smart" package manager
# smart install python-devel

crazysumi May 12, 2009 06:17

Hi Again
 
Hi Again,

The python-devel package installation was missing. I have installed it but this did not solve the problem. I am still receiving the same build error messages

Regards,
Sumeet

jfb May 13, 2009 01:33

Hi Sumeet
Isn't there any indication somewhere in the output of the command "buildParaview3.3-cvs" which could shed some light on the possible cause of the error? Do You use "compilerInstall=System" in the file etc/settings.sh? Make sure to "rm -rf ParaView3.3-cvs/platforms" before the command "buildParaview3.3-cvs".

crazysumi May 14, 2009 04:43

Hey I was able to solve the problem. I dlded paraview 3.4 and compiled by making changes in buildPara.. script and now it works well by modifyingthe paraview3 bashrc file. I had to compile PV3FoamReader too.

ubald May 29, 2009 11:18

Paraview in OpenFOAM1.5-dev !!
 
I try ton compile the OpenFOAM1.5-dev and it went well but now I cant use paraview. I ave Openfoam1.5 with paraview install and build correctly with :

rm -rf $OFDIR/ThirdParty/ParaView3.3-cvs/platforms
cd $OFDIR/ThirdParty/
buildParaView3.3-cvs

but if I do the same with the OpenFOAM1.5-dev I get :

/home/niko/OpenFOAM/OpenFOAM-1.5-dev/bin/buildParaView3.3-cvs: line 59: initialiseVariables: command not found
/home/niko/OpenFOAM/OpenFOAM-1.5-dev/bin/buildParaView3.3-cvs: line 65: buildParaView: command not found
/home/niko/OpenFOAM/OpenFOAM-1.5-dev/bin/tools/buildParaViewFunctions: line 356: cd: /home/niko/OpenFOAM/ThirdParty/ParaView-3.3-cvs/platforms/linuxGcc: Aucun fichier ou répertoire de ce type

I use compilerInstall=OpenFOAM in etc/settings.sh
and install QT 4.3.5
> qmake --version
QMake version 2.01a
Using Qt version 4.3.5 in /usr/local/Trolltech/Qt-4.3.5/lib

I on Debian/Lenny5.0

can some one help ! http://www.cfd-online.com/Forums/ima...ons/icon11.gif

crazysumi You said
Quote:

Hey I was able to solve the problem. I dlded paraview 3.4 and compiled by making changes in buildPara.. script and now it works well by modifyingthe paraview3 bashrc file. I had to compile PV3FoamReader too.
How did you did that I have tried unsuccessfully to do the same !!

crazysumi June 1, 2009 06:51

Hi Nicholas
 
Hey,

At the beginning of the script buildParaview3.3-cvs. it executes the following line

. $WM_PROJECT_DIR/bin/tools/buildParaViewFunctions

check for the availability of the file "buildParaViewFunctions" in the above path. Or change the path in the script as required.

Regards
Sumeet

ubald June 3, 2009 09:00

Thanks the problem was that to function where missing inbuildParaViewFunctions

initialiseVariables and buildParaView

I don't know why but I just copied it from the 1.5 sources and it worked with both 3.3-dev and 3.4

Now I wander if I can get paraFoam worck with Qt4.4

Right now I at the Workshop and it is great.

Regards
Nicolas Lussier

louisgag June 13, 2009 15:23

Thanks Nicolas and Sumeet,

I copied initialiseVariables and buildParaView functions from the OF-1.5 source to the OF-1.5-dev and it seems to fix the problem.. Seems that the buildParaViewFunctions script in OF-1.5-dev is corrupt... I also had to export QT_QMAKE_EXECUTABLE=/usr/local/Trolltech/Qt-4.3.5/bin/qmake before running buildParaView3.3-cvs

-Louis

msrinath80 June 23, 2009 18:20

Quote:

Originally Posted by louisgag (Post 219215)
Thanks Nicolas and Sumeet,

I copied initialiseVariables and buildParaView functions from the OF-1.5 source to the OF-1.5-dev and it seems to fix the problem.. Seems that the buildParaViewFunctions script in OF-1.5-dev is corrupt... I also had to export QT_QMAKE_EXECUTABLE=/usr/local/Trolltech/Qt-4.3.5/bin/qmake before running buildParaView3.3-cvs

-Louis

Actually nothing appears to be corrupt. As explained elsewhere[1], we need to adjust the QT version check in CMakeLists.txt before we build paraview. This also avoids errors that come with -lpqComponents reported missing.

-pUl|

References:
[1] http://74.125.155.132/search?q=cache...&ct=clnk&gl=ca

nirmalrishi October 12, 2009 13:01

builParaView3.3-cvs got following error
 
Hi,

When I tried to run buildParaView3.3-cvs after rmoving platforms directory, i got the following messages.

[ 52%] [ 52%] Building CXX object Utilities/VTKClientServer/Graphics/CMakeFiles/vtkGraphicsCS.dir/vtkWindowedSincPolyDataFilterClientServer.o
Building CXX object Utilities/VTKClientServer/Graphics/CMakeFiles/vtkGraphicsCS.dir/vtkGraphicsCSInit.o
Linking CXX shared library ../../../bin/libvtkGraphicsCS.so
[ 52%] Built target vtkGraphicsCS
make: *** [all] Error 2
done


please let me know, how can i avoid this and complete the installation?


All times are GMT -4. The time now is 04:14.