kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #01201
RE: How to compile with Python support?
-
To:
'kicad-devel@xxxxxxxxxxxxxxx'
-
From:
laurent.dufrechou@...
-
Date:
Thu, 13 Mar 2008 13:10:10 +0100
-
User-agent:
Internet Messaging Program (IMP) 3.2.8
Hi Florian,Dick,
Here is an interesting thread :
http://www.ogre3d.org/phpBB2/viewtopic.php?t=9375&highlight=&sid=ce193664e1d3d7c4af509e6f4e2718c6
Well, like you will find on internet, you can sure find the opposite idea

Florian, when you do the binding with pyste you need to modify the C++ code of
kicad??
If yes, perhaps it could be interesting to take a look how evolved SWIG because,
from what I remembered, doing the SWIG wrapper didnt required from me to modify
the C++ code.
On this big project , I had the C++ code and I couldnt modify, just adapt my
SWIG .i code to make the binding.
So I created a directory with my .i file and added a make wrapper to the
makefile.
Good point also with swig is the ability to map a C++ object to python one like
C++ vector to python list etc
(with some work  )
On my project, I had all C++ things, template metaprogramming etc
and I was
able to support all C++ functions.
Im not telling you to change, I just give you the information from what was my
experience with SWIG.
Bad points where:
- Hard to learn at the beginning (but when you know how to do a thing it becomes
quite easy)
- Hard to find info in the docs.
- .i files are nearly a copy of .h files (but who cares, .h files evolves? Just
copy the added methods in .i files)
- A new dependency for the project
Follow ups