Compilation of Paraview3.3-cvs with python support
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: *** [bin/libQtTesting.so] Error 1
make: *** [Qt/Testing/CMakeFiles/QtTesting.dir/all] Error 2
make: *** 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
Afterwards I installed QT 4.3.5, but I received the same build error messages from paraview script.
Did You install python-devel? You could use
# zypper install python-devel
or if You use "smart" package manager
# smart install python-devel
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
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".
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.
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
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
At the beginning of the script buildParaview3.3-cvs. it executes the following line
check for the availability of the file "buildParaViewFunctions" in the above path. Or change the path in the script as required.
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.
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
builParaView3.3-cvs got following error
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
please let me know, how can i avoid this and complete the installation?
|All times are GMT -4. The time now is 04:14.|