[PyQt] pyqtdeploy, Android and extensions

Robert Kent rob at gulon.co.uk
Mon Apr 11 11:45:24 BST 2016


Ok, so a kind of success! If I add HAVE_DYNAMIC_LOADING to pyconfig.h 
then it loads the .so file... finally!

However, it now complains that it can't find a symbol...

ImportError:
   dlopen failed: cannot locate symbol "PyMem_Free" referenced by 
numpy.core.multiarray.so

Any thoughts anyone?

On 11/04/2016 10:41, Phil Thompson wrote:
> On 11 Apr 2016, at 10:31 am, Robert Kent <rob at gulon.co.uk> wrote:
>> I definitely went back and re-compiled Python on Friday to ensure I had used this switch... Which defines etc. should be set by this flag to allow C extension loading?
> It should define HAVE_DYNAMIC_LOADING and also cause dynload_shlib.c to be compiled and linked.
>
> Phil
>
>> On 11/04/2016 10:28, Phil Thompson wrote:
>>> On 11 Apr 2016, at 10:22 am, Robert Kent <rob at gulon.co.uk> wrote:
>>>> Hi Phil,
>>>>
>>>> Sorry to bump a thread, but anyone got any more ideas re. cause or anything else I can attempt? Why would it be that python (imp) doesn't know how to load C extensions as the traceback implies? Are there any defines that need changing in pyconfig for example to allow this?
>>> Yes, but this should be taken care of when using --enable-dynamic-loading with pyqtdeploycli.
>>>
>>> Phil



More information about the PyQt mailing list