|
[Sponsors] |
October 16, 2018, 17:16 |
#calc error: Cant find 'features.h'
|
#1 |
New Member
Join Date: Jul 2017
Posts: 3
Rep Power: 9 |
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? |
|
February 21, 2020, 14:17 |
|
#2 |
New Member
Ravi Teja Paineni
Join Date: Jun 2017
Posts: 3
Rep Power: 9 |
hey! did you find any solution for it. I was facing the same problem too. My version is 1912
|
|
February 21, 2020, 15:16 |
|
#3 |
New Member
Ravi Teja Paineni
Join Date: Jun 2017
Posts: 3
Rep Power: 9 |
Never mind found it....
https://bugs.openfoam.org/view.php?id=3034 |
|
April 24, 2020, 04:05 |
|
#4 | |
Senior Member
Franco
Join Date: Nov 2019
Location: Compiègne, France
Posts: 129
Rep Power: 7 |
Quote:
|
||
June 23, 2020, 15:58 |
It worked!
|
#5 |
New Member
Howard
Join Date: Apr 2020
Posts: 1
Rep Power: 0 |
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 |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[mesh manipulation] Importing Multiple Meshes | thomasnwalshiii | OpenFOAM Meshing & Mesh Conversion | 18 | December 19, 2015 19:57 |
CFX-Pre problem, pls help!!! | cth_yao | CFX | 0 | February 17, 2012 01:52 |
OpenFOAM 1.6-ext git installation on Ubuntu 11.10 x64 | Attesz | OpenFOAM Installation | 45 | January 13, 2012 13:38 |
Problem Building OF on Centos cluster (no admin rights) | CKH | OpenFOAM Installation | 5 | November 13, 2011 07:32 |
Rotation flow calc. II. Andy | Christian | Main CFD Forum | 2 | April 10, 2003 05:06 |