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
�� ��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. ����
�� The building steps are detailed on the��README-Android.md file.��Building the Stack AndroidVM
Download the sources from��github
git clone --depth=1 https://github.com/sbragagnolo/pharo-vm cd pharo-vmSet-up your environment: This script will download the SDK installer and NDK R10
cd android/scripts ./setupAndroidEnvironment.stThis 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.
Create a new image: this image will be created by pointing to this local git repository
cd android/scripts ./newImage.stLink 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.stGenerate the sources of the stack vm: This script executes the generator of the image created on int the 3rd step.
cd android/scripts ./generateStackAndroidMake.stGenerate 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.stThis 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.
The VM compilation: This script generates the libraries with the VM code.
cd build ./build.shThe Java wrapper compilation and Android Application packaging
cd build ./package.shInstalling 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
����