← Back to team overview

kicad-developers team mailing list archive

Re: WxPython scripting status

 

On 11/10/2013 05:23 AM, Vesa Solonen wrote:
> 10/11/13 08:18, Dick Hollenbeck kirjoitti:
> 
>> Hi Vesa,
>>
>> See here:
>>
>>   http://packages.ubuntu.com/saucy/libwxgtk2.8-dev
>>
>> This package above, which is an existing prerequisite, gets installed, and depends on
>> wx2.8-headers which should therefore get installed, and it includes wxPython.h.  So it
>> should be fine.  See if package wx2.8-headers is installed please.
> 
> Hi Dick,
> 
> It's great to see you have time for this kind of 'customer' support ;)

Actually I always have time for customer support, and in my business we offer exceptional
customer support.

But you are not a customer, haven't paid me a dime.  For you to be a customer, you would
have to had bought a support contract.

But instead, you are an old friend.

(BTW, customers take precedent over friends WRT to support.)


> 
> Regarding prerequisites and before asking here I ended up with the same
> conclusion as you, wx2.8-headers that is. It still didn't work.
> 
> Anyway, the problem moved on while writing this. It was a classical
> PEBKAC again. I had some wx2.9.zzz built for testing the printing fixes
> and KiCad build was linking against it, but that build didn't have
> Python support. Cmake was happy with header package from 2.8 and the
> rest from 2.9.zzz it seems.
> 
>> $ dpkg -l | grep wx2.8-headers
>> ii wx2.8-headers 2.8.12.1-6ubuntu2 wxWidgets Cross-platform C++ GUI toolkit (header files)
> 
> wx2.8-headers  2.8.12.1-14ubuntu1.1  amd64
> 
> Now the build log shows:
> 
> CMakeFiles/pcbnew.dir/pcbframe.cpp.o:
> ”PCB_EDIT_FRAME::PCB_EDIT_FRAME(wxWindow*, wxString const&, wxPoint
> const&, wxSize const&, long)”:
> pcbframe.cpp:(.text+0x2bcd): undefined reference to
> ”CreatePythonShellWindow(wxWindow*)”

It works, you probably have cruft in the build directory.  Escalate through these steps
until it works:

1) from the build dir, "make clean"
Run the script again.

2) remove the build dir, after emptying it, rmdir it.
Run the script again.

The latest version lets you uncomment an OPT line near the top which brings in wxpython
support.  You can grab it from launchpad.



> 
> -Vesa
> 
> 
> _______________________________________________
> Mailing list: https://launchpad.net/~kicad-developers
> Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp
> 



Follow ups

References