-
-
Notifications
You must be signed in to change notification settings - Fork 161
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
aapt in TermuxArch #31
Comments
You are welcome; and thank you for posting this issue.
Correct. The reason behind this issue is that
Both architecture and operating system should match for most packages to work. Especially when these packages contain binary files like
I appears that everyone on arm devices without the knowhow is stuck. The lucky ones with x86-64 devices are not it seems, and appear to have the green light for The course to take for arm device users appears to be to build the APK in Arch Linux Termux PRoot using First; Identify the dependencies after downloading via Run this modified build script from |
Dear Sdrausty,
Thanks for the feedback, I have retried as you suggest. I install aapt in
Termux, then copied the aapt into a folder "android". I am able to execute
the aapt in that folder:
![screen1](https://user-images.githubusercontent.com/4903469/34936414-39f7683e-fa1c-11e7-8003-2ce9a0ee336c.png)
However when I tried it in TermuxArch I am having the same error as
previous:
![screen2](https://user-images.githubusercontent.com/4903469/34936419-415b9a46-fa1c-11e7-9c4b-ea077acd1ec3.png)
The file command already indicated it is compiled in Arm. Please take note
that I have to add a bash in front of ./aapt. Is that what cause the
problem? My apologies, I am not well verse in Linux environment, still a
learning process for me. Appreciate if you can shine a light and point me
to the right direction. Or if you have time on your hands (and maybe find
it easier) to just give me a fix so I won't spam this thread 😅 I would be
very grateful. Thanks again.
Regards,
Stephen
…On Tue, Jan 9, 2018 at 9:38 AM, S D Rausty ***@***.***> wrote:
You are welcome; and thank you for posting this issue.
aapt is not compiled for my armv7
Correct. The reason behind this issue is that gradle downloads files for
the wrong architecture.
installed aapt in termux, copied it and try running it TermuxArch
Both architecture and operating system should match for most packages to
work. Especially when these packages contain binary files like aapt.
I am stuck
I appears that everyone on arm devices without the knowhow is stuck. The
lucky ones with x86-64 devices are not it seems, and appear to have the
green light for gradle builds on device at present. Trying to build
https://aur.archlinux.org/packages/android-sdk/ in Arch Linux Termux
PRoot on device only confirmed the issue we have encountered. The error
message from building android-sdk on device states *not available for
armv7*. There should be a solution sdrausty/buildAPKs#3
<https://github.com/sdrausty/buildAPKs/issues/3> for "Gradle Builds..."
available for everyone today.
The course to take for arm device users appears to be to build the APK in
Arch Linux Termux PRoot using gradle as far as possible. Then:
*First;* Identify the dependencies after downloading via gradle. Which jar
files and similar are needed to create the APK.
*Second;* Modify https://raw.githubusercontent.
com/sdrausty/buildAPKs/master/scripts/build/buildOne.sh the build script
to include these dependencies to build directly in Termux on Android,
Chromebook and Fire OS.
Run this modified build script from ~/buildAPKs
<https://sdrausty.github.io/buildAPKs/> to build and sign the APK. Termux
in Termux was successfully created in summer 2017 on device with a similar
method! Enjoy building your project. Building Android in Termux
<https://wiki.archlinux.org/index.php/Android> should be a natural
spinoff from this thread.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#31 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AErSLQZKdB5XJyliCSz2oik7PzDLbZkyks5tIsL_gaJpZM4RWFIb>
.
|
@stephenljk Thank you for your response. Evidently I did not make myself clear enough. You cannot run most Termux debs in Arch Linux Termux PRoot. Arch Linux uses an emulated kernel. Termux uses the system kernel. This part is done in Arch Linux Termux PRoot.
This part is done in straight Termux using buildAPKs.
Run a modified Use part one in Arch Linux Termux PRoot to get the libraries. |
Nope, unless by "emulated kernel" you mean proot. You don't even need the kernel because you aren't booting to a system. They do uses different C libraries and so though. |
Issue closed because it does not concern setupTermuxArch itself. |
Hi there, first of all thank you for such a wonderful port of ArchLinux. I am currently trying to convert cheap affordable tablet into teaching computer for under privilege kids in my neighborhood. I have so far manage to install nodejs as well as postgres database to teach basic HTML scripting, however I am stuck when I tried to use Cordova to build hybrid app.
After installing Cordova, I use the cordova build command, however I can't get it pass the aapt
Since the error says it cannot execute aapt, I tried manually running aapt and this is the result:
I assumed the aapt is not compiled for my armv7, so I installed aapt in termux, copied it and try running it TermuxArch. aapt is able to execute in termux, but it failed again in TermuxArch:
At this point in time I am stuck. Can you shine some light on how to get aapt running in TermuxArch? Thanks.
Regards,
Stephen
The text was updated successfully, but these errors were encountered: