CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   Installing OpenFOAM 1.5 on OpenSUSE 11.1 (https://www.cfd-online.com/Forums/openfoam-installation/63423-installing-openfoam-1-5-opensuse-11-1-a.html)

StructureITA April 8, 2009 04:18

Installing OpenFOAM 1.5 on OpenSUSE 11.1
 
Hello everybody, I'm going directly to explain you my doubts.

I'm a newbie both in Linux and in OpenFOAM and I am having some troubles in trying to install this software on my new OS. I tried to follow the instructions pointed in albertopassalacqua's blog and in openFOAM's README file. Despite this, I don't understand how to manage the bash and bashrc configuration.

Moreover, I would like to ask you: I didn't put the OpenFOAM files in Home folder, but in the administrator inner one. Can this be a source of problems?

santos April 8, 2009 05:33

Hi,

You need to edit your ~/.bashrc file and add the following at the bottom:

. <path_to_your_OpenFOAM_directory>/OpenFOAM-1.5/etc/bashrc

Replace <path_to_your_OpenFOAM_directory> with your path.

Save the file, close the terminal, and open a new one.

Run the following command:

foamInstallationTest

and post here the output, if errors do exist.

Regards,
Jose Santos

alberto April 8, 2009 12:26

The exact line to add to your

~/.bashrc

file is:

. $HOME/OpenFOAM/OpenFOAM-1.5.x/etc/bashrc

if you are using OpenFOAM 1.5.x from git.

Regards,
A.

StructureITA April 11, 2009 17:46

When I execute foamInstallationTest, I obtain this error:

Quote:

Executing ./foamInstallationTest:


Checking basic setup...
-------------------------------------------------------------------------------

FATAL ERROR: OpenFOAM environment not configured.

Please refer to the installation section of the README file:
<OpenFOAM installation dir>/OpenFOAM-1.5/README
to source the OpenFOAM environment.
I don't know what else I have to do. Can someone help me?

alberto April 11, 2009 20:40

Quote:

Moreover, I would like to ask you: I didn't put the OpenFOAM files in Home folder, but in the administrator inner one. Can this be a source of problems
Yes. The scripts assume you put the package in a directory called OpenFOAM in your home directory.

For a centralized installation see here, but it is quite useless if the machine is not shared with others: https://www.mfix.org/mwiki/index.php...l_Installation

Best regards,

StructureITA April 12, 2009 03:24

I tried to follow every single instruction, but I still get in trouble. Now, I continue to receive the preceding by foamInstallationTest and when I "update the environment variables", I obtain this message:

Quote:

bash: /root/OpenFOAM/OpenFOAM-1.5/bin/foamCleanPath: No such file or directory
bash: /root/OpenFOAM/OpenFOAM-1.5/bin/foamCleanPath: No such file or directory
bash: /root/OpenFOAM/OpenFOAM-1.5/bin/foamCleanPath: No such file or directory
bash: /root/OpenFOAM/OpenFOAM-1.5/etc/settings.sh: No such file or directory
bash: /root/OpenFOAM/OpenFOAM-1.5/etc/aliases.sh: No such file or directory
bash: /root/OpenFOAM/OpenFOAM-1.5/etc/apps/paraview3/bashrc: No such file or directory
bash: /root/OpenFOAM/OpenFOAM-1.5/etc/apps/cint/bashrc: No such file or directory
bash: /root/OpenFOAM/OpenFOAM-1.5/bin/foamCleanPath: No such file or directory
bash: /root/OpenFOAM/OpenFOAM-1.5/bin/foamCleanPath: No such file or directory
bash: /root/OpenFOAM/OpenFOAM-1.5/bin/foamCleanPath: No such file or directory

StructureITA April 12, 2009 12:53

I've read in the forum that this problem could be solved removing the # comment sign from the bashrc file. On the contrary, this line has been always uncommented, so I can't really understand where can be the problem with the installation.
Just to be clear in the passages I followed:
  1. I downloaded the OpenFOAM-1.5.General.gtgz and ThirdParty.General.gtgz for Linu 32bit distributions;
  2. I decompressed the program in /home folder as pointed out by the instructions reported in the website;
  3. Finally I followed the instructions reported in the README file and still i can't move from the point in which I am trapped.
Please, HELP! :(

gac April 12, 2009 23:37

Install OpenFOAM as a user not root.

The installation instructions assume the install files are decompressed from an OpenFOAM directory in the user's home directory, i.e.,
/home/yourusername/OpenFOAM
not /home or /root. yourusername is your user name.

After decompressing, you should find directories
/home/yourusername/OpenFOAM/OpenFOAM-1.5
/home/yourusername/OpenFOAM/ThirdParty
Also, manually create a directory
/home/yourusername/OpenFOAM/yourusername-1.5
Another tip -- to check the setting for an environment variable varname use the command
echo $varname
Hope this helps.

gac

alberto April 13, 2009 02:08

Quote:

Originally Posted by gac (Post 212659)
Install OpenFOAM as a user not root.

Also, manually create a directory
/home/yourusername/OpenFOAM/yourusername-1.5

Hi, this directory should actually be created automatically the first time you source openFOAM bash (or csh) configuration script. :)

StructureITA April 13, 2009 04:14

Thank you very much gac, you gave me the chance to make a big step forward in the installation procedure. Now, what I get by foamInstallationTest is:

Quote:

Executing ./foamInstallationTest:


Checking basic setup...
-------------------------------------------------------------------------------
Shell: bash
Host: linux-rmg4
OS: Linux version 2.6.27.21-0.1-pae
-------------------------------------------------------------------------------


Checking main OpenFOAM env variables...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Crit
-------------------------------------------------------------------------------
$WM_PROJECT_INST_DIR /home/Sam/OpenFOAM yes yes
$WM_PROJECT_USER_DIR /home/Sam/OpenFOAM/Sam-1.5 yes no
$WM_THIRD_PARTY_DIR /home/Sam/OpenFOAM/ThirdParty yes yes
-------------------------------------------------------------------------------


Checking the OpenFOAM env variables set on the PATH...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Path Crit
-------------------------------------------------------------------------------
$WM_PROJECT_DIR /home/Sam/OpenFOAM/OpenFOAM-1.5 yes yes yes

$FOAM_APPBIN ...M-1.5/applications/bin/linuxGccDPOpt yes yes yes
$FOAM_USER_APPBIN ...m-1.5/applications/bin/linuxGccDPOpt yes yes no
$WM_DIR /home/Sam/OpenFOAM/OpenFOAM-1.5/wmake yes yes yes
-------------------------------------------------------------------------------


Checking the OpenFOAM env variables set on the LD_LIBRARY_PATH...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Path Crit
-------------------------------------------------------------------------------
$FOAM_LIBBIN ...nFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt yes yes yes
$FOAM_USER_LIBBIN ...m/OpenFOAM/Sam-1.5/lib/linuxGccDPOpt yes yes no
$MPI_ARCH_PATH ...penmpi-1.2.6/platforms/linuxGccDPOpt yes yes yes
-------------------------------------------------------------------------------


Third party software
-------------------------------------------------------------------------------
Software Version Location
-------------------------------------------------------------------------------
gcc 4.3.1 .../OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux/bin/gcc
gzip 1.3.12 /usr/bin/gzip
tar 1.20 /bin/tar
icoFoam
WARNING: Conflicting installations:
OpenFOAM settings : /home/Sam/OpenFOAM/OpenFOAM-1.5/applications/bin/linuxGccDPOpt/icoFoam
current path :
CRITICAL ERROR

-------------------------------------------------------------------------------


Checking networking...
-------------------------------------------------------------------------------
Action Result Crit
-------------------------------------------------------------------------------
Pinging_linux-rmg4 Successful yes
Pinging_localHost Successful yes
Test_rsh: Unsuccessful_connection_refused* yes
Test_ssh: Successful yes
(*) Only one of rsh or ssh is required by the OpenFOAM enviroment.

-------------------------------------------------------------------------------

Base configuration ok.

The foam installation contains 1 critical error(s).

Review the output for warning messages and consult
the installation guide for trouble shooting.

done.
It seems to be an error relating to icoFOAM. The only operation I did was to take the thirdparty software and bring it inside the ThirdParty OpenFOAM directory. Have I to do some further steps?

alberto April 13, 2009 09:36

Hi,

does icoFoam run on one of its tutorial (cavity, for example)?

P.S. You should update to 1.5.x so to get the bugfixes. To do this, use git (see the link you posted to my blog), and recompile OpenFOAM.

Best,

StructureITA April 25, 2009 13:25

I updated the program to 1.5.x through the git repository, but now I obtain 2 errors instead of 1... :rolleyes: I show you the result of foamInstallationTest:

Quote:

Executing ./foamInstallationTest:


Checking basic setup...
-------------------------------------------------------------------------------
Shell: bash
Host: linux-jw4g
OS: Linux version 2.6.27.21-0.1-pae
-------------------------------------------------------------------------------


Checking main OpenFOAM env variables...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Crit
-------------------------------------------------------------------------------
$WM_PROJECT_INST_DIR /home/Sam/OpenFOAM yes yes
$WM_PROJECT_USER_DIR /home/Sam/OpenFOAM/Sam-1.5.x yes no
$WM_THIRD_PARTY_DIR /home/Sam/OpenFOAM/ThirdParty yes yes
-------------------------------------------------------------------------------


Checking the OpenFOAM env variables set on the PATH...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Path Crit
-------------------------------------------------------------------------------
$WM_PROJECT_DIR /home/Sam/OpenFOAM/OpenFOAM-1.5.x yes yes yes

$FOAM_APPBIN ...1.5.x/applications/bin/linuxGccDPOpt yes yes yes
$FOAM_USER_APPBIN ...1.5.x/applications/bin/linuxGccDPOpt yes yes no
$WM_DIR /home/Sam/OpenFOAM/OpenFOAM-1.5.x/wmake yes yes yes
-------------------------------------------------------------------------------


Checking the OpenFOAM env variables set on the LD_LIBRARY_PATH...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Path Crit
-------------------------------------------------------------------------------
$FOAM_LIBBIN ...OAM/OpenFOAM-1.5.x/lib/linuxGccDPOpt yes no yes
$FOAM_USER_LIBBIN ...OpenFOAM/Sam-1.5.x/lib/linuxGccDPOpt yes no no
$MPI_ARCH_PATH ...penmpi-1.2.6/platforms/linuxGccDPOpt no yes
-------------------------------------------------------------------------------


Third party software
-------------------------------------------------------------------------------
Software Version Location
-------------------------------------------------------------------------------
WARNING: gcc version does not match gcc supplied with this release of OpenFOAM
Supplied version: 4.3.1
User version : ../configure
4.3.2
Minimum required: 4.2.0

gcc ...figure
WARNING: Conflicting installations:
OpenFOAM settings : /home/Sam/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux/bin/gcc
current path : /usr/bin/gcc
CRITICAL ERROR

gzip 1.3.12 /usr/bin/gzip
tar 1.20 /bin/tar
icoFoam
WARNING: Conflicting installations:
OpenFOAM settings : /home/Sam/OpenFOAM/OpenFOAM-1.5.x/applications/bin/linuxGccDPOpt/icoFoam
current path :
CRITICAL ERROR

-------------------------------------------------------------------------------


Checking networking...
-------------------------------------------------------------------------------
Action Result Crit
-------------------------------------------------------------------------------
Pinging_linux-jw4g Successful yes
Pinging_localHost Successful yes
Test_rsh: Unsuccessful_connection_refused* yes
Test_ssh: Successful yes
(*) Only one of rsh or ssh is required by the OpenFOAM enviroment.

-------------------------------------------------------------------------------

Base configuration ok.

The foam installation contains 2 critical error(s).

Review the output for warning messages and consult
the installation guide for trouble shooting.

done.
I really don't know what to do.

StructureITA April 25, 2009 13:49

Moreover, when I try to run the "cavity" tutorial, I obtain these results:

Quote:

linux-jw4g:/home/Sam/OpenFOAM/Sam-1.5.x/run/tutorials/icoFoam/cavity # blockMesh
bash: blockMesh: command not found
linux-jw4g:/home/Sam/OpenFOAM/Sam-1.5.x/run/tutorials/icoFoam/cavity # icoFoam
bash: icoFoam: command not found
linux-jw4g:/home/Sam/OpenFOAM/Sam-1.5.x/run/tutorials/icoFoam/cavity # paraFoam
/home/Sam/OpenFOAM/OpenFOAM-1.5.x/bin/paraFoam: line 98: paraview: command not found
linux-jw4g:/home/Sam/OpenFOAM/Sam-1.5.x/run/tutorials/icoFoam/cavity #
News: I opened setting.sh (conteined within OpenFOAM/OpenFOAM-1.5.x/etc) and I changed the line "compilerInstall" from OpenFOAM to System. In this way my "critical error" (related to gcc) disappeared. So, I, at least, came back to the situation with just the icoFOAM issue.

StructureITA April 25, 2009 14:49

This is my last openFoamInstallationTest report:

Quote:

Checking basic setup...
-------------------------------------------------------------------------------
Shell: bash
Host: linux-jw4g
OS: Linux version 2.6.27.21-0.1-pae
-------------------------------------------------------------------------------


Checking main OpenFOAM env variables...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Crit
-------------------------------------------------------------------------------
$WM_PROJECT_INST_DIR /home/Sam/OpenFOAM yes yes
$WM_PROJECT_USER_DIR /home/Sam/OpenFOAM/Sam-1.5.x yes no
$WM_THIRD_PARTY_DIR /home/Sam/OpenFOAM/ThirdParty yes yes
-------------------------------------------------------------------------------


Checking the OpenFOAM env variables set on the PATH...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Path Crit
-------------------------------------------------------------------------------
$WM_PROJECT_DIR /home/Sam/OpenFOAM/OpenFOAM-1.5.x yes yes yes

$FOAM_APPBIN ...1.5.x/applications/bin/linuxGccDPOpt yes yes yes
$FOAM_USER_APPBIN ...1.5.x/applications/bin/linuxGccDPOpt yes yes no
$WM_DIR /home/Sam/OpenFOAM/OpenFOAM-1.5.x/wmake yes yes yes
-------------------------------------------------------------------------------


Checking the OpenFOAM env variables set on the LD_LIBRARY_PATH...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Path Crit
-------------------------------------------------------------------------------
$FOAM_LIBBIN ...OAM/OpenFOAM-1.5.x/lib/linuxGccDPOpt yes no yes
$FOAM_USER_LIBBIN ...OpenFOAM/Sam-1.5.x/lib/linuxGccDPOpt yes no no
$MPI_ARCH_PATH ...penmpi-1.2.6/platforms/linuxGccDPOpt no yes
-------------------------------------------------------------------------------


Third party software
-------------------------------------------------------------------------------
Software Version Location
-------------------------------------------------------------------------------
WARNING: gcc version does not match gcc supplied with this release of OpenFOAM
Supplied version: 4.3.1
User version : ../configure
4.3.2
Minimum required: 4.2.0

gcc ...figure /usr/bin/gcc
gzip 1.3.12 /usr/bin/gzip
tar 1.20 /bin/tar
icoFoam
WARNING: Conflicting installations:
OpenFOAM settings : /home/Sam/OpenFOAM/OpenFOAM-1.5.x/applications/bin/linuxGccDPOpt/icoFoam
current path :
CRITICAL ERROR

-------------------------------------------------------------------------------


Checking networking...
-------------------------------------------------------------------------------
Action Result Crit
-------------------------------------------------------------------------------
Pinging_linux-jw4g Successful yes
Pinging_localHost Successful yes
Test_rsh: Unsuccessful_connection_refused* yes
Test_ssh: Successful yes
(*) Only one of rsh or ssh is required by the OpenFOAM enviroment.

-------------------------------------------------------------------------------

Base configuration ok.

The foam installation contains 1 critical error(s).

Review the output for warning messages and consult
the installation guide for trouble shooting.

done.
I went into OpenFOAM/OpenFOAM-1.5.x/applications/bin/linuxGccDPOpt and I realized that no files are present. What does this mean?

alberto April 25, 2009 14:54

If you just downloaded OpenFOAM 1.5.x from the git repository, you still have to compile it, as explained in my blog post: http://albertopassalacqua.com/?p=260

Best,

StructureITA April 25, 2009 15:57

Anyway, I dowloaded "Binary pack, double precision" software and I manually copied and pasted the included files within applications, lib and wmake. I don't know if this is the right procedure, but allowed me to repair the critical error relating to icoFoam (so, finally, no critical errors at all!).

Moreover, I had to install cmake libraries (required by Paraview) and then, I passed to the compiling process: well, it has been working from half an hour or more. :eek: I hope this is normal... :confused:

alberto April 25, 2009 16:26

Hi,

well, if you are willing to follow, I can guide you through it step by step. It seems you are a bit lost. :)

