Re: Android C FFI / libtool
Bernd Paysan <[email protected]> Sun, 11 Feb 2024 23:22:57 +0100
| Newsgroups | gmane.comp.lang.forth.gforth |
|---|---|
| Message-ID | <71158755.0thIPus4bt@liubei> |
--nextPart1853147.25eIC5XRat Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8"; protected-headers="v1" From: Bernd Paysan <[email protected]> To: "gforth-mXXj517/[email protected]" <gforth-mXXj517/[email protected]> Cc: shtps <shtps-g/[email protected]> Subject: Re: Android C FFI / libtool Date: Sun, 11 Feb 2024 23:22:57 +0100 Message-ID: <71158755.0thIPus4bt@liubei> MIME-Version: 1.0 Am Sonntag, 11. Februar 2024, 21:30:20 CET schrieb shtps via Gforth discuss= ion=20 and announcements: > Hi, >=20 > Out of curiosity I'm porting a small Forth application to Gforth on Andro= id > and I'm wondering how the C FFI is handled and if it's at all expected to > work on Android. I've tried running the following but I get "libtool > compile failed". It works just fine on my desktop installation. >=20 > c-library mylib-lib > \c int test() { return 1; } > c-function test test -- n > end-c-library >=20 > test . >=20 > Is libtool expected to work or do I need to set it up somehow? Yes, it is expected to work, and on Android, it doesn't =E2=80=94 only cros= s=20 compilation works. =2D-=20 Bernd Paysan "If you want it done right, you have to do it yourself" net2o id: kQusJzA;7*?t=3Duy@X}1GWr!+0qqp_Cn176t4(dQ* https://net2o.de/ --nextPart1853147.25eIC5XRat Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEERJ1NDqPQRwYnwBjr9y2Uk5MtoGcFAmXJSMEACgkQ9y2Uk5Mt oGeTtBAAjTy3S/NEitLhn/eKplyVfLjwHia/tcHWwG5mDpkJSHZYe9BlSw4FJxNm EesIBLAllBflUvZSgtcAZPqFR7enTeClMJkEkn3nBRtUsYiMTL3qP7I/iQJPj0vQ sjivm6mKZ2te3RRVg3Xp+4GQ69xNifgELbLowhs0tzrfw3jHUSAetINNwb3VP1R2 i548BsC4pxJtGCEtc/UGeJXFGqBNWPeni2IpUHYBRSMnWA9HvfJ4JlqXEjTs559o TcAU/8/fi2LuePoTzfybtjMvvNje+jnjNr4fh87L+FPe0Ae6208ngBQVkvwAfSMH ESQblLJeNLQnvcjf9Nxk+n+AjgmL0ga9UxESeI8mFsk+/zjZOgoB3+M3XRErs4YB 2rQ+HSDAEkUnKWL55StLMB4EKC9XdWMx+8s15VWL3K7my7EDwZYjpRK9Vy4pNneV OmCwIg+IJ4PW4y7xXUzOrhGG9hnRw7wgy5MAnwkaSM6wa3iwcl6jzQYzBMesUwvO bP309Yc4SKyZz82a/hmrZN1wixb4rtTINgHzsg4BvEpMUWGaMSZSqLNkElcpilcG 0HFbrMLKI+DcD1YJi5UxQWSjVGgGISvHmhqreuMJ6syOYw0tgoP8Rj8ikI3YtOg4 9Uoamikew2DkvdGiFAR1qY29C0S16PdNyqonnayB+ATyKjJo5ys= =r0Dx -----END PGP SIGNATURE----- --nextPart1853147.25eIC5XRat--