CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (http://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   error in eclipse (http://www.cfd-online.com/Forums/openfoam-programming-development/83274-error-eclipse.html)

Linda December 22, 2010 05:08

error in eclipse
 
I tried to test a solver according to

http://openfoamwiki.net/index.php/Ho...M_with_Eclipse

After I imported the pitzDaily project in eclipse and run the programme, there is always an error

"/OpenFOAM/OpenFOAM-1.7.1/applications/bin/linuxGccDPDebug/simpleFoam: error while loading shared libraries: libincompressibleTurbulenceModel.so: cannot open shared object file: No such file or directory".

Could you please help about it?

Thanks
Linda

mvoss December 22, 2010 05:16

hey,

did you set up the make/files properly?

neewbie

Linda December 22, 2010 05:20

How to setup the make/file?

sorry i am a newbie.

mvoss December 22, 2010 05:24

so am i...
sorry, i meant the make/options.

there has to be smth. like
Code:

EXE_INC = \
...
EXE_LIBS = \
...
    -lcompressibleTurbulenceModel \
...


Linda December 22, 2010 21:23

Do you mean building the openfoam sources? I use the script
'./Allwmake'. It should build everything.

And I execute the foamInstallationTest script and got

'Checking main OpenFOAM env variables...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Crit
-------------------------------------------------------------------------------
$WM_PROJECT_INST_DIR /home/ylz/OpenFOAM yes yes
$WM_PROJECT_USER_DIR /home/ylz/OpenFOAM/ylz-1.7.1 yes no
$WM_THIRD_PARTY_DIR /home/ylz/OpenFOAM/ThirdParty-1.7.1 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/ylz/OpenFOAM/OpenFOAM-1.7.1 yes yes yes

$FOAM_APPBIN ...7.1/applications/bin/linuxGccDPDebug yes yes yes
$FOAM_SITE_APPBIN ...nFOAM/site/1.7.1/bin/linuxGccDPDebug no no
$FOAM_USER_APPBIN ...7.1/applications/bin/linuxGccDPDebug no no
$WM_DIR /home/ylz/OpenFOAM/OpenFOAM-1.7.1/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 ...M/OpenFOAM-1.7.1/lib/linuxGccDPDebug yes yes yes
$FOAM_SITE_LIBBIN ...nFOAM/site/1.7.1/lib/linuxGccDPDebug no no
$FOAM_USER_LIBBIN ...enFOAM/ylz-1.7.1/lib/linuxGccDPDebug no no
$MPI_ARCH_PATH ...7.1/platforms/linuxGcc/openmpi-1.4.1 yes yes yes
-------------------------------------------------------------------------------


Third party software
-------------------------------------------------------------------------------
Software Version Location
-------------------------------------------------------------------------------
gcc 4.4.5 /usr/bin/gcc
gzip 1.3.12 /bin/gzip
tar 1.23 /bin/tar
icoFoam 1.7.1 ...penFOAM-1.7.1/applications/bin/linuxGccDPDebug/icoFoam
-------------------------------------------------------------------------------


Summary
-------------------------------------------------------------------------------
Base configuration ok.

Critical systems ok.

done.
'

So do you think it is the problem from the openfoam or setup of eclipse?

regards
yali

Linda December 22, 2010 22:23

when I use 'wmake' to compile, i run into such problem:
'
ylz@ubuntu:~/OpenFOAM/OpenFOAM-1.7.1$ wmake Make/linux64Gcc4DPOpt/<object>.o
bash: object: No such file or directory
ylz@ubuntu:~/OpenFOAM/OpenFOAM-1.7.1$ wmake libso
wmake error: 'Make' directory does not exist
'
Are they related to the problem resulted from the eclipse?

Linda December 23, 2010 02:13

I checked the make/options in the simplefoam;

"EXE_INC = \
-I$(LIB_SRC)/turbulenceModels \
-I$(LIB_SRC)/turbulenceModels/incompressible/RAS/RASModel \
-I$(LIB_SRC)/transportModels \
-I$(LIB_SRC)/transportModels/incompressible/singlePhaseTransportModel \
-I$(LIB_SRC)/finiteVolume/lnInclude

EXE_LIBS = \
-lincompressibleTurbulenceModel \
-lincompressibleRASModels \
-lincompressibleTransportModels \
-lfiniteVolume
"

Is it correct? Please advise. 3x

mvoss January 3, 2011 04:00

hi,

seems okay to me.
Are you trying to create a library ? Did you choose the right kind of project ("..with Makefile") while setting up the case in eclipse?

neewbie


All times are GMT -4. The time now is 04:26.