|
[Sponsors] |
August 7, 2018, 09:18 |
can't compile darcyFoam in openfoam 1712
|
#1 |
New Member
naufal
Join Date: May 2018
Posts: 11
Rep Power: 7 |
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? |
|
August 7, 2018, 13:03 |
|
#2 | |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,675
Rep Power: 66 |
Why wouldn't anyone put an OF specific question into the OF forum? It just gets buried here.
The issue is right here. Quote:
It can't resolve features.h. Is this some simply a typo? Why is it #include <features.h> and not #include <features.H>? |
||
August 7, 2018, 14:45 |
|
#3 | |
New Member
naufal
Join Date: May 2018
Posts: 11
Rep Power: 7 |
Quote:
I don't know, because it happened too when I followed the tutorials at the user guide |
||
August 7, 2018, 16:00 |
|
#4 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Quick question @mnaufalazwar: Which installation instructions did you follow and which Linux Distribution are you using?
__________________
|
|
August 9, 2018, 02:30 |
|
#5 |
New Member
naufal
Join Date: May 2018
Posts: 11
Rep Power: 7 |
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 |
|
August 17, 2018, 20:25 |
|
#6 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
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 Best regards, Bruno |
|
|
|
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 |