pjsip Android make ERROR - 'features.h' file not found

MT
Marko Tirs
Mon, Jun 4, 2018 4:15 PM

Hi All,

I tried to compile pjsip for Android and get errors again and again. I have seen in google that many people have the same problem but no one of the solutions functions for me.
pjsip 2.7.1
android-ndk-r17
Ubuntu 17.10, 18.04

The simple ./configure && make dep && make functions OK.
TARGET_ABI=armeabi-v7a ./configure-android --use-ndk-cflags
make dep && make
In file included from ../src/pjmedia-codec/openh264.cpp:19:
In file included from ../include/pjmedia-codec/openh264.h:22:
In file included from ../include/pjmedia-codec/types.h:28:
In file included from ../include/pjmedia-codec/config.h:35:
In file included from ../include/pjmedia/types.h:28:
In file included from ../include/pjmedia/config.h:27:
In file included from ../../pjlib/include/pj/config.h:313:
In file included from ../../pjlib/include/pj/compat/size_t.h:28:
In file included from /usr/src/android-ndk-r17/sources/cxx-stl/llvm-libc++/include/stddef.h:40:
/usr/src/android-ndk-r17/sources/cxx-stl/llvm-libc++/include/__config:169:10: fatal error: 'features.h' file not found
#include <features.h>

Then I tried to create empty file:
touch /usr/src/android-ndk-r17/sources/cxx-stl/llvm-libc++/include/features.h

And after it I get another error message:
In file included from ../src/pjmedia-codec/openh264.cpp:19:
In file included from ../include/pjmedia-codec/openh264.h:22:
In file included from ../include/pjmedia-codec/types.h:29:
In file included from ../include/pjmedia/codec.h:29:
In file included from ../include/pjmedia/port.h:30:
In file included from ../include/pjmedia/frame.h:28:
In file included from ../../pjlib/include/pj/string.h:29:
In file included from ../../pjlib/include/pj/compat/string.h:30:
/usr/src/android-ndk-r17/sources/cxx-stl/llvm-libc++/include/string.h:61:15: fatal error: 'string.h' file not found
#include_next <string.h>

echo $ANDROID_NDK_ROOT

/usr/src/android-ndk-r17

echo $KERNEL_DIR

/usr/src/linux-headers-4.15.0-22

echo $PJPROJECT_DIR

/usr/src/pjproject-2.7.1

cat /usr/src/pjproject-2.7.1/pjlib/include/pj/config_site.h

/* Activate Android specific settings in the 'config_site_sample.h' */
#define PJ_CONFIG_ANDROID 1
#include <pj/config_site_sample.h>

I tried also to deactivate many components but no success:
TARGET_ABI=armeabi-v7a ./configure-android --use-ndk-cflags --disable-floating-point --disable-sound --disable-small-filter --disable-large-filter --disable-g711-plc --disable-speex-aec --disable-g711-codec --disable-l16-codec --disable-gsm-codec --disable-speex-codec --disable-ilbc-codec --disable-ssl --disable-sdl --disable-ffmpeg --disable-v4l2 --disable-openh264 --disable-libyuv

Can anyone please help me to compile and use pjsip on my smartphone?
Thank you very much!
Marko

