CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   Paraview Compiling Error (OpenFOAM 2.1.x + openSUSE 12.2) (http://www.cfd-online.com/Forums/openfoam-installation/112536-paraview-compiling-error-openfoam-2-1-x-opensuse-12-2-a.html)

sfigato January 30, 2013 13:16

Paraview Compiling Error (OpenFOAM 2.1.x + openSUSE 12.2)
 
Hi Foamers,

I am using the last repository version of paraview in the last stable release of OpenFoam!
When I run paraFoam the terminal dispalys thi message:


FATAL ERROR: ParaView reader module libraries do not exist

Please build the reader module before continuing:
cd $FOAM_UTILITIES/postProcessing/graphics/PV3Readers
./Allwclean
./Allwmake

ifas@lg-208-linux:~/OpenFOAM/ifas-2.1.x/run/cavity> paraFoam

FATAL ERROR: ParaView reader module libraries do not exist

Please build the reader module before continuing:
cd $FOAM_UTILITIES/postProcessing/graphics/PV3Readers
./Allwclean
./Allwmake


So, to fix the error I did the following steps:


cd $WM_THIRD_PARTY_DIR
./makeParaView


The PV3blockMeshReader and the PV3FoamReader ParaView plugins are compiled as usual for OpenFOAM utilities: cd $FOAM_UTILITIES/postProcessing/graphics/PV3Readers
wmSET
./Allwclean
./Allwmake


The output of the last run script is:


lg-208-linux:/opt/OpenFOAM/OpenFOAM-2.1.x/applications/utilities/postProcessing/graphics/PV3Readers # ./Allwmake
+ '[' -d /opt/OpenFOAM/ThirdParty-2.1.x/platforms/linux64Gcc/paraview-3.12.0 -a -r /opt/OpenFOAM/ThirdParty-2.1.x/platforms/linux64Gcc/paraview-3.12.0 ']

Please , Can anyone knows How can I fix such problem?

Thx
Marco

sfigato January 30, 2013 13:17

Sorry,

I was wrong!
I am using OpenFOAM 2.1.x

Marco

wyldckat January 30, 2013 13:35

Hi Marco,

Which Linux version are you using and which instructions have you followed for installing OpenFOAM 2.1.x?

Best regards,
Bruno

sfigato January 30, 2013 13:39

HI again Bruno,


the version is openSuse 2.2. I have followed all the passages described in the official website. Moreover, I have also compiled a debug version and made two `alias` in the root bashrc file for 'Opt ' and ´Debug´.

It Seems like. I do not have the paraview library...

Other question..Do I need to compile aal third part?? (I did)

Regards
MARCO

sfigato January 30, 2013 13:40

Sorry..Opensuse 12.2

wyldckat January 30, 2013 13:41

OK, then try these instructions instead: http://openfoamwiki.net/index.php/In...#openSUSE_12.2 - You can jump straight to point #7

And keep in mind that you can edit your own posts! No need to post two consecutive posts in a short time ;)

sfigato January 30, 2013 13:43

Roger!!

Thx

Marco

Bruno..one more question, just in case..! You suppose that I need to cancel everything regarding OpenFoam on my computer (pyFoam , swak...and so on) because I cannot fix the error and I want to istall it again. What should I do in linux?

sfigato January 30, 2013 14:05

Hi Bruno,

..no way! I followed all the passages that you have suggested to me. This is the output:


lg-208-linux:/opt/OpenFOAM/OpenFOAM-2.1.x/applications/utilities/postProcessing/graphics/PV3Readers # wmSET $FOAM_SETTINGS
If 'wmSET' is not a typo you can use command-not-found to lookup the package that contains it, like this:
cnf wmSET
lg-208-linux:/opt/OpenFOAM/OpenFOAM-2.1.x/applications/utilities/postProcessing/graphics/PV3Readers # lsAllwclean Allwmake PV3blockMeshReader PV3FoamReader vtkPV3Readers
lg-208-linux:/opt/OpenFOAM/OpenFOAM-2.1.x/applications/utilities/postProcessing/graphics/PV3Readers # ./Allwclean
+ wclean libso vtkPV3Readers
./Allwclean: Zeile 5: wclean: Kommando nicht gefunden.
+ PV3blockMeshReader/Allwclean
+ rm -f '/libPV3blockMeshReader*'
+ rm -rf PV3blockMeshReader/Make
+ wclean libso vtkPV3blockMesh
PV3blockMeshReader/Allwclean: Zeile 9: wclean: Kommando nicht gefunden.
+ PV3FoamReader/Allwclean
+ rm -f '/libPV3FoamReader*'
+ rm -rf PV3FoamReader/Make
+ wclean libso vtkPV3Foam
PV3FoamReader/Allwclean: Zeile 9: wclean: Kommando nicht gefunden.
lg-208-linux:/opt/OpenFOAM/OpenFOAM-2.1.x/applications/utilities/postProcessing/graphics/PV3Readers # ./Allwmake
+ '[' -d '' -a -r '' ']'

wyldckat January 30, 2013 16:51

Hi Marco,

Building directly as root is not a good idea, but... oh well :rolleyes:...

This part I'm telling you to build (namely ParaView) does not require rebuilding OpenFOAM itself.

As for the commands themselves, I was assuming that you already knew that when compiling as root, you need to (re)activate the OpenFOAM environment once again. Namely, run the following command before you try to build ParaView and/or the plugins:
Code:

source /opt/OpenFOAM/OpenFOAM/OpenFOAM-2.1.1/etc/bashrc
Best regards,
Bruno

sfigato January 31, 2013 02:55

Good Morning Bruno,

I have tried again to follow the instruction that you have posted but without any results! What can I try more. Moreover, I still do not understand if I have to run ./Allwmake in ThirdPart folder or not.

Anyway, this is the final output of paraview istallation:

Installation complete for paraview-3.12.0
Set environment variables:

export ParaView_DIR=/opt/OpenFOAM/ThirdParty-2.1.x/platforms/linux64Gcc/paraview-3.12.0
export PATH=$ParaView_DIR/bin:$PATH
export PV_PLUGIN_PATH=$FOAM_LIBBIN/paraview-3.12
---

Done


Again. I compiled in PV3Readers directory with this output, that should be ok



