CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   openfoam 1.7.1 compilation (https://www.cfd-online.com/Forums/openfoam/80885-openfoam-1-7-1-compilation.html)

ehsan October 10, 2010 05:37

openfoam 1.7.1 compilation
 
Dear Foamer

In compiling OF 1.7.1, I get the following error:

cannot find -lfiniteVolume

I had already installed OF 1.6.X in my PC and I don't thing I lack gcc, which other packages you think I lack that results in this problem?

I use ubuntu 8.04

Thanks
Ehsan

nsf October 10, 2010 05:55

Hi Ehsan,

As I understand OpenFOAM-1.7 needs gcc-4.3.x or later to compile while ubuntu 8.04 comes with gcc-4.2. My advice is to upgrade your distro to 10.04 which is a Long Term Support version.

If you can't upgrade talk to your admin, he'll have to install gcc-4.3 or later. You could also try to compile the gcc version that comes with openfoam-1.6 and then use that gcc to compile 1.7.

There is a good thread that you might want to check out

http://www.cfd-online.com/Forums/ope...er-ubuntu.html

The packages I needed to install on ubuntu 10.04 where

Code:

binutils-dev flex bison git-core build-essential python-dev libreadline5-dev wget zlib1g-dev cmake libpng12-dev libxt-dev libxi-dev libxrender-dev libxrandr-dev libxcursor-dev libxinerama-dev libfreetype6-dev libfontconfig1-dev libglib2.0-dev freeglut3-dev libqt4-dev qt4-dev-tools
Best of luck

Nicolas

wyldckat October 10, 2010 08:28

Greetings to all!

To complement Nicolas answer: Automated scripts for building gcc 4.4.x and 4.5.x for using with OpenFOAM 1.7 series

Best regards,
Bruno

abhi25_itbhu December 5, 2010 18:52

OpenFoam 1.7.1 compilation
 
I am a newbie to OpenFOAM....I am trying the source pack installation of Openfoam 1.7.1. I was able to compile Openfoam without any error but when I used the utility to test the installation (i.e. foamInstallationTest), it gave me following output:

Checking basic setup...
-------------------------------------------------------------------------------
Shell: bash
Host: ubuntu
OS: Linux version 2.6.32-26-generic
-------------------------------------------------------------------------------


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

$FOAM_APPBIN ...7.1/applications/bin/linux64GccDPOpt yes yes yes
$FOAM_SITE_APPBIN ...nFOAM/site/1.7.1/bin/linux64GccDPOpt no no
$FOAM_USER_APPBIN ...7.1/applications/bin/linux64GccDPOpt no no
$WM_DIR ...hishek/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/linux64GccDPOpt yes yes yes
$FOAM_SITE_LIBBIN ...nFOAM/site/1.7.1/lib/linux64GccDPOpt no no
$FOAM_USER_LIBBIN ...M/abhishek-1.7.1/lib/linux64GccDPOpt no no
$MPI_ARCH_PATH ...1/platforms/linux64Gcc/openmpi-1.4.1 yes yes yes
-------------------------------------------------------------------------------


Third party software
-------------------------------------------------------------------------------
Software Version Location
-------------------------------------------------------------------------------
gcc 4.4.3 /usr/bin/gcc
gzip 1.3.12 /bin/gzip
tar 1.22 /bin/tar
icoFoam 1.7.1 ...penFOAM-1.7.1/applications/bin/linux64GccDPOpt/icoFoam
-------------------------------------------------------------------------------


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

Critical systems ok.

done.



Does this output indicates a successful compilation or something is not correct?

If anybody knows about this stuff, please help me out.
I appreciate your help in advance.

Thanks

Abhi

wyldckat December 5, 2010 19:13

Greetings Abhi and welcome to the forum!

Quote:

Originally Posted by abhi25_itbhu (Post 286109)
Summary
-------------------------------------------------------------------------------
Base configuration ok.

Critical systems ok.

done.

Like the summary says: everything is OK :)

Best regards,
Bruno

abhi25_itbhu December 6, 2010 20:44

Hey Bruno,

Thanks for the quick reply...!!
OpenFoam test-cases seem to be working fine so far...

Abhishek


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