Reply
Thread Tools
coderus's Avatar
Posts: 3,601 | Thanked: 5,276 times | Joined on Nov 2011 @ Russia
#21
compiled, copied but still printing Not supported yet and exited.
what can be wrong?
__________________
Please Donate for my work: PayPal
Your donations makes my applications better

my twitter @icoderus

[F.A.Q.] List of harmattan terminal warnings and errors (contribute!)

If you like what i do please add recomendation for me in LinkedIn to help me get new job
 
coderus's Avatar
Posts: 3,601 | Thanked: 5,276 times | Joined on Nov 2011 @ Russia
#22
Code:
Not supported yet, but found JNI methods:
    Java_com_rovio_ka3d_MyRenderer_nativePause
    Java_com_rovio_ka3d_MyRenderer_nativeResume
    Java_com_rovio_ka3d_MyRenderer_nativeKeyInput
    Java_com_rovio_ka3d_MyRenderer_nativeInput
    Java_com_rovio_ka3d_MyRenderer_nativeResize
    Java_com_rovio_ka3d_MyRenderer_nativeUpdate
    Java_com_rovio_ka3d_MyRenderer_nativeDeinit
    Java_com_rovio_ka3d_MyRenderer_nativeInit
    Java_com_rovio_angrybirds_ExpandableAdWrapper_onExpandableAdWasHidden
    Java_com_rovio_angrybirds_ExpandableAdWrapper_onExpandableAdWillExpand
    Java_com_rovio_angrybirds_ExpandableAdWrapper_onExpandableAdRequestFailed
    Java_com_rovio_angrybirds_ExpandableAdWrapper_onExpandableAdReady
    Java_com_rovio_angrybirds_InterstitialAdWrapper_onInterstitialAdRequestCompleted
    Java_com_rovio_angrybirds_BannerAdWrapper_onBannerAdRequestCompleted
    Java_com_rovio_angrybirds_BannerAdWrapper_onBannerAdWasHidden
    Java_com_rovio_ka3d_AudioOutput_nativeMixData
    Java_com_rovio_ka3d_BokuPaymentProviderHandler_initFinished
    Java_com_rovio_ka3d_FortumoPaymentProviderHandler_initFinished
    Java_com_rovio_ka3d_BokuPaymentWrapper_paymentFinished
    Java_com_rovio_ka3d_FortumoPaymentWrapper_paymentFinished
    Java_com_rovio_ka3d_WebViewWrapper_urlLoadedCallback
    Java_com_rovio_ka3d_WebViewWrapper_callLuaFunction
    Java_com_rovio_ka3d_WebViewWrapper_linkClickedCallback
__________________
Please Donate for my work: PayPal
Your donations makes my applications better

my twitter @icoderus

[F.A.Q.] List of harmattan terminal warnings and errors (contribute!)

If you like what i do please add recomendation for me in LinkedIn to help me get new job
 
Posts: 18 | Thanked: 88 times | Joined on Dec 2012
#23
Originally Posted by coderus View Post
compiled, copied but still printing Not supported yet and exited.
what can be wrong?
Hmm, you seem to have slightly diffrent version that I have. Try removing couple of lines from module source:

