-
Notifications
You must be signed in to change notification settings - Fork 859
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
Can't compile Android Open Source Project with Bash On Windows #1771
Comments
Compiling with Java has issues on 14393, unsure whether this works on 14986 or later, but it's quite unlikely that anything that's compiling Java is going to work on 14393. |
Why would 32 bit binaries be an "enhancement"? This would be necessary to compile Android ROMs, which is a workflow typically requiring Ubuntu. Isn't that part of the Bash project? |
I'm not on the WSL team personally (I'm just another user), but I bet it's an "enhancement" because it's a major and mostly standalone piece of functionality that many applications and frameworks don't require. And it's probably a real pain to implement :-) WSL is effectively, as far as I can tell, reimplementing a kernel with the The Linux kernel has a lot of features. Some are used very frequently, some very rarely; some are easy to implement, others are much more work. I expect it will be many years, if ever, before the WSL team has finished providing an exact bug-for-bug-compatible reimplementation of all interfaces to the Linux kernel. So if your definition of a bug is any incompatibility, then basically everything in this ticket-tracker is a bug :-) If everything is a bug, then it's not really useful to say whether something is a bug or not, because the answer is "yes, it is a bug" :-) So the WSL team sometimes uses terms other than "bug" to convey information about where something currently resides in their priority queue. |
+1 for "... That said, the upstream build requirements for Android are all open source, and there is nothing stopping people from contributing to Google and help bring the toolchain into the 21st century. So unlike say CUDA, this is completely solvable without Microsoft's help. And probably should be. |
I have success build LineageOS from WSL. |
@kxzxxx mmm, I have LineageOS official code, how can I change from it to yours? |
@Maxee112 https://github.com/kxzxxx/android_prebuilts_misc |
@kxzxxx If you are confortable with that, and if there isn't one, I'll create a post on XDA with all the details on how to build Lineageos in WSL via your repositories, it's gonna help a lot of people. |
@Maxee112 Do it as you wish. |
@kxzxxx changed lineageos/android_build and aosp prebuilts/misc on my local manifest by kxzxxx/android_build and kxzxxx/android_prebuilts_misc and i still get an error with flex and bison. Do I need to add something to ~/.bashrc? |
@Maxee112 I upload prebuilts flex bison in android_build. android_prebuilts_misc is not needed anymore |
@kxzxxx then just delete that line from manifest.xml or leave it as it was before making changes? |
@Maxee112 use lineageos default android_prebuilts_misc |
@kxzxxx Still get the same errors |
What about TWRP? Has anyone successfully compiled one using WSL? |
@huckleberrypie On the "Build android from source on windows 10" thread in xda-developers forum there are people that confirm TWRP can be compiled on WSL. Just make sure the entire toolchain uses 64bit binaries. |
I have a major question, has anyone used any Android apps successfully after building the LineageOS or TWRP? How about Google Play? |
For those interested in building LineageOS 15.1 on Windows: https://forum.xda-developers.com/android/software-hacking/guide-how-to-build-lineageos-15-1-t3750175/post75579340#post75579340 |
Thanks Uldiniad. It would still be nice to have a repro for the hang in #2948 on the books because I'm sure it is a valid issue not confined to LineageOS. The OP here was dupe #390 with User Voice here; so, like #1687 I'll mark it as such. I encourage everyone to up-vote 32-bit support (even if it goes against OCD inclinations) because it is important for Big Sky reasons. |
When trying to follow the AOSP build instructions for Sony devices under the "Build AOSP Nougat 7.1" section here https://developer.sonymobile.com/open-devices/aosp-build-instructions/how-to-build-aosp-nougat-for-unlocked-xperia-devices/#build-aosp-nougat-7-1
almost immediately after running
make
I am givenI've stored what I believe to be the dump file output here https://gist.github.com/anonymous/18492035989c5761d596f1c39b26fffd, but it really doesn't seem like it contains anything useful.
I am on Windows Home, Version 1607 (OS Build 14393.693) and I can confirm that on a linux virtual machine the Android Open Source Project produces flash-able android system images without error.
I really wish I had more info about this problem, but I do not. I am however open to people's suggestions on how to collect and provide more information about the problem with instructions.
The text was updated successfully, but these errors were encountered: