Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compilation error #10

Open
Han-Larry-Lisa opened this issue May 28, 2019 · 1 comment
Open

compilation error #10

Han-Larry-Lisa opened this issue May 28, 2019 · 1 comment

Comments

@Han-Larry-Lisa
Copy link

Hi all, I managed to get to step 12.

I get the following error:

In file included from softParticleCloud.H:47:0,
from softParticleIO.C:27:
/home/name/sediFoam-master/lammpsFoam/include/LammpsCollection.H:7:10: fatal error: mpi.h: No such file or directory
#include "mpi.h"
^~~~~~~
compilation terminated.
/home/name/OpenFOAM/OpenFOAM-5.x/wmake/rules/General/transform:25: recipe for target 'Make/linux64GccDPInt32Opt/softParticleIO.o' failed
make: *** [Make/linux64GccDPInt32Opt/softParticleIO.o] Error 1
make: *** Waiting for unfinished jobs....
lammpsFoam.C:44:10: fatal error: mpi.h: No such file or directory
#include "mpi.h"
^~~~~~~
compilation terminated.
/home/name/OpenFOAM/OpenFOAM-5.x/wmake/rules/General/transform:25: recipe for target 'Make/linux64GccDPInt32Opt/lammpsFoam.o' failed
make: *** [Make/linux64GccDPInt32Opt/lammpsFoam.o] Error 1
In file included from softParticleCloud.H:47:0,
from softParticle.C:29:
/home/name/sediFoam-master/lammpsFoam/include/LammpsCollection.H:7:10: fatal error: mpi.h: No such file or directory
#include "mpi.h"
^~~~~~~
compilation terminated.
In file included from softParticleCloud.H:47:0,
from softParticleCloud.C:27:
/home/name/sediFoam-master/lammpsFoam/include/LammpsCollection.H:7:10: fatal error: mpi.h: No such file or directory
#include "mpi.h"
^~~~~~~
/home/name/OpenFOAM/OpenFOAM-5.x/wmake/rules/General/transform:25: recipe for target 'Make/linux64GccDPInt32Opt/softParticle.o' failed
compilation terminated.
make: *** [Make/linux64GccDPInt32Opt/softParticle.o] Error 1
In file included from softParticleCloud.H:47:0,
from enhancedCloud.H:41,
from enhancedCloud.C:27:
/home/name/sediFoam-master/lammpsFoam/include/LammpsCollection.H:7:10: fatal error: mpi.h: No such file or directory
#include "mpi.h"
^~~~~~~
compilation terminated.
/home/name/OpenFOAM/OpenFOAM-5.x/wmake/rules/General/transform:25: recipe for target 'Make/linux64GccDPInt32Opt/softParticleCloud.o' failed
make: *** [Make/linux64GccDPInt32Opt/softParticleCloud.o] Error 1
/home/name/OpenFOAM/OpenFOAM-5.x/wmake/rules/General/transform:25: recipe for target 'Make/linux64GccDPInt32Opt/enhancedCloud.o' failed
make: *** [Make/linux64GccDPInt32Opt/enhancedCloud.o] Error 1

--> I have a ubuntu 18.04 Of231 and lammps1Feb-14.

Any ideas ??
Did i set the link in options wrong ???
Best H

@Han-Larry-Lisa
Copy link
Author

Hi all,

I figured it out. First I icompilled OpenFoam 2.3.1. Then, as mentioned before in one of the issues, I had to adapt the openmpi links in the options file. In my windows 10 ubuntu case to -I/usr/include/mpi. The command in the console "whereis mpi.h" was very helpful.

Moreover, I had to reset the sym. link liblammps_shanghailinux.so to link to the "Previous directory" of step 7.

I hope it helps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant