[Gmsh] How to compile Qt interface and Python interface

Christophe Geuzaine cgeuzaine at ulg.ac.be
Fri Jan 20 10:21:22 CET 2012


On 19 Jan 2012, at 15:30, Karin&NiKo wrote:

> Hi all.
> 
> I can compile without problems gmsh-2.5.1-svn-20120119-source on Ubuntu 9.04.
> 
> But I just cannot compile the Qt interface. I got the error :
> ======================================================
> cd Qt
> ccmake .
> ======================================================
> CMake Error at CMakeLists.txt:18 (append_gmsh_src):
>   Unknown CMake command "append_gmsh_src".
> ======================================================
> 
> The same with the Python interface
> ======================================================
> cd gmshpy
> ccmake .
> ======================================================
> CMake Error at CMakeLists.txt:72 (include):
>   include called with wrong number of arguments.  Include only takes one
>   file.
> 
> 
> 
> CMake Error at CMakeLists.txt:45 (FILE):
>   file Internal CMake error when trying to open file:
>   /home/tardieu/Perso/gmsh-2.5.1-svn-20120119-source/gmshpy/swig_gmshCommon_deps.txt
>   for reading.
> Call Stack (most recent call first):
>   CMakeLists.txt:79 (swig_get_wrapper_dependencies)
> 
> 
> 
> CMake Error at CMakeLists.txt:82 (swig_add_module):
>   Unknown CMake command "swig_add_module".
> ======================================================
> 
> Any help?
> 

don't run cmake from the subdirectories : just provide set ENABLE_QT to true to build the Qt code, and ENABLE_WRAP_PYTHON to build the python wrappers

> Nik
> 
> _______________________________________________
> gmsh mailing list
> gmsh at geuz.org
> http://www.geuz.org/mailman/listinfo/gmsh

-- 
Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science 
http://www.montefiore.ulg.ac.be/~geuzaine