Allwmake
+ '[' -d /opt/OpenFOAM/ThirdParty-2.1.x/platforms/linux64Gcc/paraview-3.12.0 -a -r /opt/OpenFOAM/ThirdParty-2.1.x/platforms/linux64Gcc/paraview-3.12.0 ']'
+ '[' -n /opt/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64GccDPOpt/lib/paraview-3.12 ']'
+ '[' -n g++ ']'
+ export CXX=g++
+ CXX=g++
+ wmake libso vtkPV3Readers
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 -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/opt/OpenFOAM/ThirdParty-2.1.x/platforms/linux64Gcc/paraview-3.12.0/include/paraview-3.12 -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.1.x/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/vtkPV3Readers.o
'/opt/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64GccDPOpt/lib/libvtkPV3Readers.so' is up to date.
+ PV3blockMeshReader/Allwmake
+ '[' -d /opt/OpenFOAM/ThirdParty-2.1.x/platforms/linux64Gcc/paraview-3.12.0 -a -r /opt/OpenFOAM/ThirdParty-2.1.x/platforms/linux64Gcc/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 -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/opt/OpenFOAM/OpenFOAM-2.1.x/src/meshTools/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.1.x/src/mesh/blockMesh/lnInclude -I/opt/OpenFOAM/ThirdParty-2.1.x/platforms/linux64Gcc/paraview-3.12.0/include/paraview-3.12 -I../../vtkPV3Readers/lnInclude -I../PV3blockMeshReader -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.1.x/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/vtkPV3blockMesh.o
SOURCE=vtkPV3blockMeshConvert.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.1.x/src/meshTools/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.1.x/src/mesh/blockMesh/lnInclude -I/opt/OpenFOAM/ThirdParty-2.1.x/platforms/linux64Gcc/paraview-3.12.0/include/paraview-3.12 -I../../vtkPV3Readers/lnInclude -I../PV3blockMeshReader -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.1.x/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/vtkPV3blockMeshConvert.o
SOURCE=vtkPV3blockMeshUtils.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.1.x/src/meshTools/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.1.x/src/mesh/blockMesh/lnInclude -I/opt/OpenFOAM/ThirdParty-2.1.x/platforms/linux64Gcc/paraview-3.12.0/include/paraview-3.12 -I../../vtkPV3Readers/lnInclude -I../PV3blockMeshReader -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.1.x/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/vtkPV3blockMeshUtils.o
'/opt/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64GccDPOpt/lib/libvtkPV3blockMesh.so' is up to date.
+ cd PV3blockMeshReader
+ mkdir -p Make/linux64GccDPOpt
+ cd Make/linux64GccDPOpt
+ cmake ../..
-- The C compiler identification is GNU 4.7.1
-- The CXX compiler identification is GNU 4.7.1
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/g++
-- Check for working CXX compiler: /usr/bin/g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Loading ParaView CMake commands
-- Loading ParaView CMake commands - done
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found.
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found.
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found.
-- Found Qt4: /usr/bin/qmake (found version "4.8.1")
-- Configuring done
-- Generating done
-- Build files have been written to: /opt/OpenFOAM/OpenFOAM-2.1.x/applications/utilities/postProcessing/graphics/PV3Readers/PV3blockMeshReader/PV3blockMeshReader/Make/linux64GccDPOpt
+ make
[ 5%] Generating moc_PV3blockMeshReader_SM_Plugin.cxx
[ 11%] Generating qrc_PV3blockMeshReader_SM.cxx
[ 17%] Generating moc_pqPV3blockMeshReaderPanel.cxx
[ 23%] Generating moc_pqPV3blockMeshReaderPanelImplementation.cxx
[ 29%] Generating vtkPV3blockMeshReaderClientServer.cxx
[ 35%] Generating vtkSMXML_PV3blockMeshReader_SM.h
-- Generate module: PV3blockMeshReader_SM
Scanning dependencies of target PV3blockMeshReader_SM
[ 41%] Building CXX object CMakeFiles/PV3blockMeshReader_SM.dir/qrc_PV3blockMeshReader_SM.cxx.o
[ 47%] Building CXX object CMakeFiles/PV3blockMeshReader_SM.dir/pqPV3blockMeshReaderPanel.cxx.o
[ 52%] Building CXX object CMakeFiles/PV3blockMeshReader_SM.dir/moc_pqPV3blockMeshReaderPanel.cxx.o
[ 58%] Building CXX object CMakeFiles/PV3blockMeshReader_SM.dir/pqPV3blockMeshReaderPanelImplementation.cxx.o
[ 64%] Building CXX object CMakeFiles/PV3blockMeshReader_SM.dir/moc_pqPV3blockMeshReaderPanelImplementation.cxx.o
[ 70%] Building CXX object CMakeFiles/PV3blockMeshReader_SM.dir/vtkPV3blockMeshReader.cxx.o
[ 76%] Building CXX object CMakeFiles/PV3blockMeshReader_SM.dir/vtkPV3blockMeshReaderClientServer.cxx.o
[ 82%] Building CXX object CMakeFiles/PV3blockMeshReader_SM.dir/PV3blockMeshReader_SMInit.cxx.o
[ 88%] Building CXX object CMakeFiles/PV3blockMeshReader_SM.dir/vtkSMPV3blockMeshReader_SMInstantiator.cxx.o
[ 94%] Building CXX object CMakeFiles/PV3blockMeshReader_SM.dir/PV3blockMeshReader_SM_Plugin.cxx.o
[100%] Building CXX object CMakeFiles/PV3blockMeshReader_SM.dir/moc_PV3blockMeshReader_SM_Plugin.cxx.o
Linking CXX shared library /opt/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64GccDPOpt/lib/paraview-3.12/libPV3blockMeshReader_SM.so
[100%] Built target PV3blockMeshReader_SM
+ PV3FoamReader/Allwmake
+ '[' -d /opt/OpenFOAM/ThirdParty-2.1.x/platforms/linux64Gcc/paraview-3.12.0 -a -r /opt/OpenFOAM/ThirdParty-2.1.x/platforms/linux64Gcc/paraview-3.12.0 ']'
+ wmake libso vtkPV3Foam
wmakeLnInclude: linking include files to ./lnInclude
Making dependency list for source file vtkPV3Foam.C
Making dependency list for source file vtkPV3FoamFields.C
Making dependency list for source file vtkPV3FoamMesh.C
Making dependency list for source file vtkPV3FoamMeshLagrangian.C
Making dependency list for source file vtkPV3FoamMeshPatch.C
Making dependency list for source file vtkPV3FoamMeshSet.C
Making dependency list for source file vtkPV3FoamMeshVolume.C
Making dependency list for source file vtkPV3FoamMeshZone.C
Making dependency list for source file vtkPV3FoamUpdateInfo.C
Making dependency list for source file vtkPV3FoamUtils.C
SOURCE=vtkPV3Foam.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.1.x/src/meshTools/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.1.x/src/finiteVolume/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.1.x/src/lagrangian/basic/lnInclude -I../../vtkPV3Readers/lnInclude -I../PV3FoamReader -I/opt/OpenFOAM/ThirdParty-2.1.x/platforms/linux64Gcc/paraview-3.12.0/include/paraview-3.12 -DHAS_VTK_POLYHEDRON -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.1.x/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/vtkPV3Foam.o
SOURCE=vtkPV3FoamFields.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.1.x/src/meshTools/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.1.x/src/finiteVolume/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.1.x/src/lagrangian/basic/lnInclude -I../../vtkPV3Readers/lnInclude -I../PV3FoamReader -I/opt/OpenFOAM/ThirdParty-2.1.x/platforms/linux64Gcc/paraview-3.12.0/include/paraview-3.12 -DHAS_VTK_POLYHEDRON -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.1.x/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/vtkPV3FoamFields.o
SOURCE=vtkPV3FoamMesh.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.1.x/src/meshTools/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.1.x/src/finiteVolume/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.1.x/src/lagrangian/basic/lnInclude -I../../vtkPV3Readers/lnInclude -I../PV3FoamReader -I/opt/OpenFOAM/ThirdParty-2.1.x/platforms/linux64Gcc/paraview-3.12.0/include/paraview-3.12 -DHAS_VTK_POLYHEDRON -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.1.x/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/vtkPV3FoamMesh.o
SOURCE=vtkPV3FoamMeshLagrangian.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.1.x/src/meshTools/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.1.x/src/finiteVolume/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.1.x/src/lagrangian/basic/lnInclude -I../../vtkPV3Readers/lnInclude -I../PV3FoamReader -I/opt/OpenFOAM/ThirdParty-2.1.x/platforms/linux64Gcc/paraview-3.12.0/include/paraview-3.12 -DHAS_VTK_POLYHEDRON -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.1.x/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/vtkPV3FoamMeshLagrangian.o
SOURCE=vtkPV3FoamMeshPatch.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.1.x/src/meshTools/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.1.x/src/finiteVolume/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.1.x/src/lagrangian/basic/lnInclude -I../../vtkPV3Readers/lnInclude -I../PV3FoamReader -I/opt/OpenFOAM/ThirdParty-2.1.x/platforms/linux64Gcc/paraview-3.12.0/include/paraview-3.12 -DHAS_VTK_POLYHEDRON -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.1.x/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/vtkPV3FoamMeshPatch.o
SOURCE=vtkPV3FoamMeshSet.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.1.x/src/meshTools/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.1.x/src/finiteVolume/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.1.x/src/lagrangian/basic/lnInclude -I../../vtkPV3Readers/lnInclude -I../PV3FoamReader -I/opt/OpenFOAM/ThirdParty-2.1.x/platforms/linux64Gcc/paraview-3.12.0/include/paraview-3.12 -DHAS_VTK_POLYHEDRON -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.1.x/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/vtkPV3FoamMeshSet.o
SOURCE=vtkPV3FoamMeshVolume.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.1.x/src/meshTools/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.1.x/src/finiteVolume/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.1.x/src/lagrangian/basic/lnInclude -I../../vtkPV3Readers/lnInclude -I../PV3FoamReader -I/opt/OpenFOAM/ThirdParty-2.1.x/platforms/linux64Gcc/paraview-3.12.0/include/paraview-3.12 -DHAS_VTK_POLYHEDRON -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.1.x/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/vtkPV3FoamMeshVolume.o
SOURCE=vtkPV3FoamMeshZone.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.1.x/src/meshTools/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.1.x/src/finiteVolume/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.1.x/src/lagrangian/basic/lnInclude -I../../vtkPV3Readers/lnInclude -I../PV3FoamReader -I/opt/OpenFOAM/ThirdParty-2.1.x/platforms/linux64Gcc/paraview-3.12.0/include/paraview-3.12 -DHAS_VTK_POLYHEDRON -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.1.x/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/vtkPV3FoamMeshZone.o
SOURCE=vtkPV3FoamUpdateInfo.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.1.x/src/meshTools/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.1.x/src/finiteVolume/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.1.x/src/lagrangian/basic/lnInclude -I../../vtkPV3Readers/lnInclude -I../PV3FoamReader -I/opt/OpenFOAM/ThirdParty-2.1.x/platforms/linux64Gcc/paraview-3.12.0/include/paraview-3.12 -DHAS_VTK_POLYHEDRON -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.1.x/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/vtkPV3FoamUpdateInfo.o
SOURCE=vtkPV3FoamUtils.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.1.x/src/meshTools/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.1.x/src/finiteVolume/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.1.x/src/lagrangian/basic/lnInclude -I../../vtkPV3Readers/lnInclude -I../PV3FoamReader -I/opt/OpenFOAM/ThirdParty-2.1.x/platforms/linux64Gcc/paraview-3.12.0/include/paraview-3.12 -DHAS_VTK_POLYHEDRON -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.1.x/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/vtkPV3FoamUtils.o
'/opt/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64GccDPOpt/lib/libvtkPV3Foam.so' is up to date.
+ cd PV3FoamReader
+ mkdir -p Make/linux64GccDPOpt
+ cd Make/linux64GccDPOpt
+ cmake ../..
-- The C compiler identification is GNU 4.7.1
-- The CXX compiler identification is GNU 4.7.1
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/g++
-- Check for working CXX compiler: /usr/bin/g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Loading ParaView CMake commands
-- Loading ParaView CMake commands - done
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found.
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found.
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found.
-- Found Qt4: /usr/bin/qmake (found version "4.8.1")
-- Configuring done
-- Generating done
-- Build files have been written to: /opt/OpenFOAM/OpenFOAM-2.1.x/applications/utilities/postProcessing/graphics/PV3Readers/PV3FoamReader/PV3FoamReader/Make/linux64GccDPOpt
+ make
[ 5%] Generating moc_PV3FoamReader_SM_Plugin.cxx
[ 11%] Generating qrc_PV3FoamReader_SM.cxx
[ 17%] Generating moc_pqPV3FoamReaderPanel.cxx
[ 23%] Generating moc_pqPV3FoamReaderPanelImplementation.cxx
[ 29%] Generating vtkPV3FoamReaderClientServer.cxx
[ 35%] Generating vtkSMXML_PV3FoamReader_SM.h
-- Generate module: PV3FoamReader_SM
Scanning dependencies of target PV3FoamReader_SM
[ 41%] Building CXX object CMakeFiles/PV3FoamReader_SM.dir/qrc_PV3FoamReader_SM.cxx.o
[ 47%] Building CXX object CMakeFiles/PV3FoamReader_SM.dir/pqPV3FoamReaderPanel.cxx.o
[ 52%] Building CXX object CMakeFiles/PV3FoamReader_SM.dir/moc_pqPV3FoamReaderPanel.cxx.o
[ 58%] Building CXX object CMakeFiles/PV3FoamReader_SM.dir/pqPV3FoamReaderPanelImplementation.cxx.o
[ 64%] Building CXX object CMakeFiles/PV3FoamReader_SM.dir/moc_pqPV3FoamReaderPanelImplementation.cxx.o
[ 70%] Building CXX object CMakeFiles/PV3FoamReader_SM.dir/vtkPV3FoamReader.cxx.o
[ 76%] Building CXX object CMakeFiles/PV3FoamReader_SM.dir/vtkPV3FoamReaderClientServer.cxx.o
[ 82%] Building CXX object CMakeFiles/PV3FoamReader_SM.dir/PV3FoamReader_SMInit.cxx.o
[ 88%] Building CXX object CMakeFiles/PV3FoamReader_SM.dir/vtkSMPV3FoamReader_SMInstantiator.cxx.o
[ 94%] Building CXX object CMakeFiles/PV3FoamReader_SM.dir/PV3FoamReader_SM_Plugin.cxx.o
[100%] Building CXX object CMakeFiles/PV3FoamReader_SM.dir/moc_PV3FoamReader_SM_Plugin.cxx.o
Linking CXX shared library /opt/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64GccDPOpt/lib/paraview-3.12/libPV3FoamReader_SM.so
[100%] Built target PV3FoamReader_SM