Hi All, I tried to compile pjsip for Android and get errors again and again. I have seen in google that many people have the same problem but no one of the solutions functions for me. pjsip 2.7.1 android-ndk-r17 Ubuntu 17.10, 18.04 The simple ./configure && make dep && make functions OK. TARGET_ABI=armeabi-v7a ./configure-android --use-ndk-cflags make dep && make In file included from ../src/pjmedia-codec/openh264.cpp:19: In file included from ../include/pjmedia-codec/openh264.h:22: In file included from ../include/pjmedia-codec/types.h:28: In file included from ../include/pjmedia-codec/config.h:35: In file included from ../include/pjmedia/types.h:28: In file included from ../include/pjmedia/config.h:27: In file included from ../../pjlib/include/pj/config.h:313: In file included from ../../pjlib/include/pj/compat/size_t.h:28: In file included from /usr/src/android-ndk-r17/sources/cxx-stl/llvm-libc++/include/stddef.h:40: /usr/src/android-ndk-r17/sources/cxx-stl/llvm-libc++/include/__config:169:10: fatal error: 'features.h' file not found #include <features.h> Then I tried to create empty file: touch /usr/src/android-ndk-r17/sources/cxx-stl/llvm-libc++/include/features.h And after it I get another error message: In file included from ../src/pjmedia-codec/openh264.cpp:19: In file included from ../include/pjmedia-codec/openh264.h:22: In file included from ../include/pjmedia-codec/types.h:29: In file included from ../include/pjmedia/codec.h:29: In file included from ../include/pjmedia/port.h:30: In file included from ../include/pjmedia/frame.h:28: In file included from ../../pjlib/include/pj/string.h:29: In file included from ../../pjlib/include/pj/compat/string.h:30: /usr/src/android-ndk-r17/sources/cxx-stl/llvm-libc++/include/string.h:61:15: fatal error: 'string.h' file not found #include_next <string.h> # echo $ANDROID_NDK_ROOT /usr/src/android-ndk-r17 # echo $KERNEL_DIR /usr/src/linux-headers-4.15.0-22 # echo $PJPROJECT_DIR /usr/src/pjproject-2.7.1 # cat /usr/src/pjproject-2.7.1/pjlib/include/pj/config_site.h /* Activate Android specific settings in the 'config_site_sample.h' */ #define PJ_CONFIG_ANDROID 1 #include <pj/config_site_sample.h> I tried also to deactivate many components but no success: TARGET_ABI=armeabi-v7a ./configure-android --use-ndk-cflags --disable-floating-point --disable-sound --disable-small-filter --disable-large-filter --disable-g711-plc --disable-speex-aec --disable-g711-codec --disable-l16-codec --disable-gsm-codec --disable-speex-codec --disable-ilbc-codec --disable-ssl --disable-sdl --disable-ffmpeg --disable-v4l2 --disable-openh264 --disable-libyuv Can anyone please help me to compile and use pjsip on my smartphone? Thank you very much! Marko
JS
Jan Skórczyński
Mon, Jun 4, 2018 4:37 PM

Hi,

I found that ndk version matters. Personally I use ndk-r15c. What's more I
also set NDK_TOOLCHAIN to 4.9

pon., 4 cze 2018, 18:16 użytkownik Marko Tirs via pjsip <
pjsip@lists.pjsip.org> napisał:

Hi All,

I tried to compile pjsip for Android and get errors again and again. I
have seen in google that many people have the same problem but no one of
the solutions functions for me.
pjsip 2.7.1
android-ndk-r17
Ubuntu 17.10, 18.04

The simple ./configure && make dep && make functions OK.
TARGET_ABI=armeabi-v7a ./configure-android --use-ndk-cflags
make dep && make

In file included from ../src/pjmedia-codec/openh264.cpp:19:
In file included from ../include/pjmedia-codec/openh264.h:22:
In file included from ../include/pjmedia-codec/types.h:28:
In file included from ../include/pjmedia-codec/config.h:35:
In file included from ../include/pjmedia/types.h:28:
In file included from ../include/pjmedia/config.h:27:
In file included from ../../pjlib/include/pj/config.h:313:
In file included from ../../pjlib/include/pj/compat/size_t.h:28:
In file included from
/usr/src/android-ndk-r17/sources/cxx-stl/llvm-libc++/include/stddef.h:40:
/usr/src/android-ndk-r17/sources/cxx-stl/llvm-libc++/include/__config:169:10:
fatal error: 'features.h' file not found
#include <features.h>
Then I tried to create empty file:
touch
/usr/src/android-ndk-r17/sources/cxx-stl/llvm-libc++/include/features.h

And after it I get another error message:
In file included from ../src/pjmedia-codec/openh264.cpp:19:
In file included from ../include/pjmedia-codec/openh264.h:22:
In file included from ../include/pjmedia-codec/types.h:29:
In file included from ../include/pjmedia/codec.h:29:
In file included from ../include/pjmedia/port.h:30:
In file included from ../include/pjmedia/frame.h:28:
In file included from ../../pjlib/include/pj/string.h:29:
In file included from ../../pjlib/include/pj/compat/string.h:30:
/usr/src/android-ndk-r17/sources/cxx-stl/llvm-libc++/include/string.h:61:15:
fatal error: 'string.h' file not found
#include_next <string.h>

echo $ANDROID_NDK_ROOT

/usr/src/android-ndk-r17

echo $KERNEL_DIR

/usr/src/linux-headers-4.15.0-22

echo $PJPROJECT_DIR

/usr/src/pjproject-2.7.1

cat /usr/src/pjproject-2.7.1/pjlib/include/pj/config_site.h

/* Activate Android specific settings in the 'config_site_sample.h' */
#define PJ_CONFIG_ANDROID 1
#include <pj/config_site_sample.h>

I tried also to deactivate many components but no success:
TARGET_ABI=armeabi-v7a ./configure-android --use-ndk-cflags
--disable-floating-point --disable-sound --disable-small-filter
--disable-large-filter --disable-g711-plc --disable-speex-aec
--disable-g711-codec --disable-l16-codec --disable-gsm-codec
--disable-speex-codec --disable-ilbc-codec --disable-ssl --disable-sdl
--disable-ffmpeg --disable-v4l2 --disable-openh264 --disable-libyuv

Can anyone please help me to compile and use pjsip on my smartphone?
Thank you very much!
Marko


Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

Hi, I found that ndk version matters. Personally I use ndk-r15c. What's more I also set NDK_TOOLCHAIN to 4.9 pon., 4 cze 2018, 18:16 użytkownik Marko Tirs via pjsip < pjsip@lists.pjsip.org> napisał: > Hi All, > > I tried to compile pjsip for Android and get errors again and again. I > have seen in google that many people have the same problem but no one of > the solutions functions for me. > pjsip 2.7.1 > android-ndk-r17 > Ubuntu 17.10, 18.04 > > The simple ./configure && make dep && make functions OK. > TARGET_ABI=armeabi-v7a ./configure-android --use-ndk-cflags > make dep && make > > In file included from ../src/pjmedia-codec/openh264.cpp:19: > In file included from ../include/pjmedia-codec/openh264.h:22: > In file included from ../include/pjmedia-codec/types.h:28: > In file included from ../include/pjmedia-codec/config.h:35: > In file included from ../include/pjmedia/types.h:28: > In file included from ../include/pjmedia/config.h:27: > In file included from ../../pjlib/include/pj/config.h:313: > In file included from ../../pjlib/include/pj/compat/size_t.h:28: > In file included from > /usr/src/android-ndk-r17/sources/cxx-stl/llvm-libc++/include/stddef.h:40: > /usr/src/android-ndk-r17/sources/cxx-stl/llvm-libc++/include/__config:169:10: > fatal error: 'features.h' file not found > #include <features.h> > Then I tried to create empty file: > touch > /usr/src/android-ndk-r17/sources/cxx-stl/llvm-libc++/include/features.h > > And after it I get another error message: > In file included from ../src/pjmedia-codec/openh264.cpp:19: > In file included from ../include/pjmedia-codec/openh264.h:22: > In file included from ../include/pjmedia-codec/types.h:29: > In file included from ../include/pjmedia/codec.h:29: > In file included from ../include/pjmedia/port.h:30: > In file included from ../include/pjmedia/frame.h:28: > In file included from ../../pjlib/include/pj/string.h:29: > In file included from ../../pjlib/include/pj/compat/string.h:30: > /usr/src/android-ndk-r17/sources/cxx-stl/llvm-libc++/include/string.h:61:15: > fatal error: 'string.h' file not found > #include_next <string.h> > > # echo $ANDROID_NDK_ROOT > /usr/src/android-ndk-r17 > # echo $KERNEL_DIR > /usr/src/linux-headers-4.15.0-22 > # echo $PJPROJECT_DIR > /usr/src/pjproject-2.7.1 > > # cat /usr/src/pjproject-2.7.1/pjlib/include/pj/config_site.h > /* Activate Android specific settings in the 'config_site_sample.h' */ > #define PJ_CONFIG_ANDROID 1 > #include <pj/config_site_sample.h> > > I tried also to deactivate many components but no success: > TARGET_ABI=armeabi-v7a ./configure-android --use-ndk-cflags > --disable-floating-point --disable-sound --disable-small-filter > --disable-large-filter --disable-g711-plc --disable-speex-aec > --disable-g711-codec --disable-l16-codec --disable-gsm-codec > --disable-speex-codec --disable-ilbc-codec --disable-ssl --disable-sdl > --disable-ffmpeg --disable-v4l2 --disable-openh264 --disable-libyuv > > Can anyone please help me to compile and use pjsip on my smartphone? > Thank you very much! > Marko > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >
TB
Thomas Brown
Mon, Jun 4, 2018 5:11 PM

Hi Marko,

Have you tried the CSipSimple app?

