CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Paraview & paraFoam (http://www.cfd-online.com/Forums/openfoam-paraview/)
-   -   Compile Error paraFOAM (http://www.cfd-online.com/Forums/openfoam-paraview/121022-compile-error-parafoam.html)

shildenbrand July 19, 2013 08:06

Compile Error paraFOAM
 
Dear FOAMers,

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)

Any hints?

Thanks,
Stefan

alexeym July 19, 2013 08:19

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:

Code:

# reader extension
extension=foam # OpenFOAM

requirePV=0


shildenbrand July 19, 2013 09:10

Thanks - that was easy.

I guess PV3 reader comes from Paraview 3.xx :) ?

alexeym July 19, 2013 09:29

Quote:

Originally Posted by shildenbrand (Post 440826)
I guess PV3 reader comes from Paraview 3.xx :) ?

Don't know. It can be either FROM PV 3.x or FOR PV 3.x :) Guess PV changed API in 4.x version which resulted in error during compilation.


All times are GMT -4. The time now is 22:05.