Code:
static int
angrybirds_try_init(struct SupportModule *self)
{
    self->priv->JNI_OnLoad = (jni_onload_t)LOOKUP_M("JNI_OnLoad");
    self->priv->native_init = (angrybirds_init_t)LOOKUP_M("ka3d_MyRenderer_nativeInit");
    self->priv->native_resize = (angrybirds_resize_t)LOOKUP_M("ka3d_MyRenderer_nativeResize");
    self->priv->native_input = (angrybirds_input_t)LOOKUP_M("ka3d_MyRenderer_nativeInput");
    self->priv->native_update = (angrybirds_update_t)LOOKUP_M("ka3d_MyRenderer_nativeUpdate");
    self->priv->native_pause = (angrybirds_pause_t)LOOKUP_M("ka3d_MyRenderer_nativePause");
    self->priv->native_resume = (angrybirds_resume_t)LOOKUP_M("ka3d_MyRenderer_nativeResume");
    self->priv->native_gpo = (angrybirds_gpo_t)LOOKUP_M("ka3d_MyRenderer_nativeGetPossibleOrientations");
    self->priv->native_loadfromurl = (angrybirds_loadfromurl_t)LOOKUP_M("ka3d_MyRenderer_nativeLoadFromUrl");
    self->priv->native_mixdata = (angrybirds_mixdata_t)LOOKUP_M("ka3d_AudioOutput_nativeMixData");
    self->priv->native_deinit = (angrybirds_deinit_t)LOOKUP_M("ka3d_MyRenderer_nativeDeinit");

    /* Overrides for JNIEnv_ */
    self->override_env.CallObjectMethodV = JNIEnv_CallObjectMethodV;
    self->override_env.DeleteLocalRef = JNIEnv_DeleteLocalRef;
    self->override_env.CallVoidMethodV = JNIEnv_CallVoidMethodV;
    self->override_env.NewObjectV = JNIEnv_NewObjectV;

    return (self->priv->JNI_OnLoad != NULL &&
            self->priv->native_init != NULL &&
            self->priv->native_resize != NULL &&
            self->priv->native_input != NULL &&
            self->priv->native_update != NULL &&
            self->priv->native_pause != NULL &&
            self->priv->native_resume != NULL &&
            self->priv->native_gpo != NULL &&
            self->priv->native_loadfromurl != NULL &&
            self->priv->native_mixdata != NULL &&
            self->priv->native_deinit != NULL);
}

static void
angrybirds_init(struct SupportModule *self, int width, int height, const char *home)
{
    MODULE_DEBUG_PRINTF("Module: Init(%i,%i,%s)\n",width,height,home);

    self->priv->myHome = strdup(home);
    global = GLOBAL_M;
    self->priv->JNI_OnLoad(VM_M, NULL);
    self->priv->native_init(ENV_M, GLOBAL_M, width, height, GLOBAL_M->env->NewStringUTF(ENV_M, home));
}
 
coderus's Avatar
Posts: 3,601 | Thanked: 5,276 times | Joined on Nov 2011 @ Russia
#24
okay. almost same:
Code:
[shlib] Found symbol: Java_com_rovio_ka3d_MyRenderer_nativeInit
[shlib] Found symbol: Java_com_rovio_ka3d_MyRenderer_nativeResize
[shlib] Found symbol: Java_com_rovio_ka3d_MyRenderer_nativeInput
[shlib] Found symbol: Java_com_rovio_ka3d_MyRenderer_nativeUpdate
[shlib] Found symbol: Java_com_rovio_ka3d_MyRenderer_nativePause
[shlib] Found symbol: Java_com_rovio_ka3d_MyRenderer_nativeResume
[shlib] Found symbol: Java_com_rovio_ka3d_AudioOutput_nativeMixData
[shlib] Found symbol: Java_com_rovio_ka3d_MyRenderer_nativeDeinit
[shlib] Found symbol: Java_com_rovio_ka3d_MyRenderer_nativeInit
[shlib] Found symbol: Java_com_rovio_ka3d_MyRenderer_nativeResize
Not supported yet, but found JNI methods:
    Java_com_rovio_ka3d_MyRenderer_nativePause
    Java_com_rovio_ka3d_MyRenderer_nativeResume
    Java_com_rovio_ka3d_MyRenderer_nativeKeyInput
    Java_com_rovio_ka3d_MyRenderer_nativeInput
    Java_com_rovio_ka3d_MyRenderer_nativeResize
    Java_com_rovio_ka3d_MyRenderer_nativeUpdate
    Java_com_rovio_ka3d_MyRenderer_nativeDeinit
    Java_com_rovio_ka3d_MyRenderer_nativeInit
    Java_com_rovio_angrybirds_ExpandableAdWrapper_onExpandableAdWasHidden
    Java_com_rovio_angrybirds_ExpandableAdWrapper_onExpandableAdWillExpand
    Java_com_rovio_angrybirds_ExpandableAdWrapper_onExpandableAdRequestFailed
    Java_com_rovio_angrybirds_ExpandableAdWrapper_onExpandableAdReady
    Java_com_rovio_angrybirds_InterstitialAdWrapper_onInterstitialAdRequestCompleted
    Java_com_rovio_angrybirds_BannerAdWrapper_onBannerAdRequestCompleted
    Java_com_rovio_angrybirds_BannerAdWrapper_onBannerAdWasHidden
    Java_com_rovio_ka3d_AudioOutput_nativeMixData
    Java_com_rovio_ka3d_BokuPaymentProviderHandler_initFinished
    Java_com_rovio_ka3d_FortumoPaymentProviderHandler_initFinished
    Java_com_rovio_ka3d_BokuPaymentWrapper_paymentFinished
    Java_com_rovio_ka3d_FortumoPaymentWrapper_paymentFinished
    Java_com_rovio_ka3d_WebViewWrapper_urlLoadedCallback
    Java_com_rovio_ka3d_WebViewWrapper_callLuaFunction
    Java_com_rovio_ka3d_WebViewWrapper_linkClickedCallback
__________________
Please Donate for my work: PayPal
Your donations makes my applications better

my twitter @icoderus

[F.A.Q.] List of harmattan terminal warnings and errors (contribute!)

If you like what i do please add recomendation for me in LinkedIn to help me get new job
 
Posts: 18 | Thanked: 88 times | Joined on Dec 2012
#25
Originally Posted by coderus View Post
okay. almost same:
I just noticed that your version doesn't have that nativeGetPossibleOrientations method either. Olso remove lines:
Code:
self->priv->native_gpo = (angrybirds_gpo_t)LOOKUP_M("ka3d_MyRenderer_nativeGetPossibleOrientations");

self->priv->native_gpo != NULL &&
Edit and also:
Code:
self->priv->native_loadfromurl = (angrybirds_loadfromurl_t)LOOKUP_M("ka3d_MyRenderer_nativeLoadFromUrl");

self->priv->native_loadfromurl != NULL &&

Last edited by Art-O; 2012-12-22 at 18:01.
 
coderus's Avatar
Posts: 3,601 | Thanked: 5,276 times | Joined on Nov 2011 @ Russia
#26
Working now, thanks
__________________
Please Donate for my work: PayPal
Your donations makes my applications better

my twitter @icoderus

[F.A.Q.] List of harmattan terminal warnings and errors (contribute!)

If you like what i do please add recomendation for me in LinkedIn to help me get new job

Last edited by coderus; 2012-12-22 at 18:14.
 
coderus's Avatar
Posts: 3,601 | Thanked: 5,276 times | Joined on Nov 2011 @ Russia
#27
can i place this module as second? will them work both for diffferent versions?
__________________
Please Donate for my work: PayPal
Your donations makes my applications better

my twitter @icoderus

[F.A.Q.] List of harmattan terminal warnings and errors (contribute!)

If you like what i do please add recomendation for me in LinkedIn to help me get new job
 
Posts: 18 | Thanked: 88 times | Joined on Dec 2012
#28
I am not sure.. But those removed lines are not needed for my version either. They are basically just left over methods when I started working on this module and they were never needed. I will post updated version to git and front page where these methods are removed.
 
B-RUNO's Avatar
Posts: 124 | Thanked: 124 times | Joined on Sep 2010
#29
Originally Posted by Art-O View Post
I am not sure.. But those removed lines are not needed for my version either. They are basically just left over methods when I started working on this module and they were never needed. I will post updated version to git and front page where these methods are removed.
Hey Art-O i noticed that you updated the fruitninja module, I've tried the new one but there is no sound, sorry if I'm the only one with the problem anyone?

By the way thanks for sharing once again.
Bruno
__________________
Proud owner of a Nokia N900
If you like my post hit the Thanks button!
 
Posts: 18 | Thanked: 88 times | Joined on Dec 2012
#30
I really don't know why sound won't work for you. Perhaps something needs to be coded differently in N900. I don't have one so I can't test that.
Intresting question would be that does sound work for anyone else but me?
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 21:00.