GRRedWings / python3-android

Python 3 cross-compilation tools for Android.
BSD Zero Clause License
68 stars 17 forks source link

How to include any custom module or any other python module #11

Closed Biswajit2902 closed 2 years ago

Biswajit2902 commented 4 years ago

Hi,

Thank you for making nice setup.

I am trying to add numpy, scipy and opencv into this.

But here i saw you have kept some patch. how to make them what are those really? Are there kind of makefile?

And in source if i keep any official link that should work fine or not.

Can you please help me in this.

Thank you.

GRRedWings commented 4 years ago

Sorry for the late reply, this got lost in the bottom of my inbox.

The short answer is that the patch files are really a fancy diff. They are needed when cross compiling for Android requires a code change. We make the changes we need to make, generate the patch file. then the make applies the patches after it downloads the source file.

So if you want to include more libraries, I would recommend adding them 1 at a time. You will notice a mk folder in the root. Add say numpy/x.x.x (where x.x.x is the version you are building). Follow the pattern. readline/7.0 has no changes, so that is a good place to start.

Once you make those changes, you will need to make sure that your library is called in the make. edit the Makefile in the root. See line 48 and make similar edits for numpy.

B

On Tue, Apr 21, 2020 at 4:14 AM Biswajit Satapathy notifications@github.com wrote:

Hi,

Thank you for making nice setup.

I am trying to add numpy, scipy and opencv into this.

But here i saw you have kept some patch. how to make them what are those really? Are there kind of makefile?

And in source if i keep any official link that should work fine or not.

Can you please help me in this.

Thank you.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/GRRedWings/python3-android/issues/11, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABB63V4B2OYBTRWFTQOBG2TRNVIV5ANCNFSM4MNC5ZVA .