CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM

openfoam 1.7.1 compilation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 10, 2010, 05:37
Default openfoam 1.7.1 compilation
  #1
Senior Member
 
Ehsan
Join Date: Mar 2009
Posts: 112
Rep Power: 17
ehsan is on a distinguished road
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
ehsan is offline   Reply With Quote

Old   October 10, 2010, 05:55
Default
  #2
nsf
Senior Member
 
Nicolas Edh
Join Date: Mar 2010
Location: Uppsala, Sweden
Posts: 123
Rep Power: 18
nsf is on a distinguished road
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
nsf is offline   Reply With Quote

Old   October 10, 2010, 08:28
Default
  #3
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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
__________________
wyldckat is offline   Reply With Quote

Old   December 5, 2010, 18:52
Default OpenFoam 1.7.1 compilation
  #4
New Member
 
Join Date: Dec 2010
Posts: 4
Rep Power: 15
abhi25_itbhu is on a distinguished road
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
abhi25_itbhu is offline   Reply With Quote

Old   December 5, 2010, 19:13
Default
  #5
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings Abhi and welcome to the forum!

Quote:
Originally Posted by abhi25_itbhu View Post
Summary
-------------------------------------------------------------------------------
Base configuration ok.

Critical systems ok.

done.
Like the summary says: everything is OK

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   December 6, 2010, 20:44
Default
  #6
New Member
 
Join Date: Dec 2010
Posts: 4
Rep Power: 15
abhi25_itbhu is on a distinguished road
Hey Bruno,

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

Abhishek
abhi25_itbhu is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenFoam 1.7.1 in Ubuntu 10.04 won't start working Leech OpenFOAM Installation 8 August 10, 2014 20:42
Compatibility OpenFOAM 1.6 and 1.7.1 Ale_galleria OpenFOAM 2 September 20, 2010 09:14
Cross-compiling OpenFOAM 1.7.0 on Linux for Windows 32 and 64bits with Mingw-w64 wyldckat OpenFOAM Announcements from Other Sources 3 September 8, 2010 06:25
Modified OpenFOAM Forum Structure and New Mailing-List pete Site News & Announcements 0 June 29, 2009 05:56
64bitrhel5 OF installation instructions mirko OpenFOAM Installation 2 August 12, 2008 18:07


All times are GMT -4. The time now is 07:56.