kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #07557
Re: Kicad + V8/NodeJS/Swig [split from kicad ideas mail]
Sorry, I ignore the "xxxx_wrapper.cxx + yyy_wrapper.cxx + etc cannot be
linked together"... swig define them as static functions, so they can be
linked together and will work. The path is not that dark ;-)
2012/2/27 Miguel Angel Ajo Pelayo <miguelangel@xxxxxxx>
> I've been doing some experiments about that during the weekend, with
> python as a first target, and using SWIG (which should be highly desired,
> as it's something easier to mantain).
>
> And by now, what I found is that swig is quite mature, but mainly ready
> for this:
>
> Python--->[extension]/extension_wrap.o ---->library.so
>
> This is one of our intended usages, but, for usage inside kicad:
>
> Kicad<--->Python-->extension--->Kicad
>
> It may require some hacking. They had an embed.i that can be a start
> point. The problem is that SWIG build wrapper modules that are ready to be
> loaded from python, but they include all the swig logic. So then, if we
> linked kicad + python lib + wrapper_kicad.cxx + wrapper_eeschema.cxx +
> wrapper_pcbnew.cxx then the swig code would be x3 times.
>
> So I'll keep playing until I find a good way, and then we could really
> estimate the man/hours needed :-)
>
>
> 2012/2/25 Fabio Varesano <fabio.varesano@xxxxxxxxx>
>
>> +1 on choosing Python over LUA or JS. Blender is using Python as
>> scripting language and also internally.. and I guess Blender's requirements
>> are pretty similar to those of KiCad.
>>
>>
>>
>> On 02/24/2012 09:22 PM, Miguel Angel Ajo Pelayo wrote:
>>
>>> About python, yes, I think it fits the same way lua does, and I'm my
>>> opinion, it has more libraries
>>> that can be useful for the scripts (like image manipulation, etc...).
>>> There wasn't a branch already
>>> trying this, how good or bad did it go?
>>>
>>
>> ______________________________**_________________
>> Mailing list: https://launchpad.net/~kicad-**developers<https://launchpad.net/~kicad-developers>
>> Post to : kicad-developers@lists.**launchpad.net<kicad-developers@xxxxxxxxxxxxxxxxxxx>
>> Unsubscribe : https://launchpad.net/~kicad-**developers<https://launchpad.net/~kicad-developers>
>> More help : https://help.launchpad.net/**ListHelp<https://help.launchpad.net/ListHelp>
>>
>
>
>
> --
>
> Miguel Angel Ajo Pelayo
> http://www.nbee.es
> +34 636 52 25 69
> skype: ajoajoajo
>
--
Miguel Angel Ajo Pelayo
http://www.nbee.es
+34 636 52 25 69
skype: ajoajoajo
Follow ups
References