|
[Sponsors] |
February 25, 2014, 10:49 |
PV3FoamReader and SUSE SLE-11 SP 3
|
#1 |
New Member
Join Date: Feb 2014
Posts: 6
Rep Power: 12 |
gcc (SUSE Linux) 4.7.3
mpirun (Open MPI) 1.7.2 I installed OpenFOAM 2.2.x for Suse SLE-11 SP3 from this repository: https://build.opensuse.org/package/s...ge=openfoam22x I downloaded Third-Party-2.2.2.tgz i unzip it and move it to /opt/OpenFOAM/Third-Party-2.2.x ./makeParaView seems to work. Code:
cd /opt/OpenFOAM/OpenFOAM-2.2.x/applications/utilities/postProcessing/graphics/PV3Readers/ wmSet ./Allwclean + wclean libso vtkPV3Readers wclean vtkPV3Readers + PV3blockMeshReader/Allwclean + rm -f '/opt/OpenFOAM/OpenFOAM-2.2.x/platforms/linux64GccDPOpt/lib/libPV3blockMeshReader*' + rm -rf PV3blockMeshReader/Make + wclean libso vtkPV3blockMesh wclean vtkPV3blockMesh + PV3FoamReader/Allwclean + rm -f '/opt/OpenFOAM/OpenFOAM-2.2.x/platforms/linux64GccDPOpt/lib/libPV3FoamReader*' + rm -rf PV3FoamReader/Make + wclean libso vtkPV3Foam wclean vtkPV3Foam Now i tried ./Allwmake Code:
+ cd . + '[' -d /opt/OpenFOAM/ThirdParty-2.2.x/platforms/linux64Gcc/paraview-3.12.0 -a -r /opt/OpenFOAM/ThirdParty-2.2.x/platforms/linux64Gcc/paraview-3.12.0 ']' + '[' -n /opt/OpenFOAM/OpenFOAM-2.2.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 + PV3blockMeshReader/Allwmake + '[' -d /opt/OpenFOAM/ThirdParty-2.2.x/platforms/linux64Gcc/paraview-3.12.0 -a -r /opt/OpenFOAM/ThirdParty-2.2.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 /usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: cannot find -lblockMesh collect2: ld returned 1 exit status make: *** [/opt/OpenFOAM/OpenFOAM-2.2.x/platforms/linux64GccDPOpt/lib/libvtkPV3blockMesh.so] Fehler 1 + cd PV3blockMeshReader + mkdir -p Make/linux64GccDPOpt + cd Make/linux64GccDPOpt + cmake ../.. + make /usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: cannot find -lOpenFOAM /usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: cannot find -lblockMesh /usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: cannot find -lvtkPV3blockMesh collect2: ld returned 1 exit status make[2]: *** [/opt/OpenFOAM/OpenFOAM-2.2.x/platforms/linux64GccDPOpt/lib/paraview-3.12/libPV3blockMeshReader_SM.so] Fehler 1 make[1]: *** [CMakeFiles/PV3blockMeshReader_SM.dir/all] Fehler 2 make: *** [all] Fehler 2 Last edited by jokergermany.de.vu; February 25, 2014 at 12:34. |
|
February 27, 2014, 03:46 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128 |
Greetings jokergermany.de.vu and welcome to the forum!
It's possible that the people that created those packages are using the default ParaView version that comes with openSUSE. The simplest hack to use the system's ParaView version (or even the one you've already built now) is to add the following alias to your "~/.bashrc" file: Code:
paraFoam -builtin Code:
ls -l /opt/OpenFOAM/OpenFOAM-2.2.x/platforms/linux64GccDPOpt/lib/libblockMesh.so ls -l /opt/OpenFOAM/OpenFOAM-2.2.x/platforms/linux64GccDPOpt/lib/libOpenFOAM.so Best regards, Bruno
__________________
|
|
March 4, 2014, 09:57 |
|
#3 |
New Member
Join Date: Feb 2014
Posts: 6
Rep Power: 12 |
Thanks, I've done the two commands from the instructions, but the files sill didn't exist...
Code:
/opt/openfoam/OpenFOAM-2.2.x/platforms/linux64GccDPOpt # ls bin lib Code:
/opt/openfoam/OpenFOAM-2.2.x/platforms/linux64GccDPOpt/lib # ls dummy libOSspecific.o libcompressibleKineticTheoryModel.so libscotchDecomp.so libdistributionModels.so libsolidMixtureProperties.so libedgeMesh.so libsolidProperties.so libextrudeModel.so libsolidSpecie.so libfileFormats.so libspecie.so libhelpTypes.so libsurfMesh.so libjobControl.so libsystemCall.so libkineticTheoryModel.so libthermophysicalFunctions.so liblagrangian.so libtriSurface.so libliquidMixtureProperties.so libvtkPV3Readers.so libliquidProperties.so openmpi-system libmeshTools.so paraview-3.12 libmolecularMeasurements.so postCalc.o libODE.so |
|
March 4, 2014, 10:11 |
|
#4 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128 |
There is something very wrong in that installation. I have 104 "*.so" files inside the folder "lib" in my installation (edit: without counting the ones inside the subfolders!).
I strongly suggest that you remove that installation and build OpenFOAM 2.2.x from source code instead. The following instructions are for 2.2.2: http://openfoamwiki.net/index.php/In...#openSUSE_12.2 - but you can easily adjust your steps, based on the old git instructions, mostly because of the git repository link: http://www.openfoam.org/archive/2.2.2/download/git.php Last edited by wyldckat; March 4, 2014 at 10:13. Reason: see "edit:" |
|
March 5, 2014, 10:29 |
|
#5 |
New Member
Join Date: Feb 2014
Posts: 6
Rep Power: 12 |
Thanks,
i trying to install the git repository now, but when i try to compile OpenFoam i get the following error: Code:
/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: cannot find -lincompressibleTransportModels /usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: cannot find -lincompressibleTurbulenceModel /usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: cannot find -lincompressibleRASModels /usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: cannot find -lincompressibleLESModels /usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: cannot find -lfiniteVolume /usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: cannot find -lbarotropicCompressibilityModel /usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: cannot find -ldynamicMesh /usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: cannot find -ldynamicFvMesh /usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: cannot find -lOpenFOAM |
|
March 5, 2014, 15:04 |
|
#6 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128 |
In the first link I had provided, in step #8, it specifies to execute this command:
Code:
./Allwmake > make.log 2>&1 In addition, even though you've mentioned in the first post that you have gcc 4.7.3, make sure that you also have the GNU C++ compiler of the same version: Code:
gcc --version g++ --version
__________________
|
|
March 6, 2014, 02:26 |
|
#7 |
New Member
Join Date: Feb 2014
Posts: 6
Rep Power: 12 |
Ok the g++ version was too old.
now both are version 4.6.4 I compile OpenFoam at the moment.... |
|
March 6, 2014, 03:36 |
|
#8 |
New Member
Join Date: Feb 2014
Posts: 6
Rep Power: 12 |
Yeah =)
Everything seems to work fine now with the root user. But a user without root rights didn't can run ParaFoam: user: Code:
blub@blubber:~/OpenFOAM/blub-2.2.x/run/motorbike> 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 Code:
blubber:/home/blub/OpenFOAM/blub-2.2.x/run/motorbike # paraFoam created temporary 'motorbike.OpenFOAM' libGL error: failed to load driver: swrast libGL error: Try again with LIBGL_DEBUG=verbose for more details. Code:
wmSet: command not found |
|
March 6, 2014, 05:03 |
|
#9 |
New Member
Join Date: Feb 2014
Posts: 6
Rep Power: 12 |
Ok the solution:
as root: Code:
chmod 777 -R /opt/OpenFoam Code:
cd /opt/OpenFOAM/OpenFOAM-2.2.x/applications/utilities/postProcessing/graphics/PV3Readers/ ./Allwclean ./Allwmake |
|
|
|