OpenFOAM-1.6-ext Compilation Error
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 |
Hi Taner,
You should also install the: openfoam-1.6-ext-dev package, which contains the source files. |
Hi lrunber,
perfect! Installing openfoam-1.6-ext-dev solved the problem. Thanks a lot. Taner |
happy to have been able to help :)
|
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 |
Greetings Nadine,
I'm sorry to say that your post isn't making much sense :( Because:
Best regards, Bruno |
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 |
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 Bruno |
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 |
Quote:
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 |
Quote:
|
All times are GMT -4. The time now is 06:38. |