To follow the steps, please, start from scratch, to be safe. From what you said in your last message, you mixed 1.5 and 1.5.x files.

The easy way to have a working and updated installation is the following:
  • Create a directory called OpenFOAM in your home directory (not root).
  • Open a terminal and enter the directory you have just created.
  • Download the source code from the git repository with the command:
git clone git://repo.or.cz/OpenFOAM-1.5.x.git
  • Download only the ThirdParty packages (both binary and source) from the OpenCFD website.
  • Extract the ThirdParty packages, and copy it in your /home/username/OpenFOAM directory.
  • Open the file ~/OpenFOAM/ThirdParty/ParaView3.3-cvs/CMakeLists.txt and comment the lines:
MESSAGE(SEND_ERROR “Qt ${QTVERSION} not supported. Please use Qt 4.3 (you may need to clean your dirtied cache).”)
  • Open your ~/.bashrc file and add the following line:
. $HOME/OpenFOAM/OpenFOAM-1.5.x/etc/bashrc
  • Compile paraview and its reader following the instructions provided in OpenFOAM 1.5.x README file:
    • cd $FOAM_INST_DIR/ThirdParty
    • rm -rf ParaView3.3-cvs/platforms
    • buildParaView3.3-cvs
    • cd $FOAM_UTILITIES/postProcessing/graphics/PV3FoamReader
    • ./Allwclean
    • ./Allwmake
  • Compile OpenFOAM 1.5.x with ./Allwmake in its main directory

