chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] compile .scm for android


From: Jin Cao
Subject: Re: [Chicken-users] compile .scm for android
Date: Sat, 02 Apr 2016 15:52:20 +0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.8.0

Hi Rafael,


On 04/02/2016 01:14 AM, F. Rafael Leon wrote:
> On Thu, Mar 31, 2016 at 11:34 AM, Jin Cao <address@hidden> wrote:
>> Are these possible?
>> 1. run compiled scheme without chicken runtime, or
>> 2. let CHICKEN_run() be executed in the "right way"
> The answer to question 1 is "yes".
>
> The way I did it is to compile csi for Android. Then start a csi
> process and pipe S-expressions back and forth to my JVM app written in
> Kawa Scheme.  csi is on native side and Kawa is on JVM side and they
> talk to each other. I used csi for data processing and Kawa for UI.
>
> Lollipop and later require PIE support.
> To compile csi for Android, you add "-fPIE" to CFLAGS.
Interesting approach. It is the first time I hear that android UI can be
written be scheme dialect, Kawa.

>
> For question 2, I don't remember jni working well for me. However, from here:
>
> http://wiki.call-cc.org/embedding
>
> It says to try:
>
> CHICKEN_run(CHICKEN_default_toplevel);
>
> instead of:
>
> CHICKEN_run(C_toplevel);
>
> That might be the problem.

CHICKEN_run(CHICKEN_default_toplevel) is tried, neither works.
Segmentation fault remains.
>
>    -Rafael
I almost give up writing algorithms using chicken for android, but would
like to try the way you did. Could you please show some hints to do
that? Thank you very much.


Regards,
Lopd




reply via email to

[Prev in Thread] Current Thread [Next in Thread]