Though, I run parafoam in the cavity case ad it does not work
FATAL ERROR: ParaView reader module libraries do not exist

Please build the reader module before continuing:
cd $FOAM_UTILITIES/postProcessing/graphics/PV3Readers
./Allwclean
./Allwmake

Please. I need to fix this problem! Bruno (or anyone foamers) can help me?

Thx in advance
Marco

wyldckat January 31, 2013 05:46

Hi Marco,

I'm guessing all you now need to do is.... start a new terminal! ;)
Or run that other command that didn't work the other time, as normal user (not as root):
Code:

wmSET $FOAM_SETTINGS
Best regards,
Bruno

sfigato January 31, 2013 05:56

Hi Bruno,

I do not know what exactly happened but I finally got my paraView! Now I have the last question!
I built patraView for 'OPT' mode but not for 'DEBUG' mode.

Do I need it or I can skip it?
I mean..I can use the debug mode to debbaging and switch for 'OPT' mode just for post-processing!..right??

Regards
Marco

wyldckat January 31, 2013 06:01

Hi Marco,

As you can see:
Quote:

Code:

ParaView_DIR=/opt/OpenFOAM/ThirdParty-2.1.x/platforms/linux64Gcc/paraview-3.12.0

ParaView doesn't have to be re-built.

But the plug-ins:
Quote:

Code:

/opt/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64GccDPOpt/lib/paraview-3.12

Do have to be rebuilt. As root and in debug mode. Or do this, as root:
Code:

ln -s /opt/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64GccDPOpt/lib/paraview-3.12 /opt/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64GccDPDebug/lib/paraview-3.12
Best regards,
Bruno

sfigato January 31, 2013 06:10

Thanks Bruno,


I did. Nevertheless when I type paraFoam in DEBUG mode..it displays:


[2] 4780
ifas@lg-208-linux:~/OpenFOAM/ifas-2.1.x/run/cavity> created temporary 'cavity.OpenFOAM'
Read float past end of buffer
Read float past end of buffer
Read float past end of buffer
Read float past end of buffer
Failed to load data file: cavity.OpenFOAM

[2]+ Fertig paraFoam

It is like that paraView cannot recognize which kind of file cavity.OpenFOAM has!
Bruno what can I do more?? (this is the last step to fix the whole setup)

Best Regards
Marco

wyldckat January 31, 2013 09:19

Hi Marco,

You didn't mention which steps you did ;)

I forgot that using the symbolic link might be a bad idea, since the debug version might not had the symbols in the same place.
Therefore, I believe these instructions should work:
  1. Log in as root. In case you don't already know, you can do it by running:
    Code:

    su -
  2. Activate the OpenFOAM debug environment:
    Code:

    source /opt/OpenFOAM/OpenFOAM/OpenFOAM-2.1.1/etc/bashrc WM_COMPILE_OPTION=Debug
  3. Remove the symbolic link I wrote about before:
    Code:

    unlink /opt/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64GccDPDebug/lib/paraview-3.12
  4. Build the plug-ins:
    Code:

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

  5. Log out from root.
    Code:

    exit
  6. Update the environment, so that it will pick up the plugins:
    Code:

    wmSET $FOAM_SETTINGS WM_COMPILE_OPTION=Debug
  7. And then try it on a tutorial.
Best regards,
Bruno

sfigato January 31, 2013 09:31

Hi Bruno,

this is the last step, I promise..after that you will not hear about me for (at least)....two hours..ahahah!

I am a little afraid to run yours hints. This because I have two bash files in Openfoam-2.1.x/etc.
They are: bashrc and bashrc_debug. So my bash file in the root/etc folder is setted like that:

alias startFoam='. /opt/OpenFOAM/OpenFOAM-2.1.x/etc/bashrc'
alias startFoamDebug='. /opt/OpenFOAM/OpenFOAM-2.1.x/etc/bashrc_debug'


So, do youthink that yours commands are still valid for such situation?

Best Regards
Marco

wyldckat January 31, 2013 09:37

Hi Marco,

It depends on what's different between those two files. My assumption is that the "bashrc_debug" file you've got is equivalent to this:
Code:

source /opt/OpenFOAM/OpenFOAM/OpenFOAM-2.1.1/etc/bashrc WM_COMPILE_OPTION=Debug
This is if and only if the single difference between "bashrc" and "bashrc_debug" is the option chosen for the variable "WM_COMPILE_OPTION".

For more information about this: http://www.cfd-online.com/Forums/blo...vironment.html

Best regards,
Bruno

sfigato January 31, 2013 09:47

Exact Bruno,

