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

can't compile darcyFoam in openfoam 1712

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 7, 2018, 09:18
Default can't compile darcyFoam in openfoam 1712
  #1
New Member
 
naufal
Join Date: May 2018
Posts: 11
Rep Power: 7
mnaufalazwar is on a distinguished road
Hi, I'm trying to make darcyFoam solvers by editing laplacian solvers, but i have a problem when i try to compile the solver with wmake, this is the display in the terminal

mnaufalazwar@DESKTOP-GDC6B34:~/applications/solvers/darcyFoam$ wmake
Making dependency list for source file darcyFoam.C
g++ -std=c++11 -m64 -DOPENFOAM_PLUS=1712 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3 -DNoRepository -ftemplate-depth-100 -I/home/mnaufalazwar/OpenFOAM/OpenFOAM-v1712/src/finiteVolume/lnInclude -I/home/mnaufalazwar/OpenFOAM/OpenFOAM-v1712/src/meshTools/lnInclude -IlnInclude -I. -I/home/mnaufalazwar/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude -I/home/mnaufalazwar/OpenFOAM/OpenFOAM-v1712/src/OSspecific/POSIX/lnInclude -fPIC -c darcyFoam.C -o Make/linux64Gcc63DPInt32Opt/darcyFoam.o
In file included from /home/mnaufalazwar/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/mnaufalazwar/OpenFOAM/ThirdParty-v1712/platforms/linux64/gcc-6.3.0/include/c++/6.3.0/cstdint:38,
from /home/mnaufalazwar/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude/int32.H:39,
from /home/mnaufalazwar/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude/int.H:38,
from /home/mnaufalazwar/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude/label.H:39,
from /home/mnaufalazwar/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude/labelList.H:59,
from /home/mnaufalazwar/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude/UPstream.H:42,
from /home/mnaufalazwar/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude/Pstream.H:42,
from /home/mnaufalazwar/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude/parRun.H:38,
from /home/mnaufalazwar/OpenFOAM/OpenFOAM-v1712/src/finiteVolume/lnInclude/fvCFD.H:4,
from darcyFoam.C:54:
/home/mnaufalazwar/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/mnaufalazwar/OpenFOAM/OpenFOAM-v1712/wmake/rules/General/transform:28: recipe for target 'Make/linux64Gcc63DPInt32Opt/darcyFoam.o' failed
make: *** [Make/linux64Gcc63DPInt32Opt/darcyFoam.o] Error 1

does anyone know how to solve this problem?
mnaufalazwar is offline   Reply With Quote

Old   August 7, 2018, 13:03
Default
  #2
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,675
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
Why wouldn't anyone put an OF specific question into the OF forum? It just gets buried here.


The issue is right here.

Quote:
Originally Posted by mnaufalazwar View Post
/os_defines.h:39:22: fatal error: features.h: No such file or directory
#include <features.h>

It can't resolve features.h. Is this some simply a typo? Why is it #include <features.h> and not #include <features.H>?
LuckyTran is offline   Reply With Quote

Old   August 7, 2018, 14:45
Default
  #3
New Member
 
naufal
Join Date: May 2018
Posts: 11
Rep Power: 7
mnaufalazwar is on a distinguished road
Quote:
Originally Posted by LuckyTran View Post
Why wouldn't anyone put an OF specific question into the OF forum? It just gets buried here.


The issue is right here.




It can't resolve features.h. Is this some simply a typo? Why is it #include <features.h> and not #include <features.H>?
thaks for the answer, sorry I am new here.
I don't know, because it happened too when I followed the tutorials at the user guide
mnaufalazwar is offline   Reply With Quote

Old   August 7, 2018, 16:00
Default
  #4
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
Quick question @mnaufalazwar: Which installation instructions did you follow and which Linux Distribution are you using?
__________________
wyldckat is offline   Reply With Quote

Old   August 9, 2018, 02:30
Default
  #5
New Member
 
naufal
Join Date: May 2018
Posts: 11
Rep Power: 7
mnaufalazwar is on a distinguished road
I follow the tutorials from here : http://web.stanford.edu/~csoulain/OF...NG_v5-1-EN.pdf
and I use ubuntu terminal for windows 10
mnaufalazwar is offline   Reply With Quote

Old   August 17, 2018, 20:25
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 mnaufalazwar,

I've finally managed to look into this. I don't know if you've managed to solve this on your own. But if not, I believe I've figured out why this error has occurred.

Please run the following commands within the Ubuntu terminal:
Code:
sudo apt update
sudo apt install build-essential flex bison
I'm not 100% certain, but I believe that installing these packages will add the missing files that you will need to build from source code.

Best regards,
Bruno
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
Getting Started with OpenFOAM wyldckat OpenFOAM 25 August 14, 2022 13:55
UNIGE February 13th-17th - 2107. OpenFOAM advaced training days joegi.geo OpenFOAM Announcements from Other Sources 0 October 1, 2016 19:20
New OpenFOAM Forum Structure jola OpenFOAM 2 October 19, 2011 06:55
[swak4Foam] how to compile groovyBC to OpenFoam v1.6? tamsilian OpenFOAM Community Contributions 1 May 27, 2010 03:15
Modified OpenFOAM Forum Structure and New Mailing-List pete Site News & Announcements 0 June 29, 2009 05:56


All times are GMT -4. The time now is 00:53.