Csound Csound-dev Csound-tekno Search About

Re: [Csnd] Csound6.apk rc04 & CSound6 android git build error

Date2013-06-28 20:59
From"Art Hunkins"
SubjectRe: [Csnd] Csound6.apk rc04 & CSound6 android git build error
Mike,
 
I just downloaded the current Csound6.apk from SoundForge.
 
It seemed to install fine on my Samsung Galaxy Tab2 7.0 (4.1.1), but hitting Open gave me a brief blink of an unreadable screen, and no other action whatever. Clicking the installed icon elicits the same response.
 
FWIW, I can then uninstall the app.
 
Art Hunkins
----- Original Message -----
To: Csound
Sent: Friday, June 28, 2013 6:31 AM
Subject: Re: [Csnd] Csound6.apk rc04 & CSound6 android git build error

The cause of the dependency on libgnustl_shared.so is twofold. First, any code that uses the standard C++ library will need this. That includes some of the code in plugin opcodes, notably the Lua opcodes and the signal flow graph opcodes. Second, there are static elements in C++ code that require that, if a process loads more than one C++ module, all the C++ modules need to be in shared libraries, otherwise data may be corrupted or the app may even crash.

My whole motive for working on Android Csound is to be able to compose on my phone, and to do that I need the Lua opcodes and the signal flow graph opcodes. I've noticed a number of other composers also use the signal flow graph opcodes, so I think there are good reasons for trying to get this to work. 

So I don't consider dropping these opcodes to be an option.

We do have options however:

First, we can just get this to work. This is my preference. However, I've done a fair amount of research and as far as I can tell I am doing everything correctly now.

Second, we can statically link the app and all the "plugins" into one app, except for LuaJIT, which has no dependency on any C++ code. This will involve putting a little bit of code in the Android Csound C code to get these opcodes into the opcode dispatch table using the Csound API. I will do this if we can't get the gnustl thing resolved quickly.

Third, of course we can produce two versions of the app, one with the C++ plugins and one without. I noticed in the logs provided that libsndfile loaded without any problems so I expect any other plain C plugins also will load without any problems.

What do you think?

I'd appreciate more reports. Has anybody actually been able to run this thing besides me?

Regards,
Mike


===========================
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Fri, Jun 28, 2013 at 5:34 AM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
Why I don't understand is the libcsound dependency on libgnustl ? Surely Csound does not require STL?
Can't this be changed?

On 28 Jun 2013, at 10:26, Jacques Leplat wrote:

> Hello,
>
> This morning I downloaded the rc04 Csound6.apk from source forge (available in http://sourceforge.net/projects/csound/files/csound6/Csound6.0rc4/). It fails on startup.
>
> Device: Motorola MZ604
> Android Version: 4.0.4
>
> The log is below:
>
> 06-28 09:54:52.730: I/ActivityManager(164): START {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.csounds.Csound6/.CsoundAppActivity} from pid 417
> 06-28 09:54:52.810: D/dalvikvm(7014): Late-enabling CheckJNI
> 06-28 09:54:52.820: I/ActivityManager(164): Start proc com.csounds.Csound6 for activity com.csounds.Csound6/.CsoundAppActivity: pid=7014 uid=10172 gids={1015, 1007}
> 06-28 09:54:52.830: I/dalvikvm(7014): Turning on JNI app bug workarounds for target SDK version 10...
> 06-28 09:54:52.840: D/dalvikvm(7014): Debugger has detached; object registry had 1 entries
> 06-28 09:54:52.840: D/OpenGLRenderer(417): Flushing caches (mode 1)
> 06-28 09:54:52.860: D/OpenGLRenderer(417): Flushing caches (mode 0)
> 06-28 09:54:52.880: D/dalvikvm(7014): Trying to load lib /data/data/com.csounds.Csound6/lib/libsndfile.so 0x4109b920
> 06-28 09:54:52.880: D/dalvikvm(7014): Added shared lib /data/data/com.csounds.Csound6/lib/libsndfile.so 0x4109b920
> 06-28 09:54:52.880: D/dalvikvm(7014): No JNI_OnLoad found in /data/data/com.csounds.Csound6/lib/libsndfile.so 0x4109b920, skipping init
> 06-28 09:54:52.880: D/dalvikvm(7014): Trying to load lib /data/data/com.csounds.Csound6/lib/libcsoundandroid.so 0x4109b920
> 06-28 09:54:52.880: W/System.err(7014): csoundandroid native code library failed to load.
> 06-28 09:54:52.880: W/System.err(7014): java.lang.UnsatisfiedLinkError: Cannot load library: link_image[1936]:    90 could not load needed library 'libgnustl_shared.so' for 'libcsoundandroid.so' (load_library[1091]: Library 'libgnustl_shared.so' not found)
> 06-28 09:54:52.900: I/ActivityManager(164): Process com.csounds.Csound6 (pid 7014) has died.
> 06-28 09:54:52.900: D/Zygote(90): Process 7014 exited cleanly (1)
> 06-28 09:54:52.900: W/ActivityManager(164): Force removing ActivityRecord{410919b8 com.csounds.Csound6/.CsoundAppActivity}: app died, no saved state
>
> All the best,
>
> Jacques
>
>
>
>
> Send bugs reports to the Sourceforge bug tracker
>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie





Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"