CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   Compiler error with makeParaView (http://www.cfd-online.com/Forums/openfoam-installation/110550-compiler-error-makeparaview.html)

zhang88 December 13, 2012 19:06

Compiler error with makeParaView
 
I'm trying to compile paraview using the script makeParaView in ThirdParty package. I'm using Intel compiler icpc. The compilation failed with the following message. I wonder if there is any solution for this. Thanks.

Ying


.......
Linking C shared library ../../../bin/libvtktiff.so
[ 4%] Built target vtktiff
[ 4%] Built target vtkexpat
[ 4%] Built target vtkfreetype
[ 4%] Built target vtklibxml2
[ 4%] Built target vtkDICOMParser
[ 4%] Building CXX object VTK/Utilities/MaterialLibrary/CMakeFiles/ProcessShader.dir/ProcessShader.cxx.o
In file included from /apps/openfoam/ThirdParty-2.1.1/ParaView-3.12.0/VTK/Common/vtkSystemIncludes.h:50,
from /apps/openfoam/ThirdParty-2.1.1/ParaView-3.12.0/VTK/Common/vtkIndent.h:24,
from /apps/openfoam/ThirdParty-2.1.1/ParaView-3.12.0/VTK/Common/vtkObjectBase.h:43,
from /apps/openfoam/ThirdParty-2.1.1/ParaView-3.12.0/VTK/Common/vtkObject.h:41,
from /apps/openfoam/ThirdParty-2.1.1/ParaView-3.12.0/VTK/Utilities/MaterialLibrary/ProcessSh
ader.cxx:16:
/apps/openfoam/ThirdParty-2.1.1/ParaView-3.12.0/VTK/Common/vtkOStreamWrapper.h:79: error: declaration of ‘ope
rator<<’ as non-function
/apps/openfoam/ThirdParty-2.1.1/ParaView-3.12.0/VTK/Common/vtkOStreamWrapper.h:79: error: expected ‘;’ before
‘(’ token
/apps/openfoam/ThirdParty-2.1.1/ParaView-3.12.0/VTK/Common/vtkOStreamWrapper.h:80: error: ‘vtkOStreamWrapper&
vtkOStreamWrapper::operator<<(unsigned int)’ cannot be overloaded
/apps/openfoam/ThirdParty-2.1.1/ParaView-3.12.0/VTK/Common/vtkOStreamWrapper.h:70: error: with ‘vtkOStreamWra
pper& vtkOStreamWrapper::operator<<(unsigned int)’
make[2]: *** [VTK/Utilities/MaterialLibrary/CMakeFiles/ProcessShader.dir/ProcessShader.cxx.o] Error 1
make[1]: *** [VTK/Utilities/MaterialLibrary/CMakeFiles/ProcessShader.dir/all] Error 2
make: *** [all] Error 2

wyldckat December 15, 2012 13:59

Greetings zhang88 and welcome to the forum!

Knowing which operating system and version, as well as ICPC version would make it a lot easier to help you! ;)

Otherwise I'd suggest:
  1. Use GCC instead of ICPC for building ParaView.
  2. If possible, use a pre-built version of ParaView, instead of trying to build your own. The ones from www.paraview.org usually work just fine and they already come with Python integrated!
  3. You can check openfoamwiki.net for some possible hacks. For example: http://openfoamwiki.net/index.php/In...dora#Fedora_17 - scroll to the end of the page ;)
Best regards,
Bruno

laz0r_viking December 10, 2013 14:12

Quote:

Originally Posted by zhang88 (Post 397447)
I'm trying to compile paraview using the script makeParaView in ThirdParty package. I'm using Intel compiler icpc. The compilation failed with the following message. I wonder if there is any solution for this.

Just an addendum in case anyone else find themselves at this problem:

I was having this same error, compiling ThirdParty-2.2.x on a machine using all Intel compilers. I thought that the icc and icpc should've already been declared as my functioning compilers but when running
Code:

echo $WM_CXX
it would always return
Code:

g++
I was able to force this by simply adding the line
Code:

export WM_CXX=icpc
in
Code:

./makeParaView
Hope this helps!

LV
--
http://xkcd.com/979/


All times are GMT -4. The time now is 23:45.