Re: Build a picolisp core for android fails

2020-11-24 Thread Alexander Burger
On Tue, Nov 24, 2020 at 07:46:27AM +0100, Alexander Burger wrote:
> I'm not sure what went wrong in your case. It may be that for some reason 
> PilBox
> cannot delete the old "bin/picolisp" and create the new symbolic link.
> 
> Perhaps it helps if you uninstall PilBox and then re-install the new APK?

Or - if the old PilBox is still installed - do in the $REPL

   $ rm bin/picolisp
   $ rm bin/ssl

and then install the new one.

☺/ A!ex

-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Re: Build a picolisp core for android fails

2020-11-24 Thread Gaston Pepe
#tar xvzf PilBox.tgz  ---> ok
#cd PilBox
#mkdir obj
/mk.pilBox
ERROR: input directory 'bin' does not exist
 'classes.dex'...

this error.
what am I doing wrong?


El mar, 24 nov 2020 a las 7:38, Alexander Burger ()
escribió:

> On Tue, Nov 24, 2020 at 07:46:27AM +0100, Alexander Burger wrote:
> > I'm not sure what went wrong in your case. It may be that for some
> reason PilBox
> > cannot delete the old "bin/picolisp" and create the new symbolic link.
> >
> > Perhaps it helps if you uninstall PilBox and then re-install the new APK?
>
> Or - if the old PilBox is still installed - do in the $REPL
>
>$ rm bin/picolisp
>$ rm bin/ssl
>
> and then install the new one.
>
> ☺/ A!ex
>
> --
> UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
>


Re: Call native wrapper function with double argument

2020-11-24 Thread Thorsten Jolitz
Hi Alex,
thanks for your tips ... and patience!
My lack of experience with C, Pointers and low level programming clearly
shows in my questions, and most real world libraries of 'native' wrappers I
find don't really implement complex C signatures, so I have to experiment
myself.

I'll try to digest your hints and do some more experimentation over the
weekend.
Luckily, If I manage to wrap one such C function, I can reuse that
understanding for many others 
Cheers
Thorsten

Am Di., 24. Nov. 2020 um 07:50 Uhr schrieb Alexander Burger <
a...@software-lab.de>:

> On Mon, Nov 23, 2020 at 06:17:46PM +0100, Alexander Burger wrote:
> > Something like '("Dx" (24 . 1.0) '(1.0 1.0 2.0 3.0)) could make sense,
> if the C
> > argument is "double dx[3];".
>
> oops
>
> (24 . 1.0) is of course not returning "double dx[3];", but a single double.
>
> Try (24 1.0 1.0 1.0) or better (24 (1.0 . 3)).
>
> ☺/ A!ex
>
> --
> UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
>


Re: Build a picolisp core for android fails

2020-11-24 Thread Alexander Burger
Hi Gaston,

> #tar xvzf PilBox.tgz  ---> ok
> #cd PilBox
> #mkdir obj
> /mk.pilBox
> ERROR: input directory 'bin' does not exist
>  'classes.dex'...
>
> this error.

I see. Strange, because PilBox.tgz *does* contain "bin/":

   $ tar tvfz PilBox.tgz
   -rw-r--r-- abu/abu1176 2019-04-20 09:22 PilBox/COPYING
   -rw-r--r-- abu/abu5633 2020-10-11 18:41 PilBox/README
   -rw-r--r-- abu/abu   16955 2020-10-31 09:55 PilBox/ChangeLog
   ...
   drwxr-xr-x abu/abu   0 2020-09-07 16:49 PilBox/bin/
   drwxr-xr-x abu/abu   0 2020-10-08 16:02 PilBox/bin/lib/
   drwxr-xr-x abu/abu   0 2020-10-31 09:54 PilBox/bin/lib/arm64-v8a/
   -rwx-- abu/abu  339192 2020-07-28 12:23 
PilBox/bin/lib/arm64-v8a/libncursesw.6.2.so
   -rwxr-xr-x abu/abu   12824 2020-10-26 17:35 
PilBox/bin/lib/arm64-v8a/libext.so
   -rwx-- abu/abu  446160 2020-09-24 01:07 
PilBox/bin/lib/arm64-v8a/libssl.1.1.so
   -rwxr-xr-x abu/abu  381624 2020-10-30 12:36 
PilBox/bin/lib/arm64-v8a/libpicolisp.so
   -rwx-- abu/abu  351304 2020-07-07 18:51 
PilBox/bin/lib/arm64-v8a/libreadline.8.0.so
   -rwxr-xr-x abu/abu   19736 2020-10-29 10:56 
PilBox/bin/lib/arm64-v8a/libssl.so
   -rwx-- abu/abu 2125480 2020-09-24 01:07 
PilBox/bin/lib/arm64-v8a/libcrypto.1.1.so
   -rwx-- abu/abu   67784 2020-07-07 18:59 
PilBox/bin/lib/arm64-v8a/libffi.so
   -rwxr-xr-x abu/abu   17232 2020-10-26 17:35 
PilBox/bin/lib/arm64-v8a/libht.so
   -rw--- abu/abu   21808 2020-08-07 12:37 
PilBox/bin/lib/arm64-v8a/libandroid-support.so
   ...

*Where* exactly in 'mk.pilBox' does this error occur?

☺/ A!ex

-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Re: Call native wrapper function with double argument

2020-11-24 Thread Alexander Burger
Hi Thorsten,

> Luckily, If I manage to wrap one such C function, I can reuse that
> understanding for many others 

Yes, and don't worry to ask. 'native' is a complex issue (I also need to look
into the reference each time), so others may benefit from the records too.

☺/ A!ex

-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe