Hi all ! While trying to
Hi all !
While trying to compile liftDrag using OpenFOAM 1.4 on RHEL4 x86_64, all is fine until step 7 of the procedure listed below (By pUl| on Sunday, June 25, 2006 - 04:34 am).
There I get the following:
/usr/bin/ld: warning: libincompressibleTransportModels.so, needed by /swcae/OpenFOAM/OpenFOAM-1.4/lib/linux64Gcc4DPOpt/libincompressiblePostProcessin g.so, not found (try using -rpath or -rpath-link)
And then from there on a load of warnings all the way until I get the final:
collect2: ld returned 1 exit status
[/swcae/OpenFOAM/OpenFOAM-1.4/applications/bin/linux64Gcc4DPOpt/liftDrag] Error 1 and no executable gets created.
I setup the LD_RUN_PATH variable to point to /swcae/OpenFOAM/OpenFOAM-1.4/lib/linux64Gcc4DPOpt where the lib is located but that didn't work either.
Any clue on how to solve the problem ?
------ procedure --------
I just finished including the liftDrag utility into OpenFOAM 1.3 as Hrv mentioned.
Here are the instructions (for the AMD64 architecture) on how to do this (for new users):
Step 1: Grab the relevant OpenFOAM 1.2 gzipped tarballs:
(a) wget http://internap.dl.sourceforge.net/s...2.General.gtgz
(b) wget http://internap.dl.sourceforge.net/s...inuxAMD64Gcc4O pt.gtgz
Step 2: Create a temporary directory for OpenFOAM 1.2 and unpack the downloaded files into it:
[username@hostname ~]$ mkdir foam12
[username@hostname ~]$ cd foam12
[username@hostname foam12]$ tar xzf OpenFOAM-1.2.General.gtgz
[username@hostname foam12]$ tar xzf OpenFOAM-1.2.linuxAMD64Gcc4Opt.gtgz
[username@hostname foam12]$ ls
OpenFOAM-1.2 OpenFOAM-1.2.General.gtgz OpenFOAM-1.2.linuxAMD64Gcc4Opt.gtgz
Step 3: Find the relevant portions that need to be copied:
[username@hostname foam12]$ find ./ -name liftDrag -print
We are interested in the first and third directories. The second entry is merely a pre-compiled binary (which we will recreate anyway, so let us not bother about it).
Step 4: Copy the missing directories into the OpenFOAM 1.3 installation (~/OpenFOAM/OpenFOAM-1.3/ in this example):
[username@hostname foam12]$ cp -r ./OpenFOAM-1.2/src/postProcessing/ ~/OpenFOAM/OpenFOAM-1.3/src/
[username@hostname foam12]$ cp -r ./OpenFOAM-1.2/applications/utilities/postProcessing/miscellaneous/liftDrag/ ~/OpenFOAM/
Step 5: Edit the 'options' file to suit OpenFOAM 1.3:
The two 'options' files are located at:
(a) ~/OpenFOAM/OpenFOAM-1.3/applications/utilities/postProcessing/miscellaneous/lift Drag/Make/options
Under the EXE_INC section in each of the above files, change -I$(LIB_SRC)/cfdTools/general/lnInclude to -I$(LIB_SRC)/finiteVolume/lnInclude/
The need for this change is explained in the Wiki.
Step 6: Update the libincompressiblePostProcessing.so shared library:
[username@hostname ~]$ cd OpenFOAM/OpenFOAM-1.3/src/postProcessing/
[username@hostname postProcessing]$ ./Allwmake
Step 7: Finally, build the liftDrag binary:
[username@hostname ~]$ cd OpenFOAM/OpenFOAM-1.3/applications/utilities/postProcessing/miscellaneous/liftDr ag/
[username@hostname liftDrag]$ wclean && wmake
And there you have it, trivially compiled ;)
 http://openfoamwiki.net/index.php/HowTo_port_from _older_versions_to_13
hi Valter Did you check you
Did you check your $FOAM_USER_LIBBIN or $FOAM_LIBBIN to be sure that you have libincompressibleTransportModels.so.
Hi ! Thank you for the
Thank you for the answer.
I have both FOAM_USER_LIBBIN and FOAM_LIBBIN setup:
FOAM_USER_LIBBIN is set to /homes/zeus/OpenFOAM/zeus-1.4/lib/linux64Gcc4DPOpt
and FOAM_LIBBIN to /swcae/OpenFOAM/OpenFOAM-1.4/lib/linux64Gcc4DPOpt
The shared object can be found in:
I have a common installation for a few machines and that explains why the software is installed in a common nfs mounted disk (/swcae) rather than in the user's home directory.
Should any of those variables be pointing somewhere different ?
|All times are GMT -4. The time now is 02:10.|