Depending on the machine you are using, it might take some time.

Let me know if you get it working.

Best,

StructureITA April 25, 2009 20:50

I tried to follow as most as I could your instructions, but I still have some troubles. The compilation of ParaView is perfect, without any sort of mistakes in the log. On the contrary, in the installation of the reader, I received a certain amount of errors, that you can see after here:

Quote:

SOURCE=vtkPV3FoamConvertMesh.C ; g++ -m32 -Dlinux -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/home/Sam/OpenFOAM/OpenFOAM-1.5.x/src/finiteVolume/lnInclude -I/home/Sam/OpenFOAM/OpenFOAM-1.5.x/src/lagrangian/basic/lnInclude -I/home/Sam/OpenFOAM/OpenFOAM-1.5.x/src/meshTools/lnInclude -I/home/Sam/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linuxGcc/VTK -I/home/Sam/OpenFOAM/ThirdParty/ParaView3.3-cvs -I/home/Sam/OpenFOAM/ThirdParty/ParaView3.3-cvs/VTK -I/home/Sam/OpenFOAM/ThirdParty/ParaView3.3-cvs/VTK/Common -I/home/Sam/OpenFOAM/ThirdParty/ParaView3.3-cvs/VTK/Filtering -I/home/Sam/OpenFOAM/ThirdParty/ParaView3.3-cvs/VTK/Rendering -I../PV3FoamReader -IlnInclude -I. -I/home/Sam/OpenFOAM/OpenFOAM-1.5.x/src/OpenFOAM/lnInclude -I/home/Sam/OpenFOAM/OpenFOAM-1.5.x/src/OSspecific/Unix/lnInclude -fPIC -pthread -c $SOURCE -o Make/linuxGccDPOpt/vtkPV3FoamConvertMesh.o
In file included from /usr/include/c++/4.3/backward/strstream:51,
from /home/Sam/OpenFOAM/ThirdParty/ParaView3.3-cvs/VTK/Common/vtkIOStream.h:112,
from /home/Sam/OpenFOAM/ThirdParty/ParaView3.3-cvs/VTK/Common/vtkSystemIncludes.h:40,
from /home/Sam/OpenFOAM/ThirdParty/ParaView3.3-cvs/VTK/Common/vtkIndent.h:24,
from /home/Sam/OpenFOAM/ThirdParty/ParaView3.3-cvs/VTK/Common/vtkObjectBase.h:43,
from /home/Sam/OpenFOAM/ThirdParty/ParaView3.3-cvs/VTK/Common/vtkObject.h:41,
from /home/Sam/OpenFOAM/ThirdParty/ParaView3.3-cvs/VTK/Filtering/vtkAlgorithm.h:32,
from /home/Sam/OpenFOAM/ThirdParty/ParaView3.3-cvs/VTK/Filtering/vtkMultiBlockDataSetAlgorithm.h:25,
from ../PV3FoamReader/vtkPV3FoamReader.h:24,
from vtkPV3FoamConvertMesh.C:36:
/usr/include/c++/4.3/backward/backward_warning.h:33:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated.
'/home/Sam/OpenFOAM/OpenFOAM-1.5.x/lib/linuxGccDPOpt/libvtkPV3Foam.so' is up to date.
+ cd PV3FoamReader
+ mkdir -p Make/linuxGccDPOpt
+ cd Make/linuxGccDPOpt
+ cmake ../..
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- 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/c++
-- Check for working CXX compiler: /usr/bin/c++ -- 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 Qt-Version 4.4.3
-- Found OpenSSL: /usr/lib/libssl.so
-- Looking for _POSIX_TIMERS
-- Looking for _POSIX_TIMERS - found
CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as

cmake_minimum_required(VERSION 2.6)

should be added at the top of the file. The version specified may be lower
if you wish to support older CMake versions for this project. For more
information run "cmake --help-policy CMP0000".
This warning is for project developers. Use -Wno-dev to suppress it.

-- Configuring done
CMake Warning at /home/Sam/OpenFOAM/ThirdParty/ParaView3.3-cvs/CMake/ParaViewPlugins.cmake:583 (ADD_LIBRARY):
Cannot generate a safe linker search path for target PV3FoamReader because
files in some directories may conflict with libraries in implicit
directories:

link library [libz.so] in /usr/lib may be hidden by files in:
/home/Sam/OpenFOAM/OpenFOAM-1.5.x/lib/linuxGccDPOpt

Some of these libraries may not be found correctly.
Call Stack (most recent call first):
CMakeLists.txt:43 (ADD_PARAVIEW_PLUGIN)



-- Generating done
-- Build files have been written to: /home/Sam/OpenFOAM/OpenFOAM-1.5.x/applications/utilities/postProcessing/graphics/PV3FoamReader/PV3FoamReader/Make/linuxGccDPOpt
+ make
[ 9%] Generating qrc_PV3FoamReader.cxx
[ 18%] Generating moc_PV3FoamReaderPluginImplementation.cxx
Scanning dependencies of target PV3FoamReader
[ 27%] Building CXX object CMakeFiles/PV3FoamReader.dir/moc_PV3FoamReaderPluginImplementation.o
[ 36%] Building CXX object CMakeFiles/PV3FoamReader.dir/PV3FoamReaderPluginImplementation.o
[ 45%] Building CXX object CMakeFiles/PV3FoamReader.dir/qrc_PV3FoamReader.o
Linking CXX shared library /home/Sam/OpenFOAM/OpenFOAM-1.5.x/lib/linuxGccDPOpt/libPV3FoamReader.so
[ 45%] Built target PV3FoamReader
[ 54%] Generating vtkSMXML_PV3FoamReader_SM.h
-- Generate module: PV3FoamReader_SM
[ 63%] Generating vtkPV3FoamReaderClientServer.cxx
Scanning dependencies of target PV3FoamReader_SM
[ 72%] Building CXX object CMakeFiles/PV3FoamReader_SM.dir/vtkPV3FoamReader.o
[ 81%] Building CXX object CMakeFiles/PV3FoamReader_SM.dir/vtkPV3FoamReaderClientServer.o
[ 90%] Building CXX object CMakeFiles/PV3FoamReader_SM.dir/PV3FoamReader_SMInit.o
[100%] Building CXX object CMakeFiles/PV3FoamReader_SM.dir/vtkPVPluginInit_PV3FoamReader_SM.o
Linking CXX shared library /home/Sam/OpenFOAM/OpenFOAM-1.5.x/lib/linuxGccDPOpt/libPV3FoamReader_SM.so
[100%] Built target PV3FoamReader_SM

During the compilation of OpenFOAM itself, I then realize that the process does not work at all and I obtain several times the same error in which I have "undefined reference to 'foam" and something else.
I looked around the forum and it seems to be related to libPstream.so. In fact, I typed this command:

Quote:

ldd $FOAM_LIBBIN/libOpenFOAM.so
and I had this result:

Quote:

linux-gate.so.1 => (0xffffe000)
libPstream.so => not found
libz.so => /usr/lib/libz.so (0xb7c5d000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb7b69000)
libm.so.6 => /lib/libm.so.6 (0xb7b40000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7b30000)
libpthread.so.0 => /lib/libpthread.so.0 (0xb7b16000)
libc.so.6 => /lib/libc.so.6 (0xb79ba000)
/lib/ld-linux.so.2 (0xb8041000)

alberto April 25, 2009 21:03

The reader builds. You reported warnings, if I did not miss something.

Could you give more details about the errors you read when you compile OpenFOAM?

Are you using a 64 bit distribution? Have you _all_ (binary and source) the third party packages installed? libPstream should be in

/home/Sam/OpenFOAM/OpenFOAM-1.5.x/lib/linux64GccDPOpt/openmpi-1.2.6/libPstream.so

if you have a 64 bit system, and something like that for a 32 bit version (linux instead than linux64 in the path).

