apjsua for android error

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

 



I couldn't find pjsua for android in the trunk so decided to get pjsip
project from the branch

Then i followed (building pjsua tutorial) for apjsua (which worked for
pjsua previously) but when I import the project into eclipse I get multiple
errors in pjsua_app_wrap.c

Unresolved inclusion <jni.h>
Unresolved inclusion <stdlib.h>
Unresolved inclusion <string.h>

Type 'JNIEnv' could not be resolved
Type 'jclass' could not be resolved
....

Help is much appreciated...
---------- Forwarded message ----------
From: "Hadi Yazdi" <hadiawahab@xxxxxxxxx>
Date: Jan 27, 2014 2:15 AM
Subject: apjsua for android error
To: <pjsip at lists.pjsip.org>
Cc:

I followed these steps in order to compile and get apjsua sample app ready
to be imported as an eclipse project

Downloaded the source from branches/projects/android instead of 'trunk'
because apjsua is not available in 'trunk'

Added these lines to config_site.h

#define PJ_CONFIG_ANDROID 1 #include <pj/config_site_sample.h>

Builded pjsip successfully with

$ ./configure-android
$ make dep && make

In pjsip-apps/build

$ make pjsua

In pjsip-apps/src/apjsua

$ ndk-build

Everything went smoothly, but when I imported the app into eclipse, jni dir
had 'pjsua_app_wrap.c' file which was full of errors like

Unresolved inclusion <jni.h>
Unresolved inclusion <stdlib.h>
Unresolved inclusion <string.h>

Type 'JNIEnv' could not be resolved
Type 'jclass' could not be resolved
....
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20140130/577c560c/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