<html><body><div style="font-family: sans serif; font-size: 12pt; color: #000000"><div>Unfortunately, after these commands :<br><div>$ cd /usr/local/gmshpy<br></div><div>$ sudo python setup.py install<br></div><div><br></div><div>I got a compilation error as follows:<br data-mce-bogus="1"></div><div>running install<br>running build<br>running build_py<br>running build_ext<br>building 'gmshpy._gmshCommon' extension<br>x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DSWIG=1 -I./extra_include/ -I../include/gmsh/ -I/usr/include/python2.7 -c src/gmshCommonPYTHON_wrap.cxx -o build/temp.linux-x86_64-2.7/src/gmshCommonPYTHON_wrap.o<br>cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]<br>src/gmshCommonPYTHON_wrap.cxx:3466:26: fatal error: GmshConfig.h: Aucun fichier ou dossier de ce type<br> #include "GmshConfig.h"<br> ^<br>compilation terminated.<br>error: command 'x86_64-linux-gnu-gcc' failed with exit status 1<br></div><div><br data-mce-bogus="1"></div><div>Do you know what's wrong ?<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>Fabien<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div></div><hr id="zwchr" data-marker="__DIVIDER__"><div data-marker="__HEADERS__"><blockquote style="border-left: 2px solid #1010FF; margin-left: 5px; padding-left: 5px; color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;" data-mce-style="border-left: 2px solid #1010FF; margin-left: 5px; padding-left: 5px; color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;"><b>De: </b>"G. D. McBain" <gdmcbain@protonmail.com><br><b>À: </b>"Fabien Rozar" <fabien.rozar@umontpellier.fr><br><b>Cc: </b>gmsh@onelab.info, "Rémy Mozul" <remy.mozul@umontpellier.fr><br><b>Envoyé: </b>Jeudi 28 Avril 2016 03:43:42<br><b>Objet: </b>Re: [Gmsh] gmsh 2.12.0 : gmshpy : installation directory<br></blockquote></div><div data-marker="__QUOTED_TEXT__"><blockquote style="border-left: 2px solid #1010FF; margin-left: 5px; padding-left: 5px; color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;" data-mce-style="border-left: 2px solid #1010FF; margin-left: 5px; padding-left: 5px; color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;"><blockquote class="protonmail_quote"><div>-------- Original Message --------<br></div><div>Subject: [Gmsh] gmsh 2.12.0 : gmshpy : installation directory<br></div><div>Local Time: 27 avril 2016 7:02 PM<br></div><div>UTC Time: 27 avril 2016 09:02<br></div><div>From: fabien.rozar@umontpellier.fr<br></div><div>To: gmsh@onelab.info<br></div><div>CC: remy.mozul@umontpellier.fr<br></div><br><div style="font-family: sans serif; font-size: 12pt; color: #000000;" data-mce-style="font-family: sans serif; font-size: 12pt; color: #000000;"><div>Hello,<br></div><br><div>I am a postdoc at LMGC in Montpellier with Frédéric Dubois as advisor. For <br></div><div>some user case of our software, LMGC90, we use the python module 'gmshpy'.<br></div><br><div>In order to use it on a new computer, I need to install it. I downloaded the<br></div><div>source of gmsh 2.12.0 from the web page :<br></div><div><div>http://gmsh.info/<br></div><br><div>Before the compilation, I configured the generation of 'gmshpy' with :<br></div><div><div>$ cd build<br></div><div>$ cmake -DENABLE_WRAP_PYTHON=ON .../gmsh-2.12.0-source<br></div><div>$ make<br></div></div></div><br><div>The module 'gmshpy' is well build under 'build/wrappers/gmshpy'.<br></div><br><div>The point is that, after the installation step :<br></div><div>$ sudo make install<br></div><br><div>the directory 'build/wrappers/gmshpy' is copied in '/usr/local' whereas<br></div><div>this directory is not part of python default search directories :<br></div><div><div>$ python -c "import sys; print '\n'.join(sys.path)"<br></div><div><div>/usr/lib/python2.7<br></div><div>/usr/lib/python2.7/plat-x86_64-linux-gnu<br></div><div>/usr/lib/python2.7/lib-tk<br></div><div>/usr/lib/python2.7/lib-old<br></div><div>/usr/lib/python2.7/lib-dynload<br></div><div>/usr/local/lib/python2.7/dist-packages<br></div><div>/usr/lib/python2.7/dist-packages<br></div><div>/usr/lib/pymodules/python2.7<br></div></div></div><br><div><div>Question : Could you provide a release where the directory 'build/wrappers/gmshpy' is installed (copied)<br></div><div> in one of the python default search directories?<br></div><br><div>(the directory '/usr/local/lib/python2.7/dist-packages' seems to be the more suitable)<br></div></div></div></blockquote><br><div>Hello. That might be a good idea (I dont' know how "make install" works in Gmsh), but in the meantime a workaround is:<br></div><br><div>$ cd /usr/local/gmshpy<br></div><div>$ sudo python setup.py install<br></div><div>$ ldconfig<br></div><br><div>That puts gmshpy in /usr/local/lib/python2.7/dist-packages, as requested.</div><br></blockquote></div></div></body></html>