[Vm-dev] what's happening when the vm is a shared library

Igor Stasenko siguctua at gmail.com
Wed Mar 17 11:27:05 UTC 2010


On 17 March 2010 12:02, Stefan Krecher <stefan.krecher at googlemail.com> wrote:
>
> Hi,
> i'm working on the "squeak on android" Project (but i'm absolutely new
> to squeak-vm-hacking):
> http://code.google.com/p/squeak-android-vm/
> currently i try to get the socket-stuff working - with limited success :-(
> The squeak vm is a shared library compiled with the android-ndk and
> wrapped by an android-java app, making jni-calls.
> Though the SocketPlugin does compile with the ndk, any call to the
> Plugin produces a primitiveFailed-Exception. Even when i replace the
> code of a primitive with dummy-code that returns static values and
> does not execute any plattform-specific code.

Sounds like you simply do not included it into build, or
it using a dummy stubs, disabling all networking code altogether
For example, a win32 platform code having stubs (see refs to
NO_NETWORK in sources).

> Do i need to redirect the primitive-calls somehow through the java-app
> and make calls to the shared-library, or should the primitives just
> work on android?
> would be greateful for any tips/ hints/ discussions ...
> regards,
> Stefan
> --
> Dipl.-Wirtsch.-Inf. Stefan Krecher
> Neulander Str. 17, 27374 Visselhövede
> Tel +49(0)4262 958848
> mobil +49(0)172 3608616
> http://krecher.com
>



-- 
Best regards,
Igor Stasenko AKA sig.


More information about the Vm-dev mailing list