CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

Compiler error with makeParaView

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By laz0r_viking

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 13, 2012, 19:06
Default Compiler error with makeParaView
  #1
New Member
 
Mei Zhang
Join Date: Dec 2012
Posts: 1
Rep Power: 0
zhang88 is on a distinguished road
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:perator<<(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:perator<<(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
zhang88 is offline   Reply With Quote

Old   December 15, 2012, 13:59
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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
__________________
wyldckat is offline   Reply With Quote

Old   December 10, 2013, 14:12
Exclamation
  #3
New Member
 
LV
Join Date: Aug 2012
Posts: 3
Rep Power: 14
laz0r_viking is on a distinguished road
Quote:
Originally Posted by zhang88 View Post
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/
wyldckat likes this.
laz0r_viking is offline   Reply With Quote

Reply

Tags
makeparaview


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
OF 1.6 | Ubuntu 9.10 (64bit) | GLIBCXX_3.4.11 not found piprus OpenFOAM Installation 22 February 25, 2010 14:43
Fortran compiler Erik Siemens 2 November 28, 2008 21:05
Intel compiler for linux x86 marcus Siemens 1 November 9, 2006 17:43
Fluent 6.2 and gcc compiler in Sun Blade 2500 Nitu Gupta FLUENT 8 April 29, 2005 14:58
Fortran compiler Arnab Siemens 5 September 14, 2004 04:59


All times are GMT -4. The time now is 21:58.