Re: [Gmsh] compile with med support

2016-04-04 Thread Bernd Hahnebach

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?


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 :


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@onelab.info
http://onelab.info/mailman/listinfo/gmsh







___
gmsh mailing list
gmsh@onelab.info
http://onelab.info/mailman/listinfo/gmsh


Re: [Gmsh] compile with med support

2016-04-04 Thread Christophe Geuzaine

> On 04 Apr 2016, at 17:49, Bernd Hahnebach  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 :
> 
>> 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@onelab.info
>> http://onelab.info/mailman/listinfo/gmsh
>> 
> 
> 
> 
> 
> 
> ___
> gmsh mailing list
> gmsh@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@onelab.info
http://onelab.info/mailman/listinfo/gmsh


Re: [Gmsh] compile with med support

2016-04-05 Thread Bernd Hahnebach
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 
  ^
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 :




On 04 Apr 2016, at 17:49, Bernd Hahnebach  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 :


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@onelab.info
http://onelab.info/mailman/listinfo/gmsh







___
gmsh mailing list
gmsh@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@onelab.info
http://onelab.info/mailman/listinfo/gmsh


Re: [Gmsh] compile with med support

2016-04-05 Thread Bernd Hahnebach
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.

cheers bernd


Zitat von Bernd Hahnebach :

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 
  ^
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 :




On 04 Apr 2016, at 17:49, Bernd Hahnebach  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 :


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@onelab.info
http://onelab.info/mailman/listinfo/gmsh







___
gmsh mailing list
gmsh@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@onelab.info
http://onelab.info/mailman/listinfo/gmsh







___
gmsh mailing list
gmsh@onelab.info
http://onelab.info/mailman/listinfo/gmsh


Re: [Gmsh] compile with med support

2016-04-05 Thread Christophe Geuzaine

> On 05 Apr 2016, at 19:19, Bernd Hahnebach  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 :
> 
>> 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 
>>  ^
>> 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 :
>> 
>>> 
 On 04 Apr 2016, at 17:49, Bernd Hahnebach  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 :
 
> 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@onelab.info
> http://onelab.info/mailman/listinfo/gmsh
> 
 
 
 
 
 
 ___
 gmsh mailing list
 gmsh@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@onelab.info
>> http://onelab.info/mailman/listinfo/gmsh
>> 
> 
> 
> 
> 
> 
> ___
> gmsh mailing list
> gmsh@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@onelab.info
http://onelab.info/mailman/listinfo/gmsh


Re: [Gmsh] compile with med support

2016-04-05 Thread Christophe Geuzaine

> On 06 Apr 2016, at 07:54, Bernd Hahnebach  wrote:
> 
> Zitat von Christophe Geuzaine :
> 
>> 
>>> On 05 Apr 2016, at 19:19, Bernd Hahnebach  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.
> 
> Where? https://onelab.info/svn/gmsh/trunk/CMakeLists.txt has not been changed 
> !
> 

Cf. https://onelab.info/trac/gmsh/timeline: I merged the patch, then reverted 
it as it broke our nightly builds... (maybe this requires a too recent version 
of cmake)

Doesn't the old version work if you specify the path where the hdf5 stuff is 
installed using e.g.

cmake -DCMAKE_PREFIX_PATH=/path/to/hdf5/stuff ..


> Bernd
> 
> 
> 
>> 
>> 
>>> cheers bernd
>>> 
>>> 
>>> Zitat von Bernd Hahnebach :
>>> 
 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 
 ^
 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 :
 
> 
>> On 04 Apr 2016, at 17:49, Bernd Hahnebach  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 :
>> 
>>> 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@onelab.info
>>> http://onelab.info/mailman/listinfo/gmsh
>>> 
>> 
>> 
>> 
>> 
>> 
>> ___
>> gmsh mailing list
>> gmsh@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@onelab.info
 http://onelab.info/mailman/listinfo/gmsh
 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> ___
>>> gmsh mailing list
>>> gmsh@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
>

Re: [Gmsh] compile with med support

2016-04-06 Thread Bernd Hahnebach

Zitat von Christophe Geuzaine :




On 05 Apr 2016, at 19:19, Bernd Hahnebach  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.


Where? https://onelab.info/svn/gmsh/trunk/CMakeLists.txt has not been  
changed !


Bernd







cheers bernd


Zitat von Bernd Hahnebach :

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 
 ^
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 :




On 04 Apr 2016, at 17:49, Bernd Hahnebach  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 :


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@onelab.info
http://onelab.info/mailman/listinfo/gmsh







___
gmsh mailing list
gmsh@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@onelab.info
http://onelab.info/mailman/listinfo/gmsh







___
gmsh mailing list
gmsh@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@onelab.info
http://onelab.info/mailman/listinfo/gmsh


Re: [Gmsh] compile with med support

2016-04-06 Thread Bernd Hahnebach

Zitat von Christophe Geuzaine :




On 06 Apr 2016, at 07:54, Bernd Hahnebach  wrote:

Zitat von Christophe Geuzaine :




On 05 Apr 2016, at 19:19, Bernd Hahnebach  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.


Where? https://onelab.info/svn/gmsh/trunk/CMakeLists.txt has not  
been changed !




Cf. https://onelab.info/trac/gmsh/timeline: I merged the patch, then  
reverted it as it broke our nightly builds... (maybe this requires a  
too recent version of cmake)



ahh, thanks for the information

Doesn't the old version work if you specify the path where the hdf5  
stuff is installed using e.g.


cmake -DCMAKE_PREFIX_PATH=/path/to/hdf5/stuff ..


Two possibilities to get HDF5 found properly on Debian Jessie for me:

first:
Use the patched CMakeLists.txt  (file and diff attached)

second:
Use the following cmake command

cmake  \
-DCMAKE_PREFIX_PATH=/usr/include/hdf5/serial  \
-DHDF5_LIB=/usr/lib/x86_64-linux-gnu/libhdf5_cpp.so.8.0.2  \
../






Bernd







cheers bernd


Zitat von Bernd Hahnebach :

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 
^
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 :




On 04 Apr 2016, at 17:49, Bernd Hahnebach  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 :


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@onelab.info
http://onelab.info/mailman/listinfo/gmsh







___
gmsh mailing list
gmsh@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@onelab.info
http://onelab.info/mailman/listinfo/gmsh







___
gmsh mailing list
gmsh@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










--
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 - Copyright (C) 1997-2016 C. Geuzaine, J.-F. Remacle
#
# See the LICENSE.txt file for license information. Please report all
# bugs and problems to the public mailing list .

cmake_minimum_required(VERSION