https://en.wikipedia.org/wiki/CSipSimple

Cheers

From: pjsip [mailto:pjsip-bounces@lists.pjsip.org] On Behalf Of Marko Tirs via pjsip
Sent: June 4, 2018 12:15 PM
To: pjsip@lists.pjsip.org
Cc: Marko Tirs
Subject: [pjsip] pjsip Android make ERROR - 'features.h' file not found

Hi All,

I tried to compile pjsip for Android and get errors again and again. I have seen in google that many people have the same problem but no one of the solutions functions for me.

pjsip 2.7.1
android-ndk-r17
Ubuntu 17.10, 18.04

The simple ./configure && make dep && make functions OK.

TARGET_ABI=armeabi-v7a ./configure-android --use-ndk-cflags
make dep && make

In file included from ../src/pjmedia-codec/openh264.cpp:19:
In file included from ../include/pjmedia-codec/openh264.h:22:
In file included from ../include/pjmedia-codec/types.h:28:
In file included from ../include/pjmedia-codec/config.h:35:
In file included from ../include/pjmedia/types.h:28:
In file included from ../include/pjmedia/config.h:27:
In file included from ../../pjlib/include/pj/config.h:313:
In file included from ../../pjlib/include/pj/compat/size_t.h:28:
In file included from /usr/src/android-ndk-r17/sources/cxx-stl/llvm-libc++/include/stddef.h:40:
/usr/src/android-ndk-r17/sources/cxx-stl/llvm-libc++/include/__config:169:10: fatal error: 'features.h' file not found
#include <features.h>

Then I tried to create empty file:
touch /usr/src/android-ndk-r17/sources/cxx-stl/llvm-libc++/include/features.h

And after it I get another error message:
In file included from ../src/pjmedia-codec/openh264.cpp:19:
In file included from ../include/pjmedia-codec/openh264.h:22:
In file included from ../include/pjmedia-codec/types.h:29:
In file included from ../include/pjmedia/codec.h:29:
In file included from ../include/pjmedia/port.h:30:
In file included from ../include/pjmedia/frame.h:28:
In file included from ../../pjlib/include/pj/string.h:29:
In file included from ../../pjlib/include/pj/compat/string.h:30:
/usr/src/android-ndk-r17/sources/cxx-stl/llvm-libc++/include/string.h:61:15: fatal error: 'string.h' file not found
#include_next <string.h>

echo $ANDROID_NDK_ROOT

/usr/src/android-ndk-r17

echo $KERNEL_DIR

/usr/src/linux-headers-4.15.0-22

echo $PJPROJECT_DIR

/usr/src/pjproject-2.7.1

cat /usr/src/pjproject-2.7.1/pjlib/include/pj/config_site.h

/* Activate Android specific settings in the 'config_site_sample.h' */
#define PJ_CONFIG_ANDROID 1
#include <pj/config_site_sample.h>

I tried also to deactivate many components but no success:
TARGET_ABI=armeabi-v7a ./configure-android --use-ndk-cflags --disable-floating-point --disable-sound --disable-small-filter --disable-large-filter --disable-g711-plc --disable-speex-aec --disable-g711-codec --disable-l16-codec --disable-gsm-codec --disable-speex-codec --disable-ilbc-codec --disable-ssl --disable-sdl --disable-ffmpeg --disable-v4l2 --disable-openh264 --disable-libyuv

Can anyone please help me to compile and use pjsip on my smartphone?

Thank you very much!
Marko

Hi Marko, Have you tried the CSipSimple app? https://en.wikipedia.org/wiki/CSipSimple Cheers From: pjsip [mailto:pjsip-bounces@lists.pjsip.org] On Behalf Of Marko Tirs via pjsip Sent: June 4, 2018 12:15 PM To: pjsip@lists.pjsip.org Cc: Marko Tirs Subject: [pjsip] pjsip Android make ERROR - 'features.h' file not found Hi All, I tried to compile pjsip for Android and get errors again and again. I have seen in google that many people have the same problem but no one of the solutions functions for me. pjsip 2.7.1 android-ndk-r17 Ubuntu 17.10, 18.04 The simple ./configure && make dep && make functions OK. TARGET_ABI=armeabi-v7a ./configure-android --use-ndk-cflags make dep && make In file included from ../src/pjmedia-codec/openh264.cpp:19: In file included from ../include/pjmedia-codec/openh264.h:22: In file included from ../include/pjmedia-codec/types.h:28: In file included from ../include/pjmedia-codec/config.h:35: In file included from ../include/pjmedia/types.h:28: In file included from ../include/pjmedia/config.h:27: In file included from ../../pjlib/include/pj/config.h:313: In file included from ../../pjlib/include/pj/compat/size_t.h:28: In file included from /usr/src/android-ndk-r17/sources/cxx-stl/llvm-libc++/include/stddef.h:40: /usr/src/android-ndk-r17/sources/cxx-stl/llvm-libc++/include/__config:169:10: fatal error: 'features.h' file not found #include <features.h> Then I tried to create empty file: touch /usr/src/android-ndk-r17/sources/cxx-stl/llvm-libc++/include/features.h And after it I get another error message: In file included from ../src/pjmedia-codec/openh264.cpp:19: In file included from ../include/pjmedia-codec/openh264.h:22: In file included from ../include/pjmedia-codec/types.h:29: In file included from ../include/pjmedia/codec.h:29: In file included from ../include/pjmedia/port.h:30: In file included from ../include/pjmedia/frame.h:28: In file included from ../../pjlib/include/pj/string.h:29: In file included from ../../pjlib/include/pj/compat/string.h:30: /usr/src/android-ndk-r17/sources/cxx-stl/llvm-libc++/include/string.h:61:15: fatal error: 'string.h' file not found #include_next <string.h> # echo $ANDROID_NDK_ROOT /usr/src/android-ndk-r17 # echo $KERNEL_DIR /usr/src/linux-headers-4.15.0-22 # echo $PJPROJECT_DIR /usr/src/pjproject-2.7.1 # cat /usr/src/pjproject-2.7.1/pjlib/include/pj/config_site.h /* Activate Android specific settings in the 'config_site_sample.h' */ #define PJ_CONFIG_ANDROID 1 #include <pj/config_site_sample.h> I tried also to deactivate many components but no success: TARGET_ABI=armeabi-v7a ./configure-android --use-ndk-cflags --disable-floating-point --disable-sound --disable-small-filter --disable-large-filter --disable-g711-plc --disable-speex-aec --disable-g711-codec --disable-l16-codec --disable-gsm-codec --disable-speex-codec --disable-ilbc-codec --disable-ssl --disable-sdl --disable-ffmpeg --disable-v4l2 --disable-openh264 --disable-libyuv Can anyone please help me to compile and use pjsip on my smartphone? Thank you very much! Marko
MT
Marko Tirs
Mon, Jun 4, 2018 8:54 PM

Hi Jan,thank you for your advice, it helped!With NDK 15c I can compile it. Now I can continue my try to build a Android SIP App.RegardsMarko

On Monday, June 4, 2018, 6:38:08 PM GMT+2, Jan Skórczyński <jskorczynski@milosolutions.com> wrote:  

Hi, 
I found that ndk version matters. Personally I use ndk-r15c. What's more I also set NDK_TOOLCHAIN to 4.9
pon., 4 cze 2018, 18:16 użytkownik Marko Tirs via pjsip pjsip@lists.pjsip.org napisał:

Hi All,

I tried to compile pjsip for Android and get errors again and again. I have seen in google that many people have the same problem but no one of the solutions functions for me.
pjsip 2.7.1
android-ndk-r17
Ubuntu 17.10, 18.04

The simple ./configure && make dep && make functions OK.
TARGET_ABI=armeabi-v7a ./configure-android --use-ndk-cflags
make dep && make
In file included from ../src/pjmedia-codec/openh264.cpp:19:
In file included from ../include/pjmedia-codec/openh264.h:22:
In file included from ../include/pjmedia-codec/types.h:28:
In file included from ../include/pjmedia-codec/config.h:35:
In file included from ../include/pjmedia/types.h:28:
In file included from ../include/pjmedia/config.h:27:
In file included from ../../pjlib/include/pj/config.h:313:
In file included from ../../pjlib/include/pj/compat/size_t.h:28:
In file included from /usr/src/android-ndk-r17/sources/cxx-stl/llvm-libc++/include/stddef.h:40:
/usr/src/android-ndk-r17/sources/cxx-stl/llvm-libc++/include/__config:169:10: fatal error: 'features.h' file not found
#include <features.h>

Then I tried to create empty file:
touch /usr/src/android-ndk-r17/sources/cxx-stl/llvm-libc++/include/features.h

