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

fatal error #1

Open
mcavallerin opened this issue May 9, 2015 · 4 comments
Open

fatal error #1

mcavallerin opened this issue May 9, 2015 · 4 comments

Comments

@mcavallerin
Copy link

Hi,

following error appear when I try to compile it.

MEDMesh.H:49:17: fatal error: med.h: No such file or directory
#include <med.h>

can you help?

@mortbauer
Copy link
Owner

This means that med.h can't be found in your include path. Do you have the med file library installed which is a prerequisite? If you have you should add the path where you have the headers of the med file library to the options file in the Make dir of this library, for example if the med headers are at /opt/med/include you should add -I/opt/med/include to EXEC_INC of the Make/options file. I hope this helps.?

@mcavallerin
Copy link
Author

Hi,
first of all thanks and sorry, but I'm not an expert Linux user, so I apologize.
Anyway, I already installed Salome 7.5.1, can you tell me how to locate the headers of med library? I tried "locate med.h" into salome path, but I got many output and I can't see which is the right one.

Thank you very much!

@mortbauer
Copy link
Owner

run the following at the root of your salome installation, should only output two locations find . -name med.h

@mcavallerin
Copy link
Author

Hi,
yes, only two output, these:
./Salome-V7_5_1-LGPL-x86_64/tools/Medfichier_308/include/med.h
./Salome-V7_5_1-LGPL-x86_64/tools/Medfichier_308/include/2.3.6/med.h

I tried to add as from your first comment the following line in Make/option file:
-I/home/michele/salome/Salome-V7_5_1-LGPL-x86_64/tools/Medfichier_308/include/2.3.6/med.h

but I get this error, a sintax error (google says):
michele@micheleXubuntu:~/OpenFOAM/michele-2.3.1/run/foamMeshToMED-master$ wmake
linux64GccDPOpt/options:59: *** missing separator. Stop.
wmake error: file 'Make/linux64GccDPOpt/objectFiles' could not be created in /home/michele/OpenFOAM/michele-2.3.1/run/foamMeshToMED-master

Looking at the option file, there are 4 blank spaces and the command "cat -e -t -v options" confirm this. I also tried to delete the spaces and tab the rows, but I had the following error:
michele@micheleXubuntu:~/OpenFOAM/michele-2.3.1/run/foamMeshToMED-master$ wmake
linux64GccDPOpt/options:59: *** commands commence before first target. Stop.
wmake error: file 'Make/linux64GccDPOpt/objectFiles' could not be created in /home/michele/OpenFOAM/michele-2.3.1/run/foamMeshToMED-master

Could you help me one more time?

Thank you

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

2 participants