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

#calc error: Cant find 'features.h'

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 16, 2018, 16:16
Default #calc error: Cant find 'features.h'
  #1
New Member
 
Join Date: Jul 2017
Posts: 3
Rep Power: 8
Ballistics_Sim is on a distinguished road
Hello Foamers,


I was hoping to use the #calc directive to help generate the vertices for blockMesh.



I tried to do this and got the following error:


In file included from /home/zwz/OpenFOAM/ThirdParty-v1712/platforms/linux64/gcc-6.3.0/include/c++/6.3.0/x86_64-pc-linux-gnu/bits/c++config.h:507:0,
from /home/zwz/OpenFOAM/ThirdParty-v1712/platforms/linux64/gcc-6.3.0/include/c++/6.3.0/cstddef:49,
from /home/zwz/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude/Hasher.H:47,
from /home/zwz/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude/string.H:49,
from /home/zwz/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude/word.H:43,
from /home/zwz/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude/keyType.H:43,
from /home/zwz/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude/entry.H:44,
from /home/zwz/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude/dictionary.H:88,
from codeStreamTemplate.C:29:
/home/zwz/OpenFOAM/ThirdParty-v1712/platforms/linux64/gcc-6.3.0/include/c++/6.3.0/x86_64-pc-linux-gnu/bits/os_defines.h:39:22: fatal error: features.h: No such file or directory
#include <features.h>
^
compilation terminated.
/home/zwz/OpenFOAM/OpenFOAM-v1712/wmake/rules/General/transform:28: recipe for target 'Make/linux64Gcc63DPInt32Opt/codeStreamTemplate.o' failed
make: *** [Make/linux64Gcc63DPInt32Opt/codeStreamTemplate.o] Error 1


--> FOAM FATAL IO ERROR:
Failed wmake "dynamicCode/_2c1a7ee7b5369acae9da148f9823fdd8cde6256a/platforms/linux64Gcc63DPInt32Opt/lib/libcodeStream_2c1a7ee7b5369acae9da148f9823fdd8cde6 256a.so"


file: /mnt/c/OpenFOAM/Tutorial/pipeCyclic/system/blockMeshDict

From function static void (* Foam::functionEntries::codeStream::getFunction(con st Foam::dictionary&, const Foam::dictionary&))(Foam::Ostream&, const Foam::dictionary&)
in file db/dictionary/functionEntries/codeStream/codeStream.C at line 219.

FOAM exiting





this is from the simpleFoam/pipeCyclic tutorial, but I was getting the same error in my actual CFD case.


I tried going 'find -name features.h' , found it in another directory then 'cp -r <somePath/features.h> <thePathItWasLookingFor/features.h>'
I tried 'sudo apt-get make' and what was suggested here: https://bugs.openfoam.org/view.php?id=3034.


Still doesnt work. OpenFOAM v1712


What should I do?
Ballistics_Sim is offline   Reply With Quote

Old   February 21, 2020, 13:17
Default
  #2
New Member
 
Ravi Teja Paineni
Join Date: Jun 2017
Posts: 3
Rep Power: 8
rigid42 is on a distinguished road
hey! did you find any solution for it. I was facing the same problem too. My version is 1912
rigid42 is offline   Reply With Quote

Old   February 21, 2020, 14:16
Default
  #3
New Member
 
Ravi Teja Paineni
Join Date: Jun 2017
Posts: 3
Rep Power: 8
rigid42 is on a distinguished road
Never mind found it....
https://bugs.openfoam.org/view.php?id=3034
rigid42 is offline   Reply With Quote

Old   April 24, 2020, 03:05
Default
  #4
Senior Member
 
Franco
Join Date: Nov 2019
Location: Compiègne, France
Posts: 129
Rep Power: 6
otaolafr is on a distinguished road
Quote:
Originally Posted by rigid42 View Post
hello! i am having the same issue and the link is not working, could you please explaine how to solve it? thanks
otaolafr is offline   Reply With Quote

Old   June 23, 2020, 14:58
Default It worked!
  #5
New Member
 
Howard
Join Date: Apr 2020
Posts: 1
Rep Power: 0
howard181 is on a distinguished road
Enter "sudo apt-get install build-essential" and restart ubantu

The page:
https://openfoam.org/download/windows-10/
included a few commands for installing OpenFOAM and also the line I mentioned under "Compilation Tools", since I ran into this issue on a new laptop, I suspect not all Third-party softwares were installed with the main OpenFOAM package.
p.s. I'm running on 19.12
howard181 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
[mesh manipulation] Importing Multiple Meshes thomasnwalshiii OpenFOAM Meshing & Mesh Conversion 18 December 19, 2015 18:57
CFX-Pre problem, pls help!!! cth_yao CFX 0 February 17, 2012 00:52
OpenFOAM 1.6-ext git installation on Ubuntu 11.10 x64 Attesz OpenFOAM Installation 45 January 13, 2012 12:38
Problem Building OF on Centos cluster (no admin rights) CKH OpenFOAM Installation 5 November 13, 2011 06:32
Rotation flow calc. II. Andy Christian Main CFD Forum 2 April 10, 2003 04:06


All times are GMT -4. The time now is 15:42.