[Cs-dev] Csound 6 for Android
Date | 2013-05-25 22:43 |
From | Michael Gogins |
Subject | [Cs-dev] Csound 6 for Android |
Attachments | None None |
I've jumped in and am trying to get this to build, install, and run.
Right now, I've pushed commits to enable building all the native libraries for the current version of Android Csound on MinGW. This is all NDK so far.
The main changes have been adding some include paths to the .mk files, and using NDK_MODULE_PATH in them. So when building for Android now, you need to set this environment variable, and put the sources for the modules in there.
I've also had to add or remove a few source files, that I think were changed since 5, or just overlooked. I've also started a document on building Csound 6 for Android, as I didn't find any documentation to get started.
Now, I'm going to try building the Java half of this package. Regards, Mike Michael Gogins Irreducible Productions http://www.michael-gogins.com Michael dot Gogins at gmail dot com |
Date | 2013-05-25 23:11 |
From | Steven Yi |
Subject | Re: [Cs-dev] Csound 6 for Android |
I'm on a trip this weekend but I just looked at the diff for this. I'll probably have more to comment later, but first thing I noticed, this seems to remove armv5? If so, have the emulators for Android 2.x been released to work with armv7 or is this an oversight? Otherwise, I seem to remember we needed this or Csound wouldn't run in an emulator during development. On Sat, May 25, 2013 at 10:43 PM, Michael Gogins |
Date | 2013-05-25 23:42 |
From | Michael Gogins |
Subject | Re: [Cs-dev] Csound 6 for Android |
Attachments | None None |
I never thought of anyone running Csound in an emulator... But, well, whooee!!! Csound 6 is running on my phone right now! It was harder than I thought at first (getting native stuff to build when I hadn't used the toolchain), and then easier than I thought (the Java stuff basically just worked).
I think we need to agree on a minimal version of ARM architecture and Android version. Right now, everything is configured with the following. But what would be the lowest version of things that get hardware floating point and good audio?
export SDK=/d/Android/adt-bundle-windows-x86-20130514/sdk export NDK=/d/Android/android-ndk-r8e export ANDROID_NDK_ROOT=$NDK export NDK_MODULE_PATH=/c/ndk-modules
export PATH=${PATH}:$NDK_MODULE_PATH export CSOUND_SRC_ROOT=/c/Users/new/csound-csound6-git export NDKABI=9 export NDKVER=$NDK/toolchains/arm-linux-androideabi-4.7 export NDKP=$NDKVER/prebuilt/windows/bin/arm-linux-androideabi-
export NDKF="--sysroot $NDK/platforms/android-$NDKABI/arch-arm" export NDKARCH="-march=armv7-a -mfloat-abi=softfp -Wl,--fix-cortex-a8" Anyway, I think you guys have done great stuff, and I don't think we're far from having a real Csound with a code editor and LuaJIT going on the phone.
Let me know your thoughts on what changes/new features would be good for this project. Regards, Mike On Sat, May 25, 2013 at 6:11 PM, Steven Yi <stevenyi@gmail.com> wrote: I'm on a trip this weekend but I just looked at the diff for this. Michael Gogins Irreducible Productions http://www.michael-gogins.com Michael dot Gogins at gmail dot com |
Date | 2013-05-26 03:45 |
From | Michael Gogins |
Subject | [Cs-dev] Csound 6 for Android |
Attachments | None None |
I got this to build on MinGW for the Samsung S4 and it runs beautifully.
I changed the layout a bit and added an "Edit" button which edits the selected CSD file by intent, using the Android default text editor. I tested this with the excellent Jota text editor.
There are probably better ways to do this. At the least there needs to be a "New CSD" button that will create a template CSD file in the editor. Since I've already built LuaJIT for the same target, it should be fairly straightforward to build the LuaJIT opcodes and add them to the .apk.
Regards, Mike Michael Gogins Irreducible Productions http://www.michael-gogins.com Michael dot Gogins at gmail dot com |