CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   Error building ParaVIEW 3.12.0 in CentOS 6.5 (https://www.cfd-online.com/Forums/openfoam-installation/129700-error-building-paraview-3-12-0-centos-6-5-a.html)

wjm February 11, 2014 04:33

Error building ParaVIEW 3.12.0 in CentOS 6.5
 
Hi,
I'm a newbie to CentOS and OpenFOAM. I've installed OpenFOAM 2.2.2 using http://openfoamwiki.net/index.php/In...CentOS_SL_RHEL but when I get to building ParaVIEW in instruction 13, things go awry.

Here's the error that I get during the ./Allmake command:

Code:

[william.mowat@mcsklnx1 PV3Readers]$ ./Allwmake                                                           
wmakeLnInclude: linking include files to ./lnInclude                                                       
Making dependency list for source file vtkPV3Readers.C                                                     
SOURCE=vtkPV3Readers.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -I/home/william.mowat/OpenFOAM/ThirdParty-2.2.2/platforms/linux64Gcc45/paraview-3.12.0/include/paraview-3.12 -IlnInclude -I. -I/home/william.mowat/OpenFOAM/OpenFOAM-2.2.2/src/OpenFOAM/lnInclude -I/home/william.mowat/OpenFOAM/OpenFOAM-2.2.2/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linux64Gcc45DPOpt/vtkPV3Readers.o                                       
'/home/william.mowat/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64Gcc45DPOpt/lib/libvtkPV3Readers.so' is up to date.                                                           
+ '[' -d /home/william.mowat/OpenFOAM/ThirdParty-2.2.2/platforms/linux64Gcc45/paraview-3.12.0 -a -r /home/william.mowat/OpenFOAM/ThirdParty-2.2.2/platforms/linux64Gcc45/paraview-3.12.0 ']'                                                                                                                                                             
+ wmake libso vtkPV3blockMesh                                                                                                                                               
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 -O3  -DNoRepository -ftemplate-depth-100 -I/home/william.mowat/OpenFOAM/OpenFOAM-2.2.2/src/meshTools/lnInclude -I/home/william.mowat/OpenFOAM/OpenFOAM-2.2.2/src/mesh/blockMesh/lnInclude -I/home/william.mowat/OpenFOAM/ThirdParty-2.2.2/platforms/linux64Gcc45/paraview-3.12.0/include/paraview-3.12 -I../../vtkPV3Readers/lnInclude -I../PV3blockMeshReader -IlnInclude -I. -I/home/william.mowat/OpenFOAM/OpenFOAM-2.2.2/src/OpenFOAM/lnInclude -I/home/william.mowat/OpenFOAM/OpenFOAM-2.2.2/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linux64Gcc45DPOpt/vtkPV3blockMesh.o       
SOURCE=vtkPV3blockMeshConvert.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -I/home/william.mowat/OpenFOAM/OpenFOAM-2.2.2/src/meshTools/lnInclude -I/home/william.mowat/OpenFOAM/OpenFOAM-2.2.2/src/mesh/blockMesh/lnInclude -I/home/william.mowat/OpenFOAM/ThirdParty-2.2.2/platforms/linux64Gcc45/paraview-3.12.0/include/paraview-3.12 -I../../vtkPV3Readers/lnInclude -I../PV3blockMeshReader -IlnInclude -I. -I/home/william.mowat/OpenFOAM/OpenFOAM-2.2.2/src/OpenFOAM/lnInclude -I/home/william.mowat/OpenFOAM/OpenFOAM-2.2.2/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linux64Gcc45DPOpt/vtkPV3blockMeshConvert.o                                                                                                                                                                       
SOURCE=vtkPV3blockMeshUtils.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -I/home/william.mowat/OpenFOAM/OpenFOAM-2.2.2/src/meshTools/lnInclude -I/home/william.mowat/OpenFOAM/OpenFOAM-2.2.2/src/mesh/blockMesh/lnInclude -I/home/william.mowat/OpenFOAM/ThirdParty-2.2.2/platforms/linux64Gcc45/paraview-3.12.0/include/paraview-3.12 -I../../vtkPV3Readers/lnInclude -I../PV3blockMeshReader -IlnInclude -I. -I/home/william.mowat/OpenFOAM/OpenFOAM-2.2.2/src/OpenFOAM/lnInclude -I/home/william.mowat/OpenFOAM/OpenFOAM-2.2.2/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linux64Gcc45DPOpt/vtkPV3blockMeshUtils.o                                                                                                                                                                           
'/home/william.mowat/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64Gcc45DPOpt/lib/libvtkPV3blockMesh.so' is up to date.                                                         
+ cd PV3blockMeshReader                                                                                                                                                     
+ mkdir -p Make/linux64Gcc45DPOpt                                                                                                                                           
+ cd Make/linux64Gcc45DPOpt                                                                                                                                                 
+ cmake ../..                                                                                                                                                               
-- The C compiler identification is GNU                                                                                                                                     
-- The CXX compiler identification is GNU                                                                                                                                   
-- Check for working C compiler: /usr/lib64/ccache/gcc                                                                                                                     
-- Check for working C compiler: /usr/lib64/ccache/gcc -- works                                                                                                             
-- Detecting C compiler ABI info                                                                                                                                           
-- Detecting C compiler ABI info - done                                                                                                                                     
-- Check for working CXX compiler: /usr/lib64/ccache/g++                                                                                                                   
-- Check for working CXX compiler: /usr/lib64/ccache/g++ -- works                                                                                                           
-- Detecting CXX compiler ABI info                                                                                                                                         
-- Detecting CXX compiler ABI info - done                                                                                                                                   
-- Loading ParaView CMake commands                                                                                                                                         
-- Loading ParaView CMake commands - done                                                                                                                                   
CMake Error at CMakeLists.txt:43 (QT4_WRAP_CPP):                                                                                                                           
  Unknown CMake command "QT4_WRAP_CPP".                                                                                                                                     


-- Configuring incomplete, errors occurred!

Any help would be appreciated!

Cheers,

Will

wyldckat February 15, 2014 17:36

Greetings Will and welcome to the forum!

Something might have gone wrong during the build process, before this final step.

What do these commands give you?
Code:

cmake --version
qmake-qt4 --version
which paraview

Best regards,
Bruno

wjm February 17, 2014 03:44

Hi Bruno,
Thanks. Here's the terminal output:

[william.mowat@mcsklnx1 ~]$ cmake --version
cmake version 2.6-patch 4
[william.mowat@mcsklnx1 ~]$ qmake-qt4 --version
QMake version 2.01a
Using Qt version 4.6.2 in /usr/lib64
[william.mowat@mcsklnx1 ~]$ which paraview
/usr/bin/which: no paraview in (/Simulia/Commands:/usr/lib64/qt-3.3/bin:/usr/lib64/ccache:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/william.mowat/bin)

Cheers!

Will

wyldckat February 17, 2014 08:40

Hi Will,

Something went wrong in the build process of ParaView. Try running these commands:
Code:

cd $WM_THIRD_PARTY_DIR
./makeParaView -qmake $(which qmake-qt4) > log.makePV 2>&1
gzip log.makePV

Then attach the resulting file "log.makePV.gz" to your next post.

Best regards,
Bruno

wjm February 17, 2014 09:25

Hi Bruno,
Thanks for your help, it's much appreciated! Unfortunately the gzip didn't generate. Here's the error message that I got:

[william.mowat@mcsklnx1 ThirdParty-2.2.2]$ cd $WM_THIRD_PARTY_DIR
[william.mowat@mcsklnx1 ThirdParty-2.2.2]$ ./makeParaView -qmake $(which qmake-qt4) > log.makePV 2>&1

[william.mowat@mcsklnx1 ThirdParty-2.2.2]$ gunzip log.makePV
gzip: log.makePV: unknown suffix -- ignored
[william.mowat@mcsklnx1 ThirdParty-2.2.2]$ ls

Thanks!

Will
p.s. I tried manually compressing the file but it came to 105 kb and couldn't be uploaded.

wyldckat February 17, 2014 09:52

Hi Will,

Sorry, I meant to write "gzip", not "gunzip".
Then try using:
Code:

bz2 log.makePV
(or "bzip2"?)
It should result in a smaller file... or at least I hope so...

Best regards,
Bruno

wjm February 17, 2014 10:02

1 Attachment(s)
Thanks! The bzip2 worked!
Regards,
Will
p.s. I had to manually change the bz2 to gz to enable the file to be uploaded. Although it states .gz it is still a .bz2

wyldckat February 17, 2014 10:07

According to the log file, everything is OK. ParaView should have been built successfully this time.

Now please try the remaining commands:
Code:

cd $FOAM_UTILITIES/postProcessing/graphics/PV3Readers
wmSET $FOAM_SETTINGS
./Allwclean
./Allwmake


wjm February 17, 2014 10:17

Hi Bruno,
It's still making but I think it'll fall over from this extract of the verbose:
[william.mowat@mcsklnx1 ThirdParty-2.2.2]$ cd $FOAM_UTILITIES/postProcessing/graphics/PV3Readers
[william.mowat@mcsklnx1 PV3Readers]$ wmSET $FOAM_SETTINGS
[william.mowat@mcsklnx1 PV3Readers]$ ./Allwclean
+ wclean libso vtkPV3Readers
wclean vtkPV3Readers
+ PV3blockMeshReader/Allwclean
+ rm -f '/home/william.mowat/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64Gcc45DPOpt/lib/libPV3blockMeshReader*'
+ rm -rf PV3blockMeshReader/Make
+ wclean libso vtkPV3blockMesh
wclean vtkPV3blockMesh
+ PV3FoamReader/Allwclean
+ rm -f '/home/william.mowat/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64Gcc45DPOpt/lib/libPV3FoamReader*'
+ rm -rf PV3FoamReader/Make
+ wclean libso vtkPV3Foam
wclean vtkPV3Foam
[william.mowat@mcsklnx1 PV3Readers]$ ./Allwmake
wmakeLnInclude: linking include files to ./lnInclude
Making dependency list for source file vtkPV3Readers.C
SOURCE=vtkPV3Readers.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -I/home/william.mowat/OpenFOAM/ThirdParty-2.2.2/platforms/linux64Gcc45/paraview-3.12.0/include/paraview-3.12 -IlnInclude -I. -I/home/william.mowat/OpenFOAM/OpenFOAM-2.2.2/src/OpenFOAM/lnInclude -I/home/william.mowat/OpenFOAM/OpenFOAM-2.2.2/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64Gcc45DPOpt/vtkPV3Readers.o
'/home/william.mowat/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64Gcc45DPOpt/lib/libvtkPV3Readers.so' is up to date.
+ '[' -d /home/william.mowat/OpenFOAM/ThirdParty-2.2.2/platforms/linux64Gcc45/paraview-3.12.0 -a -r /home/william.mowat/OpenFOAM/ThirdParty-2.2.2/platforms/linux64Gcc45/paraview-3.12.0 ']'
+ wmake libso vtkPV3blockMesh
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 -O3 -DNoRepository -ftemplate-depth-100 -I/home/william.mowat/OpenFOAM/OpenFOAM-2.2.2/src/meshTools/lnInclude -I/home/william.mowat/OpenFOAM/OpenFOAM-2.2.2/src/mesh/blockMesh/lnInclude -I/home/william.mowat/OpenFOAM/ThirdParty-2.2.2/platforms/linux64Gcc45/paraview-3.12.0/include/paraview-3.12 -I../../vtkPV3Readers/lnInclude -I../PV3blockMeshReader -IlnInclude -I. -I/home/william.mowat/OpenFOAM/OpenFOAM-2.2.2/src/OpenFOAM/lnInclude -I/home/william.mowat/OpenFOAM/OpenFOAM-2.2.2/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64Gcc45DPOpt/vtkPV3blockMesh.o
SOURCE=vtkPV3blockMeshConvert.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -I/home/william.mowat/OpenFOAM/OpenFOAM-2.2.2/src/meshTools/lnInclude -I/home/william.mowat/OpenFOAM/OpenFOAM-2.2.2/src/mesh/blockMesh/lnInclude -I/home/william.mowat/OpenFOAM/ThirdParty-2.2.2/platforms/linux64Gcc45/paraview-3.12.0/include/paraview-3.12 -I../../vtkPV3Readers/lnInclude -I../PV3blockMeshReader -IlnInclude -I. -I/home/william.mowat/OpenFOAM/OpenFOAM-2.2.2/src/OpenFOAM/lnInclude -I/home/william.mowat/OpenFOAM/OpenFOAM-2.2.2/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64Gcc45DPOpt/vtkPV3blockMeshConvert.o
SOURCE=vtkPV3blockMeshUtils.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -I/home/william.mowat/OpenFOAM/OpenFOAM-2.2.2/src/meshTools/lnInclude -I/home/william.mowat/OpenFOAM/OpenFOAM-2.2.2/src/mesh/blockMesh/lnInclude -I/home/william.mowat/OpenFOAM/ThirdParty-2.2.2/platforms/linux64Gcc45/paraview-3.12.0/include/paraview-3.12 -I../../vtkPV3Readers/lnInclude -I../PV3blockMeshReader -IlnInclude -I. -I/home/william.mowat/OpenFOAM/OpenFOAM-2.2.2/src/OpenFOAM/lnInclude -I/home/william.mowat/OpenFOAM/OpenFOAM-2.2.2/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64Gcc45DPOpt/vtkPV3blockMeshUtils.o
'/home/william.mowat/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64Gcc45DPOpt/lib/libvtkPV3blockMesh.so' is up to date.
+ cd PV3blockMeshReader
+ mkdir -p Make/linux64Gcc45DPOpt
+ cd Make/linux64Gcc45DPOpt
+ cmake ../..
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /home/william.mowat/OpenFOAM/ThirdParty-2.2.2/platforms/linux64/gcc-4.5.2/bin/gcc
-- Check for working C compiler: /home/william.mowat/OpenFOAM/ThirdParty-2.2.2/platforms/linux64/gcc-4.5.2/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /home/william.mowat/OpenFOAM/ThirdParty-2.2.2/platforms/linux64/gcc-4.5.2/bin/g++
-- Check for working CXX compiler: /home/william.mowat/OpenFOAM/ThirdParty-2.2.2/platforms/linux64/gcc-4.5.2/bin/g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Loading ParaView CMake commands
-- Loading ParaView CMake commands - done
CMake Error at CMakeLists.txt:43 (QT4_WRAP_CPP):
Unknown CMake command "QT4_WRAP_CPP".


-- Configuring incomplete, errors occurred!

Cheers,

Will

p.s. have just installed the rhel 6.5 version of OpenFOAM-2.3.0 with its associated softwares and all working well.


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