Compile Error paraFOAM
I downloaded Paraview 4.0.1 and am trying to use it instead of paraview 3.12 which is shipped with OF 2.2.1.
I was able to compile paraview 4.0.1 - and it works.
I have, however, problems when compiling the PV3 readers - see below.
wmakeLnInclude: linking include files to ./lnInclude
Making dependency list for source file vtkPV3blockMesh.C
Making dependency list for source file vtkPV3blockMeshConvert.C
Making dependency list 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/opt/OpenFOAM/OpenFOAM-2.2.1/src/meshTools/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.2.1/src/mesh/blockMesh/lnInclude -I/opt/OpenFOAM/ThirdParty-2.2.1/platforms/linux64Gcc/paraview-4.0.1/include/paraview-4.0 -I../../vtkPV3Readers/lnInclude -I../PV3blockMeshReader -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-2.2.1/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.2.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/vtkPV3blockMesh.o
In file included from vtkPV3blockMesh.C:27:0:
../PV3blockMeshReader/vtkPV3blockMeshReader.h:60:1: Fehler: expected initializer before »:« token
make: *** [Make/linux64GccDPOpt/vtkPV3blockMesh.o] Fehler 1
A similar error occurs later:
../PV3FoamReader/vtkPV3FoamReader.h:62:1: Fehler: expected initializer before »:« token
I found a thread with the same problem but with no solution (it was with an old version of both, though)
Actually Paraview 4.0.1 has built-in OF reader. So you can use 'paraFoam -builtin' command. In my case I've edited two lines in paraFoam script to make -builtin switch unnecessary:
Thanks - that was easy.
I guess PV3 reader comes from Paraview 3.xx :) ?
|All times are GMT -4. The time now is 00:18.|