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

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

 



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.
Regards
Marko


On Monday, June 4, 2018, 6:38:08 PM GMT+2, Jan Skórczyński <jskorczynski@xxxxxxxxxxxxxxxxx> 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@xxxxxxxxxxxxxxx> 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@xxxxxxxxxxxxxxx
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
_______________________________________________
Visit our blog: http://blog.pjsip.org

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

[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