pjsua_app_config

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



resolved using 'pjsua_config' instead of 'pjsua_app_config'
my mistake :D


Thanks,
SB


On Thu, Jun 13, 2013 at 3:02 PM, Sungbum Lim <shawnux at gmail.com> wrote:

> Hi,
>
> For my android app, I got errors as below using ndk-build..
>
> Anyone knows how can I remove these errors please?
> I included proper header file and set include path correctly.
>
> why 'pjsua_app_config' cannot be recognized jni correctly?
> what did I missed?
>
>
> $ ndk-build
> Compile thumb  : hkc <= hkc-jni.c
> d:/Projects/Android_HKC/Android-iHome/jni/hkc-jni.c: In function
> 'Java_com_hkc_sip_HKCSIPManager_hkcsip
> Initialize':
> d:/Projects/Android_HKC/Android-iHome/jni/hkc-jni.c:123:2: warning:
> passing argument 1 of 'pjsua_config_defa
> ult' from incompatible pointer type [enabled by default]
> d:/Projects/Android_HKC/Android-iHome/jni/pjsip/pjsip/include/pjsua-lib/pjsua.h:1636:15:
> note: expected 'struct
> pjsua_config *' but argument is of type 'struct pjsua_app_config *'
> d:/Projects/Android_HKC/Android-iHome/jni/hkc-jni.c:125:12: error:
> 'pjsua_app_config' has no member named 'c
> b'
> d:/Projects/Android_HKC/Android-iHome/jni/hkc-jni.c:126:12: error:
> 'pjsua_app_config' has no member named 'c
> b'
> d:/Projects/Android_HKC/Android-iHome/jni/hkc-jni.c:127:12: error:
> 'pjsua_app_config' has no member named 'c
> b'
> d:/Projects/Android_HKC/Android-iHome/jni/hkc-jni.c:132:2: warning:
> passing argument 1 of 'pjsua_init' from
> incompatible pointer type [enabled by default]
> d:/Projects/Android_HKC/Android-iHome/jni/pjsip/pjsip/include/pjsua-lib/pjsua.h:1751:22:
> note: expected 'struct
> pjsua_config const *' but argument is of type 'struct pjsua_app_config *'
> make.exe: ***
> [/d/Projects/Android_HKC/Android-iHome/obj/local/armeabi/objs/hkc/hkc-jni.o]
> Error 1
>
> SB at sb-nb /d/Projects/Android_HKC/Android-iHome/jni
> $
>
>
>
> ============================================================
> #include <pjsua-lib/pjsua.h>
> #include "./pjsip/pjsip-apps/src/pjsua/pjsua_app.h"
>
>
> int Java_com_hkc_sip_HKCSIPManager_hkcsipInitialize(JNIEnv* env, jobject
> thiz) {
>
> int status;
> *pjsua_app_config app_config*;
>  pjsua_logging_config log_cfg;
>
> pjsua_config_default(&*app_config*);
>
>  *app_config.cb.on_incoming_call* = &on_incoming_call;
> *app_config.cb.on_call_media_state* = &on_call_media_state;
>  *app_config.cb.on_call_state* = &on_call_state;
>
> ..
> ..
> ..
> }
>
>
>
>
> Thanks,
> SB
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20130613/8b157abb/attachment-0001.html>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux