CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   centOS 5.6 : paraFoam not working (http://www.cfd-online.com/Forums/openfoam-installation/123995-centos-5-6-parafoam-not-working.html)

yossi September 25, 2013 10:33

centOS 5.6 : paraFoam not working
 
Hi all,

I've installed OF-2.1.1, and built cmake, qt and paraview.
when I run paraFoam I get:
Code:

FATAL ERROR: ParaView reader module libraries do not exist

Please build the reader module before continuing:
cd $FOAM_UTILITIES/postProcessing/graphics/PV3Readers
./Allwclean
./Allwmake

running Allwmake get the following errors:
Code:

+ '[' -d /home/yossi/Desktop/ParaView-3.98.1-Linux-64bit -a -r /home/yossi/Desktop/ParaView-3.98.1-Linux-64bit ']'
+ '[' -n /home/yossi/OpenFOAM/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/paraview-3.98 ']'
+ '[' -n g++ ']'
+ export CXX=g++
+ CXX=g++
+ wmake libso vtkPV3Readers
wmakeLnInclude: linking include files to ./lnInclude
Making dependency list for source file vtkPV3Readers.C
could not open file vtkDataArraySelection.h for source file vtkPV3Readers.C
could not open file vtkDataSet.h for source file vtkPV3Readers.C
could not open file vtkMultiBlockDataSet.h for source file vtkPV3Readers.C
could not open file vtkInformation.h for source file vtkPV3Readers.C
SOURCE=vtkPV3Readers.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-100 -I/home/yossi/Desktop/ParaView-3.98.1-Linux-64bit/include/paraview-3.98 -IlnInclude -I. -I/home/yossi/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -I/home/yossi/OpenFOAM/OpenFOAM-2.1.1/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linux64GccDPOpt/vtkPV3Readers.o
vtkPV3Readers.C:35:35: fatal error: vtkDataArraySelection.h: No such file or directory
compilation terminated.
make: *** [Make/linux64GccDPOpt/vtkPV3Readers.o] Error 1
+ PV3blockMeshReader/Allwmake
+ '[' -d /home/yossi/Desktop/ParaView-3.98.1-Linux-64bit -a -r /home/yossi/Desktop/ParaView-3.98.1-Linux-64bit ']'
+ wmake libso vtkPV3blockMesh
wmakeLnInclude: linking include files to ./lnInclude
Making dependency list for source file vtkPV3blockMesh.C
could not open file vtkMultiBlockDataSetAlgorithm.h for source file vtkPV3blockMesh.C
could not open file vtkDataArraySelection.h for source file vtkPV3blockMesh.C
could not open file vtkMultiBlockDataSet.h for source file vtkPV3blockMesh.C
could not open file vtkRenderer.h for source file vtkPV3blockMesh.C
could not open file vtkTextActor.h for source file vtkPV3blockMesh.C
could not open file vtkTextProperty.h for source file vtkPV3blockMesh.C
Making dependency list for source file vtkPV3blockMeshConvert.C
could not open file vtkMultiBlockDataSetAlgorithm.h for source file vtkPV3blockMeshConvert.C
could not open file vtkPoints.h for source file vtkPV3blockMeshConvert.C
could not open file vtkCellArray.h for source file vtkPV3blockMeshConvert.C
could not open file vtkDataArraySelection.h for source file vtkPV3blockMeshConvert.C
could not open file vtkMultiBlockDataSet.h for source file vtkPV3blockMeshConvert.C
could not open file vtkPolyData.h for source file vtkPV3blockMeshConvert.C
could not open file vtkUnstructuredGrid.h for source file vtkPV3blockMeshConvert.C
Making dependency list for source file vtkPV3blockMeshUtils.C
could not open file vtkMultiBlockDataSetAlgorithm.h for source file vtkPV3blockMeshUtils.C
could not open file vtkDataArraySelection.h for source file vtkPV3blockMeshUtils.C
could not open file vtkDataSet.h for source file vtkPV3blockMeshUtils.C
could not open file vtkMultiBlockDataSet.h for source file vtkPV3blockMeshUtils.C
could not open file vtkInformation.h for source file vtkPV3blockMeshUtils.C
SOURCE=vtkPV3blockMesh.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-100 -I/home/yossi/OpenFOAM/OpenFOAM-2.1.1/src/meshTools/lnInclude -I/home/yossi/OpenFOAM/OpenFOAM-2.1.1/src/mesh/blockMesh/lnInclude -I/home/yossi/Desktop/ParaView-3.98.1-Linux-64bit/include/paraview-3.98 -I../../vtkPV3Readers/lnInclude -I../PV3blockMeshReader -IlnInclude -I. -I/home/yossi/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -I/home/yossi/OpenFOAM/OpenFOAM-2.1.1/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linux64GccDPOpt/vtkPV3blockMesh.o
In file included from vtkPV3blockMesh.C:27:0:
../PV3blockMeshReader/vtkPV3blockMeshReader.h:42:43: fatal error: vtkMultiBlockDataSetAlgorithm.h: No such file or directory
compilation terminated.
make: *** [Make/linux64GccDPOpt/vtkPV3blockMesh.o] Error 1
+ cd PV3blockMeshReader
+ mkdir -p Make/linux64GccDPOpt
+ cd Make/linux64GccDPOpt
+ cmake ../..
-- The C compiler identification is GNU 4.1.2
-- The CXX compiler identification is GNU 4.6.2
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /home/yossi/OpenFOAM/ThirdParty-2.1.1/platforms/linux64/gcc-4.6.2/bin/g++
-- Check for working CXX compiler: /home/yossi/OpenFOAM/ThirdParty-2.1.1/platforms/linux64/gcc-4.6.2/bin/g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
CMake Error at CMakeLists.txt:12 (FIND_PACKAGE):
  By not providing "FindParaView.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "ParaView",
  but CMake did not find one.

  Could not find a package configuration file provided by "ParaView" with any
  of the following names:

    ParaViewConfig.cmake
    paraview-config.cmake

  Add the installation prefix of "ParaView" to CMAKE_PREFIX_PATH or set
  "ParaView_DIR" to a directory containing one of the above files.  If
  "ParaView" provides a separate development package or SDK, be sure it has
  been installed.


-- Configuring incomplete, errors occurred!
+ make
make: *** No targets specified and no makefile found.  Stop.
+ PV3FoamReader/Allwmake
+ '[' -d /home/yossi/Desktop/ParaView-3.98.1-Linux-64bit -a -r /home/yossi/Desktop/ParaView-3.98.1-Linux-64bit ']'
+ wmake libso vtkPV3Foam
wmakeLnInclude: linking include files to ./lnInclude
Making dependency list for source file vtkPV3Foam.C
could not open file vtkMultiBlockDataSetAlgorithm.h for source file vtkPV3Foam.C
could not open file vtkDataArraySelection.h for source file vtkPV3Foam.C
could not open file vtkMultiBlockDataSet.h for source file vtkPV3Foam.C
could not open file vtkRenderer.h for source file vtkPV3Foam.C
could not open file vtkTextActor.h for source file vtkPV3Foam.C
could not open file vtkTextProperty.h for source file vtkPV3Foam.C
Making dependency list for source file vtkPV3FoamFields.C
could not open file vtkMultiBlockDataSetAlgorithm.h for source file vtkPV3FoamFields.C
could not open file vtkDataArraySelection.h for source file vtkPV3FoamFields.C
could not open file vtkPolyData.h for source file vtkPV3FoamFields.C
could not open file vtkUnstructuredGrid.h for source file vtkPV3FoamFields.C
could not open file vtkCellData.h for source file vtkPV3FoamFields.C
could not open file vtkFloatArray.h for source file vtkPV3FoamFields.C
could not open file vtkMultiBlockDataSet.h for source file vtkPV3FoamFields.C
could not open file vtkPointData.h for source file vtkPV3FoamFields.C
Making dependency list for source file vtkPV3FoamMesh.C
could not open file vtkMultiBlockDataSetAlgorithm.h for source file vtkPV3FoamMesh.C
could not open file vtkDataArraySelection.h for source file vtkPV3FoamMesh.C
could not open file vtkMultiBlockDataSet.h for source file vtkPV3FoamMesh.C
could not open file vtkPolyData.h for source file vtkPV3FoamMesh.C
could not open file vtkUnstructuredGrid.h for source file vtkPV3FoamMesh.C
Making dependency list for source file vtkPV3FoamMeshLagrangian.C
could not open file vtkPoints.h for source file vtkPV3FoamMeshLagrangian.C
could not open file vtkCellArray.h for source file vtkPV3FoamMeshLagrangian.C
could not open file vtkPolyData.h for source file vtkPV3FoamMeshLagrangian.C
Making dependency list for source file vtkPV3FoamMeshPatch.C
could not open file vtkPoints.h for source file vtkPV3FoamMeshPatch.C
could not open file vtkCellArray.h for source file vtkPV3FoamMeshPatch.C
could not open file vtkPolyData.h for source file vtkPV3FoamMeshPatch.C
Making dependency list for source file vtkPV3FoamMeshSet.C
could not open file vtkPoints.h for source file vtkPV3FoamMeshSet.C
could not open file vtkPolyData.h for source file vtkPV3FoamMeshSet.C
could not open file vtkCellArray.h for source file vtkPV3FoamMeshSet.C
Making dependency list for source file vtkPV3FoamMeshVolume.C
could not open file vtkMultiBlockDataSetAlgorithm.h for source file vtkPV3FoamMeshVolume.C
could not open file vtkPoints.h for source file vtkPV3FoamMeshVolume.C
could not open file vtkCellArray.h for source file vtkPV3FoamMeshVolume.C
could not open file vtkIdTypeArray.h for source file vtkPV3FoamMeshVolume.C
could not open file vtkUnstructuredGrid.h for source file vtkPV3FoamMeshVolume.C
Making dependency list for source file vtkPV3FoamMeshZone.C
could not open file vtkPoints.h for source file vtkPV3FoamMeshZone.C
could not open file vtkPolyData.h for source file vtkPV3FoamMeshZone.C
could not open file vtkCellArray.h for source file vtkPV3FoamMeshZone.C
Making dependency list for source file vtkPV3FoamUpdateInfo.C
could not open file vtkMultiBlockDataSetAlgorithm.h for source file vtkPV3FoamUpdateInfo.C
could not open file vtkDataArraySelection.h for source file vtkPV3FoamUpdateInfo.C
Making dependency list for source file vtkPV3FoamUtils.C
could not open file vtkMultiBlockDataSetAlgorithm.h for source file vtkPV3FoamUtils.C
could not open file vtkDataArraySelection.h for source file vtkPV3FoamUtils.C
could not open file vtkDataSet.h for source file vtkPV3FoamUtils.C
could not open file vtkMultiBlockDataSet.h for source file vtkPV3FoamUtils.C
could not open file vtkInformation.h for source file vtkPV3FoamUtils.C
SOURCE=vtkPV3Foam.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-100 -I/home/yossi/OpenFOAM/OpenFOAM-2.1.1/src/meshTools/lnInclude -I/home/yossi/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude -I/home/yossi/OpenFOAM/OpenFOAM-2.1.1/src/lagrangian/basic/lnInclude -I../../vtkPV3Readers/lnInclude -I../PV3FoamReader -I/home/yossi/Desktop/ParaView-3.98.1-Linux-64bit/include/paraview-3.98 -UHAS_VTK_POLYHEDRON -IlnInclude -I. -I/home/yossi/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -I/home/yossi/OpenFOAM/OpenFOAM-2.1.1/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linux64GccDPOpt/vtkPV3Foam.o
In file included from vtkPV3Foam.C:27:0:
../PV3FoamReader/vtkPV3FoamReader.h:42:43: fatal error: vtkMultiBlockDataSetAlgorithm.h: No such file or directory
compilation terminated.
make: *** [Make/linux64GccDPOpt/vtkPV3Foam.o] Error 1
+ cd PV3FoamReader
+ mkdir -p Make/linux64GccDPOpt
+ cd Make/linux64GccDPOpt
+ cmake ../..
-- The C compiler identification is GNU 4.1.2
-- The CXX compiler identification is GNU 4.6.2
-- Check for working C compiler: /usr/bin/cc
sda5: write failed, user block limit reached.
-- Check for working C compiler: /usr/bin/cc -- broken
CMake Error at /home/yossi/software/cmake-2.8.11.2/Modules/CMakeTestCCompiler.cmake:61 (message):
  The C compiler "/usr/bin/cc" is not able to compile a simple test program.

  It fails with the following output:

  Change Dir: /home/yossi/OpenFOAM/OpenFOAM-2.1.1/applications/utilities/postProcessing/graphics/PV3Readers/PV3FoamReader/PV3FoamReader/Make/linux64GccDPOpt/CMakeFiles/CMakeTmp

 

  Run Build Command:/usr/bin/gmake "cmTryCompileExec458563148/fast"

  gmake: *** No rule to make target `cmTryCompileExec458563148/fast'.  Stop.

 

 

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
 


-- Configuring incomplete, errors occurred!
+ make
make: *** No targets specified and no makefile found.  Stop.

can anyone help me?

wyldckat September 28, 2013 10:49

Greetings yossi,

Since you are not using the standard ParaView 3.12.0 that OpenFOAM is meant to work with, then you will have to use the internal reader. For that, run:
Code:

paraFoam -builtin
If it works well, you can add this line to your "~/.bashrc" file:
Code:

alias paraFoam='paraFoam -builtin'
Best regards,
Bruno

skyinventorbt October 9, 2013 01:41

Make a launcher from right click on desktop.
1.Choose Create Launcher
2.Browse and select paraview file in /bin of paraview installed directory
3.Fill name and create launcher.
Launch paraview from the icon you created.

If you are using paraview for other visualizations, it will be useful.
--
KANNAN


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