[Gmsh] How to compile a simple API program

trophime christophe.trophime at lncmi.cnrs.fr
Mon Mar 26 22:58:44 CEST 2012


Le lundi 26 mars 2012 à 18:11 +0200, PINO Daniel a écrit :
> Hello all,
> 
> I'm just starting to use gmsh and its API. I'm currently trying to
> compile one of the examples available in utils/api_demos/ but I'm
> getting some troubles...
> 
> 
> I've already compiled Gmsh without any problem. 
> 
> I think the problem comes from the mekafile, I don't know how to compile
> those files. 
> 
> How should I use cmake to create the corresponding makefile for this
> code?
> 
> Does anybody already have the Makefiles to compile those files
> (utils/api_demos)?
> 
> Thank you very much for your help.

Here is a quick and dirty hack of CMakeLists.txt in utils/api_demos
to make allmost all demos compile except the one for leveset because of
a missing header...

Hope it helps

> 
> Best, 
> 
> 	Daniel
> 
> 
> _______________________________________________
> gmsh mailing list
> gmsh at geuz.org
> http://www.geuz.org/mailman/listinfo/gmsh

-------------- next part --------------
A non-text attachment was scrubbed...
Name: CMakeLists.txt
Type: text/x-cmake
Size: 28913 bytes
Desc: not available
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20120326/3ae5bfa6/attachment.txt>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20120326/3ae5bfa6/attachment.asc>