the only difference is that in bashrc_debug the debug option is swiched on (in accoding to what you have suggested in http://www.cfd-online.com/Forums/ope...oam-1-6-a.html).

So I can run your hints except for the source..but before I have to run startFoamDebug (in according to my baschrc file in root/etc)!

Do you agree with me? (I am not very good with linux and I m always a little bit afraid ta break something)

Greets
Marco

wyldckat January 31, 2013 10:02

Hi Marco,

I guess you didn't read the link I gave in the previous post :rolleyes:... The source command is identical to the dot symbol, when used as a command.

The aliases will probably not be passed from normal user to root, unless you've also edited root's "~/.bashrc" for adding those aliases.

Doing any one of these lines should result in the same ... result, i.e. have the OpenFOAM environment activated in Debug state:
Code:

source /opt/OpenFOAM/OpenFOAM/OpenFOAM-2.1.1/etc/bashrc WM_COMPILE_OPTION=Debug
. /opt/OpenFOAM/OpenFOAM/OpenFOAM-2.1.1/etc/bashrc WM_COMPILE_OPTION=Debug

source /opt/OpenFOAM/OpenFOAM/OpenFOAM-2.1.1/etc/bashrc_debug
. /opt/OpenFOAM/OpenFOAM/OpenFOAM-2.1.1/etc/bashrc_debug

Best regards,
Bruno

sfigato January 31, 2013 10:25

Hi Bruno,

yes I red it and I did not understand (I am not a very good linux user). Anyway, when I type

source /opt/OpenFOAM/OpenFOAM/OpenFOAM-2.1.1/etc/bashrc_debug . /opt/OpenFOAM/OpenFOAM/OpenFOAM-2.1.1/etc/bashrc_debug

I automatically exit from the root mode and I cannot compile \makeparaView (and I cannot compile the reader). So I need to enter again in the root mode. This drives to the fact that I need to source again (it is as a circle).

What can I do?

Greets
Marco


All times are GMT -4. The time now is 06:18.