[Csnd] Further questions about the Android buld process
Date | 2023-08-18 21:43 |
From | "Jeanette C." |
Subject | [Csnd] Further questions about the Android buld process |
Hey hey, I think these questions go out to Michael Gogins. I tried building the Csound libraries/engine and the Csound for Android UI following the basic instructions from the README file. Having installed the latest android-ndk and android-studio packages on Archlinux (NDK version r25.c-2, Studio version 2022.3.1.18-1), I ran the build-all.sh script. This performed without errors, building something. Afterwards I ran the release.sh assuming that it would create some kind of package/distribution which could be dealt with on an Android device. The resultant zip file measured 2.4MB, 10MB unpacked, which apparently is rather less than the current package, both as an installer or an uncompressed installed package. Looking at the build notes text, I see some information which appear to be out-dated compared to the README file. It also mentions opening the android-studio environment in the GUI to perform further steps. Is this necessary? Can the whole distribution be built from the commandline? Creating a proper .apk file, for the time bein, is neither here nor there. One note, which may be of interest: my Android-ndk package appears to favour the LLVM compilers (clang and clang++). abi versions appear to go up to 30, but also still contain clang binaries with the version number 19 in the name. I would appreciate any help and hints. Best wishes, Jeanette -- * Website: http://juliencoder.de - for summer is a state of sound * Youtube: https://www.youtube.com/channel/UCMS4rfGrTwz8W7jhC1Jnv7g * Audiobombs: https://www.audiobombs.com/users/jeanette_c * GitHub: https://github.com/jeanette-c You might think that I won't make it on my own, But now I'm Stronger <3 (Britney Spears) Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here |
Date | 2023-08-18 22:08 |
From | Michael Gogins |
Subject | Re: [Csnd] Further questions about the Android buld process |
I am required by Google to update the SDK version of the Csound for Android app in the Play Store by August 31. So, I will do that, along with some bug fixes and enhancements. This will, perhaps, result in some changes to the build process. In the meantime, yes, first you build with the shell scripts provided in the repo, then you open the project in Android Studio and build the actual app and apk file there, using libraries built by the shell scripts. I have no plans to change this, but if somebody else wants to, go ahead and do it and submit a pull request. Regards, Mike ----------------------------------------------------- Michael GoginsIrreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Fri, Aug 18, 2023 at 4:43 PM Jeanette C. <julien@mail.upb.de> wrote: Hey hey, |
Date | 2023-08-18 22:43 |
From | "Jeanette C." |
Subject | Re: [Csnd] Further questions about the Android buld process |
Hello Michael, many thanks for your conciise reply. Having worked with the Android environment, are you aware of ways to bild the actual project without the interactive GUI? A pointer to some relevant reading material would be welcome or anything that springs to mind. Certain keywords for further searches. I've just never dealt with cross compiling and the Android toolchain in particular. If anything comes to mind, let me know. If not, don't feel obliged to invest any time in it. Thanks once more and best wishes, Jeanette Aug 18 2023, Michael Gogins has written: > I am required by Google to update the SDK version of the Csound for Android > app in the Play Store by August 31. So, I will do that, along with some > bug fixes and enhancements. This will, perhaps, result in some changes to > the build process. > > In the meantime, yes, first you build with the shell scripts provided in > the repo, then you open the project in Android Studio and build the actual > app and apk file there, using libraries built by the shell scripts. I have > no plans to change this, but if somebody else wants to, go ahead and do it > and submit a pull request. > > Regards, > Mike > > ----------------------------------------------------- > Michael Gogins > Irreducible Productions > http://michaelgogins.tumblr.com > Michael dot Gogins at gmail dot com > > > On Fri, Aug 18, 2023 at 4:43 PM Jeanette C. |
Date | 2023-08-18 22:52 |
From | Michael Gogins |
Subject | Re: [Csnd] Further questions about the Android buld process |
I'm sorry, but I have spent no time on a build system that works only from the command line. I certainly understand why you would want that. I think this is probably possible using CMake instead of the Android SDK build tools, but I would dread the work of moving to that. If you turn up some simple way of changing to CMake for building apps and APKs please let me know and I will look at it. Regards, Mike ----------------------------------------------------- Michael GoginsIrreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Fri, Aug 18, 2023 at 5:42 PM Jeanette C. <julien@mail.upb.de> wrote: Hello Michael, |
Date | 2023-08-18 22:59 |
From | "Jeanette C." |
Subject | Re: [Csnd] Further questions about the Android buld process |
Thanks once more. This is at least definitive. I can see why you wouldn't want to go there. Yet, this is a possible route and I may investigate that, if I have the time and resources. Best wishes, Jeanette Aug 18 2023, Michael Gogins has written: > I'm sorry, but I have spent no time on a build system that works only from > the command line. I certainly understand why you would want that. I think > this is probably possible using CMake instead of the Android SDK build > tools, but I would dread the work of moving to that. If you turn up some > simple way of changing to CMake for building apps and APKs please let me > know and I will look at it. > > Regards, > Mike > > ----------------------------------------------------- > Michael Gogins > Irreducible Productions > http://michaelgogins.tumblr.com > Michael dot Gogins at gmail dot com > > > On Fri, Aug 18, 2023 at 5:42 PM Jeanette C. |
Date | 2023-08-18 23:30 |
From | Arthur Hunkins <000001e1d761dea2-dmarc-request@LISTSERV.HEANET.IE> |
Subject | Re: [Csnd] Further questions about the Android buld process |
Michael -
Could you please enumerate for us the bug fixes and enhancements you intend to address? I assume these will include issues listed in the git repository (I made several there), as well as those Scott recently suggested.
For me, the main issue with the current version has been that it crashes (and requires a complete reboot) whenever it encounters a performance error. One is left with no printout of what the problem was (whereas console Csound halts but leaves helpful messages
and coes not require a complete reboot).
Finally, am I correct in assuming that current Csound for Android .csd's should run without modification in the updated version you are preparing?
We Android users are grateful for all the great and tireless work you are doing on our behalf.
Art H.
abhunkin@uncg.edu
http://www.arthunkins.com
From: A discussion list for users of Csound <CSOUND@LISTSERV.HEANET.IE> on behalf of Michael Gogins <michael.gogins@GMAIL.COM>
Sent: Friday, August 18, 2023 5:08 PM To: CSOUND@LISTSERV.HEANET.IE <CSOUND@LISTSERV.HEANET.IE> Subject: Re: [Csnd] Further questions about the Android buld process I am required by Google to update the SDK version of the Csound for Android app in the Play Store by August 31. So, I will do that, along with some bug fixes and enhancements. This will, perhaps, result in some changes to the build process.
In the meantime, yes, first you build with the shell scripts provided in the repo, then you open the project in Android Studio and build the actual app and apk file there, using libraries built by the shell scripts. I have no plans to change this, but
if somebody else wants to, go ahead and do it and submit a pull request.
Regards,
Mike
-----------------------------------------------------
Michael GoginsIrreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Fri, Aug 18, 2023 at 4:43 PM Jeanette C. <julien@mail.upb.de> wrote:
Hey hey, |
Date | 2023-08-19 01:01 |
From | Steven Yi |
Subject | Re: [Csnd] Further questions about the Android buld process |
You should be able to build Android projects using gradle. I'm not sure how that repository is laid out but I think all Android Studio projects use gradle underneath the hood which enables command line builds. On Fri, Aug 18, 2023 at 5:59 PM Jeanette C. <julien@mail.upb.de> wrote: Thanks once more. This is at least definitive. I can see why you wouldn't want |
Date | 2023-08-19 02:34 |
From | Michael Gogins |
Subject | Re: [Csnd] Further questions about the Android buld process |
I think that might work, the project does indeed use gradle. On Fri, Aug 18, 2023, 20:01 Steven Yi <stevenyi@gmail.com> wrote:
|
Date | 2023-08-19 02:35 |
From | "Brian R." |
Subject | Re: [Csnd] Further questions about the Android buld process |
Yeah I think using gradle will work, I am upgrading my example application so its more comprehensive and have a nice UI, but am using desktop java with the standard csound java api to write something that works both on android and desktop. Right now my example is pretty overly simplistic and doesn't do a command line build but I'll see if I can re-work it because I have the same deadline from Google as Mike to upgrade my psychoflute2 app. On Fri, Aug 18, 2023 at 5:01 PM Steven Yi |
Date | 2023-08-19 02:36 |
From | "Brian R." |
Subject | Re: [Csnd] Further questions about the Android buld process |
Also you can publish PWA web apps onto android with the csound wasm api which has more features than the android native version and that can all be done from command line with node and npm. On Fri, Aug 18, 2023 at 6:35 PM Brian R. |
Date | 2023-08-19 02:40 |
From | ST Music |
Subject | Re: [Csnd] Further questions about the Android buld process |
I want to second Art's sentiments in thanking you Michael for the work you've done with adapting & maintaining the Android app, especially as it's certainly not one of the primary platforms for users. I have thoroughly enjoyed using it despite my occasional issues or frustrations (as probably experienced by any Csound user regardless of the platform). It has opened so many music & sound design possibilities that can't be duplicated in any other Android app currently available. And I know you'd rather be focused on just making music! Best, Scott On Fri, Aug 18, 2023, 6:30 p.m. Arthur Hunkins <000001e1d761dea2-dmarc-request@listserv.heanet.ie> wrote:
|