And after it I get another error message:
In file included from ../src/pjmedia-codec/openh264.cpp:19:
In file included from ../include/pjmedia-codec/openh264.h:22:
In file included from ../include/pjmedia-codec/types.h:29:
In file included from ../include/pjmedia/codec.h:29:
In file included from ../include/pjmedia/port.h:30:
In file included from ../include/pjmedia/frame.h:28:
In file included from ../../pjlib/include/pj/string.h:29:
In file included from ../../pjlib/include/pj/compat/string.h:30:
/usr/src/android-ndk-r17/sources/cxx-stl/llvm-libc++/include/string.h:61:15: fatal error: 'string.h' file not found
#include_next <string.h>

echo $ANDROID_NDK_ROOT

/usr/src/android-ndk-r17

echo $KERNEL_DIR

/usr/src/linux-headers-4.15.0-22

echo $PJPROJECT_DIR

/usr/src/pjproject-2.7.1

cat /usr/src/pjproject-2.7.1/pjlib/include/pj/config_site.h

/* Activate Android specific settings in the 'config_site_sample.h' */
#define PJ_CONFIG_ANDROID 1
#include <pj/config_site_sample.h>

I tried also to deactivate many components but no success:
TARGET_ABI=armeabi-v7a ./configure-android --use-ndk-cflags --disable-floating-point --disable-sound --disable-small-filter --disable-large-filter --disable-g711-plc --disable-speex-aec --disable-g711-codec --disable-l16-codec --disable-gsm-codec --disable-speex-codec --disable-ilbc-codec --disable-ssl --disable-sdl --disable-ffmpeg --disable-v4l2 --disable-openh264 --disable-libyuv

Can anyone please help me to compile and use pjsip on my smartphone?
Thank you very much!
Marko_______________________________________________
Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

Hi Jan,thank you for your advice, it helped!With NDK 15c I can compile it. Now I can continue my try to build a Android SIP App.RegardsMarko On Monday, June 4, 2018, 6:38:08 PM GMT+2, Jan Skórczyński <jskorczynski@milosolutions.com> wrote: Hi,  I found that ndk version matters. Personally I use ndk-r15c. What's more I also set NDK_TOOLCHAIN to 4.9 pon., 4 cze 2018, 18:16 użytkownik Marko Tirs via pjsip <pjsip@lists.pjsip.org> napisał: Hi All, I tried to compile pjsip for Android and get errors again and again. I have seen in google that many people have the same problem but no one of the solutions functions for me. pjsip 2.7.1 android-ndk-r17 Ubuntu 17.10, 18.04 The simple ./configure && make dep && make functions OK. TARGET_ABI=armeabi-v7a ./configure-android --use-ndk-cflags make dep && make In file included from ../src/pjmedia-codec/openh264.cpp:19: In file included from ../include/pjmedia-codec/openh264.h:22: In file included from ../include/pjmedia-codec/types.h:28: In file included from ../include/pjmedia-codec/config.h:35: In file included from ../include/pjmedia/types.h:28: In file included from ../include/pjmedia/config.h:27: In file included from ../../pjlib/include/pj/config.h:313: In file included from ../../pjlib/include/pj/compat/size_t.h:28: In file included from /usr/src/android-ndk-r17/sources/cxx-stl/llvm-libc++/include/stddef.h:40: /usr/src/android-ndk-r17/sources/cxx-stl/llvm-libc++/include/__config:169:10: fatal error: 'features.h' file not found #include <features.h> Then I tried to create empty file: touch /usr/src/android-ndk-r17/sources/cxx-stl/llvm-libc++/include/features.h And after it I get another error message: In file included from ../src/pjmedia-codec/openh264.cpp:19: In file included from ../include/pjmedia-codec/openh264.h:22: In file included from ../include/pjmedia-codec/types.h:29: In file included from ../include/pjmedia/codec.h:29: In file included from ../include/pjmedia/port.h:30: In file included from ../include/pjmedia/frame.h:28: In file included from ../../pjlib/include/pj/string.h:29: In file included from ../../pjlib/include/pj/compat/string.h:30: /usr/src/android-ndk-r17/sources/cxx-stl/llvm-libc++/include/string.h:61:15: fatal error: 'string.h' file not found #include_next <string.h> # echo $ANDROID_NDK_ROOT /usr/src/android-ndk-r17 # echo $KERNEL_DIR /usr/src/linux-headers-4.15.0-22 # echo $PJPROJECT_DIR /usr/src/pjproject-2.7.1 # cat /usr/src/pjproject-2.7.1/pjlib/include/pj/config_site.h /* Activate Android specific settings in the 'config_site_sample.h' */ #define PJ_CONFIG_ANDROID 1 #include <pj/config_site_sample.h> I tried also to deactivate many components but no success: TARGET_ABI=armeabi-v7a ./configure-android --use-ndk-cflags --disable-floating-point --disable-sound --disable-small-filter --disable-large-filter --disable-g711-plc --disable-speex-aec --disable-g711-codec --disable-l16-codec --disable-gsm-codec --disable-speex-codec --disable-ilbc-codec --disable-ssl --disable-sdl --disable-ffmpeg --disable-v4l2 --disable-openh264 --disable-libyuv Can anyone please help me to compile and use pjsip on my smartphone? Thank you very much! Marko_______________________________________________ Visit our blog: http://blog.pjsip.org pjsip mailing list pjsip@lists.pjsip.org http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
MT
Marko Tirs
Mon, Jun 4, 2018 9:01 PM

