kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #12886
Re: Fwd: pcbnew crashes on start since #4757 because of libpython not loaded
You mean it not build at all ?
This warning look to be logical since the value is not used but it should
not break the building process
You can try to replace
void* handle = dlopen("libpython2.7.so", RTLD_LAZY | RTLD_GLOBAL);
by
dlopen("libpython2.7.so", RTLD_LAZY | RTLD_GLOBAL);
could you also check that this version of python's library exist (
libpython2.7.so)
2014-04-04 9:54 GMT+02:00 Nick Østergaard <oe.nick@xxxxxxxxx>:
> This does not work for me, when building with all three scripting options
> enabled, tested on 4782.
>
> /foobar/kicad-bzr/src/kicad/common/single_top.cpp:224:15: warning: unused
> variable 'handle' [-Wunused-variable]
>
>
>
> 2014-04-04 8:46 GMT+02:00 Jean-Samuel Reynaud <js.reynaud@xxxxxxxxx>:
>
>> For the patch it was coming from http://bugs.python.org/issue19153
>>
>> Regards
>>
>> Le 04/04/2014 08:02, Jean-Samuel Reynaud a écrit :
>>
>> Hi,
>>
>> I can reproduct this problem even when I build from source. To do that I
>> just activate KICAD_SCRIPTING_WXPYTHON during compilation and I face the
>> same issue.
>> I imagine that the issue is somewhere on links options ...
>> I found 2 workarrounds:
>> - Disable this option
>> - force loading of python2.7 on single_top.cpp as on the attached patch
>> =>This sad option fix the issue on my computer but I don't know if there
>> is some other side effects...
>>
>> I propose to add this small patch on the ppa. It will apply by the build
>> process.
>>
>> It's ok ?
>>
>> -------- Message original -------- Sujet: pcbnew crashes on start since
>> #4757 because of libpython not loaded Date : Mon, 31 Mar 2014 16:28:12
>> -0000 De : Roger John <roger.john@xxxxxx> <roger.john@xxxxxx> Répondre
>> à : Roger John <roger.john@xxxxxx> <roger.john@xxxxxx> Pour : j2010
>> <js.reynaud@xxxxxxxxx> <js.reynaud@xxxxxxxxx>
>>
>> Hi,
>> since revision 4757, pcbnew from this ppa crashes on start. Error
>> messages suggest that libpython was not loaded before. Starting kicad
>> with "LD_PRELOAD=/usr/lib/libpython2.7.so kicad" indeed solves the
>> problem. When i build from source, pcbnew works without this, so i think
>> it's related to your build. Though it is strange that ldd doesn't list
>> libpython neither for kicad/pcbnew built from source nor for fro them
>> built from you. Could you please have a look?
>> Thanks
>> Roger John
>> --
>> This message was sent from Launchpad by
>> Roger John (https://launchpad.net/~roger-john)
>> using the "Contact this user" link on your profile page
>> (https://launchpad.net/~js-reynaud).
>> For more information seehttps://help.launchpad.net/YourAccount/ContactingPeople
>>
>>
>>
>>
>>
>> _______________________________________________
>> 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
>>
>>
>
References