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

[foam-extend.org] OpenFOAM-1.6-ext Compilation Error

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 6, 2011, 08:09
Default OpenFOAM-1.6-ext Compilation Error
  #1
New Member
 
Join Date: Mar 2011
Posts: 9
Rep Power: 15
taner is on a distinguished road
Dear all,

I've just installed OpenFOAM-1.6-ext on Ubuntu Maverick in order to test GGI for a case. I've modified the .bashrc file like:

#. /opt/openfoam171/etc/bashrc
. /usr/lib/OpenFOAM-1.6-ext/etc/bashrc

The SimpleFOAM solver is working, since the binary is available.
Trying to compile the MRFSimpleFoam solver, I got the following error:

SOURCE=MRFSimpleFoam.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/usr/lib/OpenFOAM-1.6-ext/src/finiteVolume/lnInclude -I/usr/lib/OpenFOAM-1.6-ext/src/turbulenceModels -I/usr/lib/OpenFOAM-1.6-ext/src/transportModels -IlnInclude -I. -I/usr/lib/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude -I/usr/lib/OpenFOAM-1.6-ext/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/MRFSimpleFoam.o
MRFSimpleFoam.C:34: fatal error: fvCFD.H: No such file or directory
compilation terminated.
make: *** [Make/linux64GccDPOpt/MRFSimpleFoam.o] Error 1

Does anybody have an idea what the problem is?
Why fvCFD.H cannot be found?
Something to do with environmental variables?

Thanks in advance.

Taner
taner is offline   Reply With Quote

Old   May 6, 2011, 09:22
Default
  #2
New Member
 
lazio
Join Date: Apr 2010
Posts: 22
Rep Power: 16
lrunber is on a distinguished road
Hi Taner,
You should also install the:
openfoam-1.6-ext-dev
package, which contains the source files.
lrunber is offline   Reply With Quote

Old   May 6, 2011, 10:21
Default
  #3
New Member
 
Join Date: Mar 2011
Posts: 9
Rep Power: 15
taner is on a distinguished road
Hi lrunber,

perfect! Installing openfoam-1.6-ext-dev solved the problem.

Thanks a lot.

Taner
taner is offline   Reply With Quote

Old   May 6, 2011, 10:37
Default
  #4
New Member
 
lazio
Join Date: Apr 2010
Posts: 22
Rep Power: 16
lrunber is on a distinguished road
happy to have been able to help
lrunber is offline   Reply With Quote

Old   April 2, 2012, 12:36
Default
  #5
Member
 
nadine moussa
Join Date: Mar 2012
Posts: 30
Rep Power: 14
nadine is on a distinguished road
Hello,
I am having the same error, but I am using Fedora 15. and I installed a fedora package from the OpenFoam site, so am I missing some libraries or something?

my exact error is : "C:33:19: fatal error: fvCFD.H: No such file or directory"
Thanks for your help,
Nadine
nadine is offline   Reply With Quote

Old   April 3, 2012, 06:01
Default
  #6
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 Nadine,

I'm sorry to say that your post isn't making much sense Because:
  1. You've posted on a thread for 1.6-ext, which is a variant of OpenFOAM, i.e., it is not the official version.
  2. You're talking about installing a "fedora package", which should imply that you don't need to compiled anything: http://www.openfoam.org/download/fedora.php
  3. The error you're getting implies that you are trying to compile OpenFOAM on Fedora!
  4. How exactly did you get that error?
My guess is that you are following the wrong instructions... you're probably looking for either one of these instructions:
Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   April 3, 2012, 10:28
Default
  #7
Member
 
nadine moussa
Join Date: Mar 2012
Posts: 30
Rep Power: 14
nadine is on a distinguished road
Hello Bruno,
Thank you for answering me in such a short time. I think I installed Openfoam correctly, so my problem isn't an installation problem.
I was trying some features of Openfoam, so I create a new simple solver, and according to the instructions I have to compile it in order to use it, and that's how I got this error saying that fvCFD.H doesn't exsist while it does!!! and my solver can't be compiled!
for informations: my solver call this finite volume libary.
Thanks again for your help
Best regards,
Nadine
nadine is offline   Reply With Quote

Old   April 3, 2012, 21:04
Default
  #8
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
Hi Nadine,

Without you describing what specific steps you are taking to create said new solver... I'm going to suggest that you follow this tutorial instead: http://openfoamwiki.net/index.php/Ho...ure_to_icoFoam

If you still have problems with this one, then it would also be useful to know if your Fedora 15 installation has been done with i686 or x86_64:
Code:
uname -m
Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   April 4, 2012, 09:51
Default
  #9
Member
 
nadine moussa
Join Date: Mar 2012
Posts: 30
Rep Power: 14
nadine is on a distinguished road
Hello Bruno,
I am really grateful for your continuous help!
Actually what I call a new solver was really similar to the example that you sent me but with other instructions. So by following the Wiki instructions I didn't get any error, than I tried their way for adding my solver and it worked! Now I am not getting any error any more, but I tried to find what was missing in the first method but I didn't succeed

Anyway to answer your question I installed OpenFoam-2.1.0 for 64 bits!

Thanks again for your Help!
Best regards,
Nadine
nadine is offline   Reply With Quote

Old   March 7, 2018, 22:48
Default
  #10
Senior Member
 
Elham
Join Date: Oct 2009
Posts: 184
Rep Power: 16
Elham is on a distinguished road
Quote:
Originally Posted by lrunber View Post
Hi Taner,
You should also install the:
openfoam-1.6-ext-dev
package, which contains the source files.

Hi,

I have the same error with OpenFOAM-2.3.1. Should I install openfoam-1.6-ext-dev or a newer version?

Regards,

Elham
Elham is offline   Reply With Quote

Old   March 17, 2018, 17:03
Default
  #11
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
Quote:
Originally Posted by Elham View Post
I have the same error with OpenFOAM-2.3.1. Should I install openfoam-1.6-ext-dev or a newer version?
Quick questions:
  1. What is the exact error message that you are getting?
  2. And from where did you get the source code from, namely the the one that is giving you the error message?
__________________
wyldckat 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 v3.0+ ?? SBusch OpenFOAM 22 December 26, 2016 14:24
error compiling modified applications yvyan OpenFOAM Programming & Development 21 March 1, 2016 04:53
Mesquite - Adaptive mesh refinement / coarsening? philippose OpenFOAM Running, Solving & CFD 94 January 27, 2016 09:40
OpenFOAM without MPI kokizzu OpenFOAM Installation 4 May 26, 2014 09:17
ParaView for OF-1.6-ext Chrisi1984 OpenFOAM Installation 0 December 31, 2010 06:42


All times are GMT -4. The time now is 03:40.