Hi Thomas,thank you for your advice. In the meantime I could compile it, after the help from this list.But the CSipSimple app seems to be interesting and I'll try it!RegardsMarko

On Monday, June 4, 2018, 7:13:14 PM GMT+2, Thomas Brown <tbrown@excelocity.com> wrote:  

Hi Marko,

 

Have you tried the CSipSimple app?

 

https://en.wikipedia.org/wiki/CSipSimple

 

Cheers

 

From: pjsip[mailto:pjsip-bounces@lists.pjsip.org] On Behalf Of Marko Tirs via pjsip
Sent: June 4, 2018 12:15 PM
To: pjsip@lists.pjsip.org
Cc: Marko Tirs
Subject: [pjsip] pjsip Android make ERROR - 'features.h' file not found

 

Hi All,

I tried to compile pjsipfor Android and get errors again and again. I have seen in google that manypeople have the same problem but no one of the solutions functions for me.

pjsip2.7.1
android-ndk-r17
Ubuntu 17.10, 18.04

The simple ./configure&& make dep && make functions OK.

TARGET_ABI=armeabi-v7a./configure-android --use-ndk-cflags
make dep && make

In file included from../src/pjmedia-codec/openh264.cpp:19:
In file included from ../include/pjmedia-codec/openh264.h:22:
In file included from ../include/pjmedia-codec/types.h:28:
In file included from ../include/pjmedia-codec/config.h:35:
In file included from ../include/pjmedia/types.h:28:
In file included from ../include/pjmedia/config.h:27:
In file included from ../../pjlib/include/pj/config.h:313:
In file included from ../../pjlib/include/pj/compat/size_t.h:28:
In file included from /usr/src/android-ndk-r17/sources/cxx-stl/llvm-libc++/include/stddef.h:40:
/usr/src/android-ndk-r17/sources/cxx-stl/llvm-libc++/include/__config:169:10:fatal error: 'features.h' file not found
#include <features.h>

ThenI tried to create empty file:
touch /usr/src/android-ndk-r17/sources/cxx-stl/llvm-libc++/include/features.h

And after it I get another error message:
In file included from ../src/pjmedia-codec/openh264.cpp:19:
In file included from ../include/pjmedia-codec/openh264.h:22:
In file included from ../include/pjmedia-codec/types.h:29:
In file included from ../include/pjmedia/codec.h:29:
In file included from ../include/pjmedia/port.h:30:
In file included from ../include/pjmedia/frame.h:28:
In file included from ../../pjlib/include/pj/string.h:29:
In file included from ../../pjlib/include/pj/compat/string.h:30:
/usr/src/android-ndk-r17/sources/cxx-stl/llvm-libc++/include/string.h:61:15:fatal error: 'string.h' file not found
#include_next <string.h>

echo $ANDROID_NDK_ROOT

/usr/src/android-ndk-r17

echo $KERNEL_DIR

/usr/src/linux-headers-4.15.0-22

echo $PJPROJECT_DIR

/usr/src/pjproject-2.7.1

cat /usr/src/pjproject-2.7.1/pjlib/include/pj/config_site.h

/* Activate Android specific settings in the 'config_site_sample.h' */
#define PJ_CONFIG_ANDROID 1
#include <pj/config_site_sample.h>

