mousebird / WhirlyGlobe-3

WhirlyGlobe-Maply 3.0 Implementation
Other
11 stars 6 forks source link

[Android] Point2d #15

Closed JtxGit closed 4 years ago

JtxGit commented 4 years ago

Not sure how to troubleshoot this...

This code: var ptRad: Point2d ptRad = Point2d.FromDegrees(16.59,59.53)

causes this error: java.lang.UnsatisfiedLinkError: No implementation found for void com.mousebird.maply.Point2d.nativeInit() (tried Java_com_mousebird_maply_Point2d_nativeInit and Java_com_mousebird_maply_Point2d_nativeInit__) at com.mousebird.maply.Point2d.nativeInit(Native Method) at com.mousebird.maply.Point2d.<clinit>(Point2d.java:133) at com.mousebird.maply.Point2d.FromDegrees(Point2d.java:88)

Any help would be appreciated.

mousebird commented 4 years ago

I get things like that if the library has not yet been loaded. Are you doing this before you starting a Globe or Map controller?

JtxGit commented 4 years ago

This is during startup of the activity that hosts the fragment. Can Point2d only be used after the globe controller is started?

mousebird commented 4 years ago

Not exactly. The C++ library has to be loaded in, but you can force that like so: System.loadLibrary("whirlyglobemaply");

JtxGit commented 4 years ago

OK, thanks! Will test it now.

JtxGit commented 4 years ago

Great! That worked