[Ann] Stack Android VM
Still far from production. But since i would happy to have some feedback, I'm happy to show you some progress on the android VM. Not yet release. But we have already a way of compiling and deploying an image into an android device. You can check it in this repo github. https://github.com/sbragagnolo/pharo-vm/ The building steps are detailed on the README-Android.md file. Building the Stack AndroidVM 1. Download the sources from github <https://github.com/sbragagnolo/pharo-vm> git clone --depth=1 https://github.com/sbragagnolo/pharo-vmcd pharo-vm 2. Set-up your environment: This script will download the SDK installer and NDK R10 cd android/scripts ./setupAndroidEnvironment.st This script downloads the content from - ' http://dl.google.com/android/repository/android-ndk-r10e-linux-x86_64.zip '. - 'http://dl.google.com/android/android-sdk_r24.4.1-linux.tgz'. After this process you should have available the environment variables ANDROID_NDK_HOME and ANDROID_SDK_HOME. Ensure this by checking your .bashrc file at the user's home directory. 3. Create a new image: this image will be created by pointing to this local git repository cd android/scripts ./newImage.st 4. Link sources to the build folder: The Android vm relies on a Java wrapper. This sources must be accessible from the build folder. cd android/scripts ./linkSources.st 5. Generate the sources of the stack vm: This script executes the generator of the image created on int the 3rd step. cd android/scripts ./generateStackAndroidMake.st 6. Generate the resource image for deployment: This script download and suites up an image for deployment on the folder build/assets/SmalltalkRessources cd android/scripts ./newResourceImage.st This image created in this point is downloaded with it related VM for editing and loading the code you want to deploy, or configure the things you want. 7. The VM compilation: This script generates the libraries with the VM code. cd build ./build.sh 8. The Java wrapper compilation and Android Application packaging cd build ./package.sh 9. Installing into your device. If you want to generate an APK file with your custom name, you will need to deal with the AndroidManifest.xml before runing the package.sh script :) cd build/bin adb install -r StackActivity-debug.apk - Im currently working on the JIT version of the VM, that still avoiding me :). But you have as well the instruction on the same README-Android.me file. Santiago
AMAZING!!! I will definitely try to compile :) Thanks a lot for this great work! Keep it up! Cheers, Alex On 23 October 2016 at 22:03, Santiago Bragagnolo < santiagobragagnolo@gmail.com> wrote:
Still far from production. But since i would happy to have some feedback, I'm happy to show you some progress on the android VM. Not yet release. But we have already a way of compiling and deploying an image into an android device.
You can check it in this repo github. https://github.com/sbragagnolo/pharo-vm/
The building steps are detailed on the README-Android.md file. Building the Stack AndroidVM
1.
Download the sources from github <https://github.com/sbragagnolo/pharo-vm>
git clone --depth=1 https://github.com/sbragagnolo/pharo-vmcd pharo-vm
2.
Set-up your environment: This script will download the SDK installer and NDK R10
cd android/scripts ./setupAndroidEnvironment.st
This script downloads the content from - 'http://dl.google.com/android/repository/android-ndk-r10e- linux-x86_64.zip'. - 'http://dl.google.com/android/android-sdk_r24.4.1-linux.tgz'.
After this process you should have available the environment variables ANDROID_NDK_HOME and ANDROID_SDK_HOME. Ensure this by checking your .bashrc file at the user's home directory. 3.
Create a new image: this image will be created by pointing to this local git repository
cd android/scripts ./newImage.st
4.
Link sources to the build folder: The Android vm relies on a Java wrapper. This sources must be accessible from the build folder.
cd android/scripts ./linkSources.st
5.
Generate the sources of the stack vm: This script executes the generator of the image created on int the 3rd step.
cd android/scripts ./generateStackAndroidMake.st
6.
Generate the resource image for deployment: This script download and suites up an image for deployment on the folder build/assets/ SmalltalkRessources
cd android/scripts ./newResourceImage.st
This image created in this point is downloaded with it related VM for editing and loading the code you want to deploy, or configure the things you want. 7.
The VM compilation: This script generates the libraries with the VM code.
cd build ./build.sh
8.
The Java wrapper compilation and Android Application packaging
cd build ./package.sh
9.
Installing into your device. If you want to generate an APK file with your custom name, you will need to deal with the AndroidManifest.xml before runing the package.sh script :)
cd build/bin adb install -r StackActivity-debug.apk
- Im currently working on the JIT version of the VM, that still avoiding me :). But you have as well the instruction on the same README-Android.me file.
Santiago
Great. Do you have prebuilt apk file? 2016-10-23 22:03 GMT+02:00 Santiago Bragagnolo <santiagobragagnolo@gmail.com
:
Still far from production. But since i would happy to have some feedback, I'm happy to show you some progress on the android VM. Not yet release. But we have already a way of compiling and deploying an image into an android device.
You can check it in this repo github. https://github.com/sbragagnolo/pharo-vm/
The building steps are detailed on the README-Android.md file. Building the Stack AndroidVM
1.
Download the sources from github <https://github.com/sbragagnolo/pharo-vm>
git clone --depth=1 https://github.com/sbragagnolo/pharo-vmcd pharo-vm
2.
Set-up your environment: This script will download the SDK installer and NDK R10
cd android/scripts ./setupAndroidEnvironment.st
This script downloads the content from - 'http://dl.google.com/android/repository/android-ndk-r10e- linux-x86_64.zip'. - 'http://dl.google.com/android/android-sdk_r24.4.1-linux.tgz'.
After this process you should have available the environment variables ANDROID_NDK_HOME and ANDROID_SDK_HOME. Ensure this by checking your .bashrc file at the user's home directory. 3.
Create a new image: this image will be created by pointing to this local git repository
cd android/scripts ./newImage.st
4.
Link sources to the build folder: The Android vm relies on a Java wrapper. This sources must be accessible from the build folder.
cd android/scripts ./linkSources.st
5.
Generate the sources of the stack vm: This script executes the generator of the image created on int the 3rd step.
cd android/scripts ./generateStackAndroidMake.st
6.
Generate the resource image for deployment: This script download and suites up an image for deployment on the folder build/assets/ SmalltalkRessources
cd android/scripts ./newResourceImage.st
This image created in this point is downloaded with it related VM for editing and loading the code you want to deploy, or configure the things you want. 7.
The VM compilation: This script generates the libraries with the VM code.
cd build ./build.sh
8.
The Java wrapper compilation and Android Application packaging
cd build ./package.sh
9.
Installing into your device. If you want to generate an APK file with your custom name, you will need to deal with the AndroidManifest.xml before runing the package.sh script :)
cd build/bin adb install -r StackActivity-debug.apk
- Im currently working on the JIT version of the VM, that still avoiding me :). But you have as well the instruction on the same README-Android.me file.
Santiago
This is great! 2016-10-23 23:08 GMT+02:00 Denis Kudriashov <dionisiydk@gmail.com>:
Great. Do you have prebuilt apk file?
2016-10-23 22:03 GMT+02:00 Santiago Bragagnolo < santiagobragagnolo@gmail.com>:
Still far from production. But since i would happy to have some feedback, I'm happy to show you some progress on the android VM. Not yet release. But we have already a way of compiling and deploying an image into an android device.
You can check it in this repo github. https://github.com/sbragagnolo/pharo-vm/
The building steps are detailed on the README-Android.md file. Building the Stack AndroidVM
1.
Download the sources from github <https://github.com/sbragagnolo/pharo-vm>
git clone --depth=1 https://github.com/sbragagnolo/pharo-vmcd pharo-vm
2.
Set-up your environment: This script will download the SDK installer and NDK R10
cd android/scripts ./setupAndroidEnvironment.st
This script downloads the content from - 'http://dl.google.com/android/repository/android-ndk-r10e-li nux-x86_64.zip'. - 'http://dl.google.com/android/android-sdk_r24.4.1-linux.tgz'.
After this process you should have available the environment variables ANDROID_NDK_HOME and ANDROID_SDK_HOME. Ensure this by checking your .bashrc file at the user's home directory. 3.
Create a new image: this image will be created by pointing to this local git repository
cd android/scripts ./newImage.st
4.
Link sources to the build folder: The Android vm relies on a Java wrapper. This sources must be accessible from the build folder.
cd android/scripts ./linkSources.st
5.
Generate the sources of the stack vm: This script executes the generator of the image created on int the 3rd step.
cd android/scripts ./generateStackAndroidMake.st
6.
Generate the resource image for deployment: This script download and suites up an image for deployment on the folder build/assets/SmalltalkRessources
cd android/scripts ./newResourceImage.st
This image created in this point is downloaded with it related VM for editing and loading the code you want to deploy, or configure the things you want. 7.
The VM compilation: This script generates the libraries with the VM code.
cd build ./build.sh
8.
The Java wrapper compilation and Android Application packaging
cd build ./package.sh
9.
Installing into your device. If you want to generate an APK file with your custom name, you will need to deal with the AndroidManifest.xml before runing the package.sh script :)
cd build/bin adb install -r StackActivity-debug.apk
- Im currently working on the JIT version of the VM, that still avoiding me :). But you have as well the instruction on the same README-Android.me file.
Santiago
Thanks for working on this. I greatly look forward to being able to use Pharo on my devices. Exciting times. Jimmie Houchin On 10/23/2016 03:03 PM, Santiago Bragagnolo wrote:
Still far from production. But since i would happy to have some feedback, I'm happy to show you some progress on the android VM. Not yet release. But we have already a way of compiling and deploying an image into an android device.
You can check it in this repo github. https://github.com/sbragagnolo/pharo-vm/
The building steps are detailed on the README-Android.md file. [snip]
I want to thank Inria to have listen to me (and it was not that simple) to let Santiago work on that. So please use it and show us that you use it. Stef Le 23/10/16 à 22:03, Santiago Bragagnolo a écrit :
Still far from production. But since i would happy to have some feedback, I'm happy to show you some progress on the android VM. Not yet release. But we have already a way of compiling and deploying an image into an android device.
You can check it in this repo github. https://github.com/sbragagnolo/pharo-vm/
The building steps are detailed on the README-Android.md file.
Building the Stack AndroidVM
1.
Download the sources fromgithub <https://github.com/sbragagnolo/pharo-vm>
git clone --depth=1https://github.com/sbragagnolo/pharo-vm cd pharo-vm 2.
Set-up your environment: This script will download the SDK installer and NDK R10
cd android/scripts ./setupAndroidEnvironment.st
This script downloads the content from
* 'http://dl.google.com/android/repository/android-ndk-r10e-linux-x86_64.zip'. * 'http://dl.google.com/android/android-sdk_r24.4.1-linux.tgz'.
After this process you should have available the environment variables ANDROID_NDK_HOME and ANDROID_SDK_HOME. Ensure this by checking your .bashrc file at the user's home directory.
3.
Create a new image: this image will be created by pointing to this local git repository
cd android/scripts ./newImage.st 4.
Link sources to the build folder: The Android vm relies on a Java wrapper. This sources must be accessible from the build folder.
cd android/scripts ./linkSources.st 5.
Generate the sources of the stack vm: This script executes the generator of the image created on int the 3rd step.
cd android/scripts ./generateStackAndroidMake.st 6.
Generate the resource image for deployment: This script download and suites up an image for deployment on the folder build/assets/SmalltalkRessources
cd android/scripts ./newResourceImage.st
This image created in this point is downloaded with it related VM for editing and loading the code you want to deploy, or configure the things you want.
7.
The VM compilation: This script generates the libraries with the VM code.
cd build ./build.sh 8.
The Java wrapper compilation and Android Application packaging
cd build ./package.sh 9.
Installing into your device. If you want to generate an APK file with your custom name, you will need to deal with the AndroidManifest.xml before runing the package.sh script :)
cd build/bin adb install -r StackActivity-debug.apk
- Im currently working on the JIT version of the VM, that still avoiding me :). But you have as well the instruction on the same README-Android.me file.
Santiago
participants (6)
-
Aliaksei Syrel -
Denis Kudriashov -
Jimmie Houchin -
Nicolas Passerini -
Santiago Bragagnolo -
stepharo