← Back to team overview

kicad-developers team mailing list archive

Re: Python scripting build broken on windows.

 

On 12/11/2018 1:14 PM, Seth Hillbrand wrote:
> Am 2018-12-11 12:05, schrieb Seth Hillbrand:
>> Am 2018-12-11 11:46, schrieb Wayne Stambaugh:
>>> One of the last couple of patches this morning broke the python
>>> scripting build on windows.  I'm getting the following error (and yes I
>>> deleted pcbnew_wrap in an attempt to fix the issue):
>>
>> Same on linux.  I had to back out
>> a9efbf47161bbbbf7ab6619f099d6b4eb3671451
>>
> 
> Hi Orson-
> 
> I temporarily reverted the commit to get the compiles working again.
> 
> -S

FYI, swig does not support unique_ptr or weak_ptr yet[1].  If you change
any code in pcbnew that gets swigged using these pointer templates, the
python scripting will fail to build.  If you want to use unique_ptr, you
will have to create a swig wrapper for it[2].  SWIG does support
shared_ptr so that may be an option.

[1]:
http://www.swig.org/Doc3.0/SWIGDocumentation.html#CPlusPlus11_general_purpose_smart_pointers
[2]:
http://www.howtobuildsoftware.com/index.php/how-do/b0RN/python-c-swig-how-to-handle-unique-ptrs-with-swig


Follow ups

References