[Gmsh] compile with med support
Christophe Geuzaine
cgeuzaine at ulg.ac.be
Tue Apr 5 22:53:33 CEST 2016
> On 05 Apr 2016, at 19:19, Bernd Hahnebach <gmsh at b75.ch> wrote:
>
> Found it. It seams a known problem on Debian Jessie (I do not know about other debian). See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=756472
>
> Makeing this changes to the CMakeLists.txt did the trick. HDF5 where found.
>
Thanks - I've merge the Debian patch into our CMakeLists.txt.
> cheers bernd
>
>
> Zitat von Bernd Hahnebach <gmsh at b75.ch>:
>
>> For med support on Debian Jessie package libmedc-dev has to be installed. Watchout for the c !
>>
>> But the culprit is somewhere else. Cmake only searches for libmed if HDF5 was found. OK run cmake ../ again.
>> YEAH
>> -- HDF5_LIB-NOTFOUND
>> -- HDF5 not found
>>
>> ok I searched for them, and they seam installed. OK
>>
>> cmake \
>> -DHDF5_LIB=/usr/lib/x86_64-linux-gnu/libhdf5_cpp.so.8.0.2 \
>> ../
>>
>> BUT
>>
>> [ 1%] Building CXX object CMakeFiles/gmsh.dir/Common/CommandLine.cpp.o
>> In file included from /home/hugo/Documents/dev/gmsh/gmsh-dev/Common/CommandLine.cpp:41:0:
>> /usr/include/med.h:22:18: fatal error: hdf5.h: Datei oder Verzeichnis nicht gefunden
>> #include <hdf5.h>
>> ^
>> compilation terminated.
>>
>>
>> BUT
>>
>> $ locate hdf5.h
>> /usr/include/hdf5/serial/hdf5.h
>> /usr/include/vtk-6.1/vtk_hdf5.h
>>
>>
>> Which results in how do I set the include Dir for hdf5 ?
>>
>> Bernd
>>
>>
>> Zitat von Christophe Geuzaine <cgeuzaine at ulg.ac.be>:
>>
>>>
>>>> On 04 Apr 2016, at 17:49, Bernd Hahnebach <gmsh at b75.ch> wrote:
>>>>
>>>> According CMakeLists.txt is MED support activated by default
>>>>
>>>> opt(MED "Enable MED mesh and post file formats" ${DEFAULT})
>>>>
>>>>
>>>> But at my cmake output it is missing, but cmake does not complain some library is missing ?!? How do I set the path to libmedc1 for cmake gmsh?
>>>>
>>>
>>> Bernd - Gmsh looks for a library named libmed (.a, .so, .dylib, etc.): not sure why yours is named libmedc1?
>>>
>>> You can modify the line
>>>
>>> find_library(MED_LIB med)
>>>
>>> into
>>>
>>> find_library(MED_LIB medc1)
>>>
>>> in the CMakeLists.txt file to see if this fixes it.
>>>
>>>> cheers bernd
>>>>
>>>>
>>>> cmake gmsh
>>>>
>>>> -- Gmsh 2.12.1 has been configured for Linux
>>>> --
>>>> -- * Build options: Ann Bamg Bfgs Blas(Generic) Blossom Cairo Chaco DIntegration Dlopen Fltk GMP Gmm Jpeg Kbipack Lapack(Generic) LinuxJoystick MathEx Mesh Metis Mmg3d Mpeg NativeFileChooser Netgen ONELAB ONELABMetamodel OpenCascade OpenGL OptHom Parser Plugins Png Post Salome Solver Taucs TetGen/BR Tetgen1.5 Voro3D Zlib
>>>>
>>>>
>>>>
>>>>
>>>> Zitat von Bernd Hahnebach <gmsh at b75.ch>:
>>>>
>>>>> Hi gmsh folks,
>>>>>
>>>>> just compiled gmsh on debian jessie. It worked like a charm. I have libmedc1 installed but gmsh compiled without med support. How is support for med export activated in cmake?
>>>>>
>>>>> cheers bernd
>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> gmsh mailing list
>>>>> gmsh at onelab.info
>>>>> http://onelab.info/mailman/listinfo/gmsh
>>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> gmsh mailing list
>>>> gmsh at onelab.info
>>>> http://onelab.info/mailman/listinfo/gmsh
>>>
>>> --
>>> Prof. Christophe Geuzaine
>>> University of Liege, Electrical Engineering and Computer Science
>>> http://www.montefiore.ulg.ac.be/~geuzaine
>>>
>>> Tetrahedron V, July 4-5 2016: http://tetrahedron.montefiore.ulg.ac.be
>>> Free software: http://gmsh.info | http://getdp.info | http://onelab.info
>>>
>>>
>>>
>>
>>
>>
>>
>>
>> _______________________________________________
>> gmsh mailing list
>> gmsh at onelab.info
>> http://onelab.info/mailman/listinfo/gmsh
>>
>
>
>
>
>
> _______________________________________________
> gmsh mailing list
> gmsh at onelab.info
> http://onelab.info/mailman/listinfo/gmsh
--
Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science
http://www.montefiore.ulg.ac.be/~geuzaine
Tetrahedron V, July 4-5 2016: http://tetrahedron.montefiore.ulg.ac.be
Free software: http://gmsh.info | http://getdp.info | http://onelab.info
More information about the gmsh
mailing list