Best,

StructureITA April 25, 2009 21:15

I get a collection of errors like this one:

Quote:

make[2]: *** [/home/Sam/OpenFOAM/OpenFOAM-1.5.x/applications/bin/linuxGccDPOpt/surfaceTransformPoints] Error 1
make[2]: Leaving directory `/home/Sam/OpenFOAM/OpenFOAM-1.5.x/applications/utilities/surface/surfaceTransformPoints'
make[1]: *** [surfaceTransformPoints] Error 2
make[1]: Target `application' not remade because of errors.
make[1]: Leaving directory `/home/Sam/OpenFOAM/OpenFOAM-1.5.x/applications/utilities/surface'
make: *** [surface] Error 2
make[1]: Entering directory `/home/Sam/OpenFOAM/OpenFOAM-1.5.x/applications/utilities/thermophysical'
make[2]: Entering directory `/home/Sam/OpenFOAM/OpenFOAM-1.5.x/applications/utilities/thermophysical/adiabaticFlameT'
g++ -m32 -Dlinux -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/home/Sam/OpenFOAM/OpenFOAM-1.5.x/src/thermophysicalModels/specie/lnInclude -IlnInclude -I. -I/home/Sam/OpenFOAM/OpenFOAM-1.5.x/src/OpenFOAM/lnInclude -I/home/Sam/OpenFOAM/OpenFOAM-1.5.x/src/OSspecific/Unix/lnInclude -fPIC -pthread Make/linuxGccDPOpt/adiabaticFlameT.o -L/home/Sam/OpenFOAM/OpenFOAM-1.5.x/lib/linuxGccDPOpt \
-lspecie -lOpenFOAM -ldl -lm -o /home/Sam/OpenFOAM/OpenFOAM-1.5.x/applications/bin/linuxGccDPOpt/adiabaticFlameT
/usr/lib/gcc/i586-suse-linux/4.3/../../../../i586-suse-linux/bin/ld: warning: libPstream.so, needed by /home/Sam/OpenFOAM/OpenFOAM-1.5.x/lib/linuxGccDPOpt/libOpenFOAM.so, not found (try using -rpath or -rpath-link)
/home/Sam/OpenFOAM/OpenFOAM-1.5.x/lib/linuxGccDPOpt/libOpenFOAM.so: undefined reference to `vtable for Foam::OPstream'
/home/Sam/OpenFOAM/OpenFOAM-1.5.x/lib/linuxGccDPOpt/libOpenFOAM.so: undefined reference to `Foam::OPstream::waitRequests()'
/home/Sam/OpenFOAM/OpenFOAM-1.5.x/lib/linuxGccDPOpt/libOpenFOAM.so: undefined reference to `Foam::OPstream::~OPstream()'
/home/Sam/OpenFOAM/OpenFOAM-1.5.x/lib/linuxGccDPOpt/libOpenFOAM.so: undefined reference to `Foam::IPstream::IPstream(Foam::Pstream::commsType s, int, int, Foam::IOstream::streamFormat, Foam::IOstream::versionNumber)'
/home/Sam/OpenFOAM/OpenFOAM-1.5.x/lib/linuxGccDPOpt/libOpenFOAM.so: undefined reference to `Foam::Pstream::exit(int)'
/home/Sam/OpenFOAM/OpenFOAM-1.5.x/lib/linuxGccDPOpt/libOpenFOAM.so: undefined reference to `Foam::OPstream::write(Foam::Pstream::commsTypes, int, char const*, int)'
/home/Sam/OpenFOAM/OpenFOAM-1.5.x/lib/linuxGccDPOpt/libOpenFOAM.so: undefined reference to `Foam::IPstream::waitRequests()'
/home/Sam/OpenFOAM/OpenFOAM-1.5.x/lib/linuxGccDPOpt/libOpenFOAM.so: undefined reference to `Foam::Pstream::abort()'
/home/Sam/OpenFOAM/OpenFOAM-1.5.x/lib/linuxGccDPOpt/libOpenFOAM.so: undefined reference to `Foam::reduce(double&, Foam::sumOp<double> const&)'
/home/Sam/OpenFOAM/OpenFOAM-1.5.x/lib/linuxGccDPOpt/libOpenFOAM.so: undefined reference to `Foam::IPstream::read(Foam::Pstream::commsTypes, int, char*, int)'
/home/Sam/OpenFOAM/OpenFOAM-1.5.x/lib/linuxGccDPOpt/libOpenFOAM.so: undefined reference to `Foam::Pstream::init(int&, char**&)'
/home/Sam/OpenFOAM/OpenFOAM-1.5.x/lib/linuxGccDPOpt/libOpenFOAM.so: undefined reference to `Foam::Pstream::addValidParOptions(Foam::HashTable <Foam::string, Foam::word, Foam::string::hash>&)'
collect2: ld returned 1 exit status


All times are GMT -4. The time now is 19:49.