I tried also to deactivate many components but no success:
TARGET_ABI=armeabi-v7a ./configure-android --use-ndk-cflags--disable-floating-point --disable-sound --disable-small-filter--disable-large-filter --disable-g711-plc --disable-speex-aec --disable-g711-codec--disable-l16-codec --disable-gsm-codec --disable-speex-codec--disable-ilbc-codec --disable-ssl --disable-sdl --disable-ffmpeg--disable-v4l2 --disable-openh264 --disable-libyuv

Cananyone please help me to compile and use pjsip on my smartphone?

Thank youvery much!
Marko


Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

Hi Thomas,thank you for your advice. In the meantime I could compile it, after the help from this list.But the CSipSimple app seems to be interesting and I'll try it!RegardsMarko On Monday, June 4, 2018, 7:13:14 PM GMT+2, Thomas Brown <tbrown@excelocity.com> wrote: Hi Marko,   Have you tried the CSipSimple app?   https://en.wikipedia.org/wiki/CSipSimple   Cheers   From: pjsip[mailto:pjsip-bounces@lists.pjsip.org] On Behalf Of Marko Tirs via pjsip Sent: June 4, 2018 12:15 PM To: pjsip@lists.pjsip.org Cc: Marko Tirs Subject: [pjsip] pjsip Android make ERROR - 'features.h' file not found   Hi All, I tried to compile pjsipfor Android and get errors again and again. I have seen in google that manypeople have the same problem but no one of the solutions functions for me. pjsip2.7.1 android-ndk-r17 Ubuntu 17.10, 18.04 The simple ./configure&& make dep && make functions OK. TARGET_ABI=armeabi-v7a./configure-android --use-ndk-cflags make dep && make In file included from../src/pjmedia-codec/openh264.cpp:19: In file included from ../include/pjmedia-codec/openh264.h:22: In file included from ../include/pjmedia-codec/types.h:28: In file included from ../include/pjmedia-codec/config.h:35: In file included from ../include/pjmedia/types.h:28: In file included from ../include/pjmedia/config.h:27: In file included from ../../pjlib/include/pj/config.h:313: In file included from ../../pjlib/include/pj/compat/size_t.h:28: In file included from /usr/src/android-ndk-r17/sources/cxx-stl/llvm-libc++/include/stddef.h:40: /usr/src/android-ndk-r17/sources/cxx-stl/llvm-libc++/include/__config:169:10:fatal error: 'features.h' file not found #include <features.h> ThenI tried to create empty file: touch /usr/src/android-ndk-r17/sources/cxx-stl/llvm-libc++/include/features.h And after it I get another error message: In file included from ../src/pjmedia-codec/openh264.cpp:19: In file included from ../include/pjmedia-codec/openh264.h:22: In file included from ../include/pjmedia-codec/types.h:29: In file included from ../include/pjmedia/codec.h:29: In file included from ../include/pjmedia/port.h:30: In file included from ../include/pjmedia/frame.h:28: In file included from ../../pjlib/include/pj/string.h:29: In file included from ../../pjlib/include/pj/compat/string.h:30: /usr/src/android-ndk-r17/sources/cxx-stl/llvm-libc++/include/string.h:61:15:fatal error: 'string.h' file not found #include_next <string.h> # echo $ANDROID_NDK_ROOT /usr/src/android-ndk-r17 # echo $KERNEL_DIR /usr/src/linux-headers-4.15.0-22 # echo $PJPROJECT_DIR /usr/src/pjproject-2.7.1 # cat /usr/src/pjproject-2.7.1/pjlib/include/pj/config_site.h /* Activate Android specific settings in the 'config_site_sample.h' */ #define PJ_CONFIG_ANDROID 1 #include <pj/config_site_sample.h> I tried also to deactivate many components but no success: TARGET_ABI=armeabi-v7a ./configure-android --use-ndk-cflags--disable-floating-point --disable-sound --disable-small-filter--disable-large-filter --disable-g711-plc --disable-speex-aec --disable-g711-codec--disable-l16-codec --disable-gsm-codec --disable-speex-codec--disable-ilbc-codec --disable-ssl --disable-sdl --disable-ffmpeg--disable-v4l2 --disable-openh264 --disable-libyuv Cananyone please help me to compile and use pjsip on my smartphone? Thank youvery much! Marko _______________________________________________ Visit our blog: http://blog.pjsip.org pjsip mailing list pjsip@lists.pjsip.org http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org