-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
To make android build through p4a work in native Windows without WSL2/ VirtualBox etc #2872
Comments
I disagree, here is why (of course you can use your time any way you please):
|
I have been looking at this issue recently. As I have explained on the linked Buildozer issue, my development motto has been "It probably won't happen in my lifetime, but I want to make it possible in my grandchildren's lifetime." I realise that there is a somewhat dismissive attitude to its importance amongst the core Linux developers, so I have been trying, where possible, to make sure that there are improvements to the overall code to make the changes more palatable. e.g.
So far, these have been the easy parts. I do not yet have answers on how to deal with the far more difficult hurdles ahead (and I don't promise to be able to deal with them all before I give up - just to push closer for the next person to try.) As for the objections above:
|
I totally agree with your views @Julian-O and would surely love to support you in this endeavor. Moreover, if we can prove the benefit through actual implementation, then may be the core Linux developers may have open views regarding the same. Also, I have been doing some research on the issues with Windows, Python and Android cross-compilation over the last week. And based on that it seems that as Android supports building apps natively in Windows and as also that encompasses the usage of the NDK for JVM access through JNI and C/C++ side, we can definitely pull this off successfully in due time basing ourselves on the foundation of enormous work that have already been done in Kivy. Also, due to the recent PEP 720, it seems that python community may be heading towards making python and all of its modules and packages cross-compilable in a seamless manner. Moreover, @Julian-O , please do collaborate with me, so that we can tackle this issue together. |
@Samael-TLB: You can find me on the Kivy Discord server as ".julian_o". Let's chat about what is feasible and what the first steps are. |
Sure @Julian-O |
Description
Currently, p4a can only build for android on Linux OS. For usage through Windows, its suggested to use either WSL2 or VirtualBox, etc. But, on reviewing the internal codebase, it seems we can support native Windows build for android without using any hacks. We have to just have the commands issued to the shell to be platform compliant. Either we can use cmd or powershell for that. The only other part that I am not fully covered up for to achieve this , is the requirements of p4a. Once, we can figure the list of dependencies that might be needed for native Windows or can port the Linux dependencies counterparts for Windows, we can safely have native Windows build for android.
To further support the claim, we can see that beehive project supports android building natively without any OS specific dependencies(beg to differ?). Also, as we are using the cmdline-tools to build for android and as these tools are also released for Windows by Android project so we can safely do the compilation on native Windows.
Moreover, this feature will help a lot of Windows user who may be unfamiliar with Linux or WSL2 and they can just as comfortably do the build without doing anything specific, just like how Android Studio does it on Windows. This will give extra ease of use and for future, we can have a cross-platform Android Studio like project using Kivy resources for build.
Also I have added the relevant feature request upstream for buildozer #kivy/buildozer/issues/1651. Together, these two shall solve the issue.
The text was updated successfully, but these errors were encountered: