Re: pjsip Digest, Vol 141, Issue 6

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

 



Hi Li Bing

you might wanna try using android-ndk-r13b instead of android-ndk-r19c and it will probably work out alright.

The source builds fine for "armeabi" for for "armeabi-v7a" and v8, it doesn't work on newer NDKs. i think 13b is the magic number you're looking for.

On Thu, May 9, 2019 at 6:01 PM <pjsip-request@xxxxxxxxxxxxxxx> wrote:
Send pjsip mailing list submissions to
        pjsip@xxxxxxxxxxxxxxx

To subscribe or unsubscribe via the World Wide Web, visit
        http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
or, via email, send a message with subject or body 'help' to
        pjsip-request@xxxxxxxxxxxxxxx

You can reach the person managing the list at
        pjsip-owner@xxxxxxxxxxxxxxx

When replying, please edit your Subject line so it is more specific
than "Re: Contents of pjsip digest..."


Today's Topics:

   1. Android swig "undefined reference to
      'pjsua_vid_conf_enum_ports'" (Li, Bing)


----------------------------------------------------------------------

Message: 1
Date: Wed, 8 May 2019 17:35:40 -0400
From: "Li, Bing" <bingli1000@xxxxxxxxx>
To: pjsip@xxxxxxxxxxxxxxx
Subject: Android swig "undefined reference to
        'pjsua_vid_conf_enum_ports'"
Message-ID:
        <CAP9o=2=_8BUxUm33Qd5ss_8qHvg10vPKHqjjE5H0zDZTN0kGdg@xxxxxxxxxxxxxx>
Content-Type: text/plain; charset="utf-8"

Hi,

I'm trying to git/master (316c315) for our Android app.

#TARGET_ABI=armeabi-v7a ./configure-android --use-ndk-cflags
This command built successfully.

But it failed when I run "make" in pjsip-apps/src/swig.

Any idea about the error "undefined reference to
'pjsua_vid_conf_enum_ports'" ?

root@Ubuntu1604-server-x8664:/opt/pjproject/pjsip-apps/src/swig# make
for dir in java csharp; do \
        if make  -C $dir all; then \
            true; \
        else \
            exit 1; \
        fi; \
done
make[1]: Entering directory '/opt/pjproject/pjsip-apps/src/swig/java'
mkdir -p android/app/src/main/jniLibs/armeabi-v7a
/opt/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++
-shared -o android/app/src/main/jniLibs/armeabi-v7a/libpjsua2.so
output/pjsua2_wrap.o \
        -shared -lgcc -Wl,--exclude-libs,libgcc.a -latomic
-Wl,--exclude-libs,libatomic.a -target armv7-none-linux-androideabi19
-no-canonical-prefixes -Wl,--build-id -Wl,--no-undefined -Wl,-z,noexecstack
-Wl,-z,relro -Wl,-z,now -Wl,--warn-shared-textrel -Wl,--fatal-warnings -lc
-lm -fexceptions -frtti -DPJ_AUTOCONF=1 -target
armv7-none-linux-androideabi19 -fdata-sections -ffunction-sections
-funwind-tables -no-canonical-prefixes --sysroot
/opt/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/sysroot
-Wno-invalid-command-line-argument -Wno-unused-command-line-argument
-fno-addrsig -fpic -mfpu=vfpv3-d16 -march=armv7-a -mthumb -Oz -DNDEBUG
-Ijni -DANDROID -Wa,--noexecstack -Wformat -Werror=format-security
-I/opt/android-ndk-r19c/sources/cxx-stl/llvm-libc++/include
-DPJ_IS_BIG_ENDIAN=0 -DPJ_IS_LITTLE_ENDIAN=1
 -I/opt/pjproject/pjlib/include -I/opt/pjproject/pjlib-util/include
-I/opt/pjproject/pjnath/include -I/opt/pjproject/pjmedia/include
-I/opt/pjproject/pjsip/include -fPIC -D__ANDROID__
-L/opt/pjproject/pjlib/lib -L/opt/pjproject/pjlib-util/lib
-L/opt/pjproject/pjnath/lib -L/opt/pjproject/pjmedia/lib
-L/opt/pjproject/pjsip/lib -L/opt/pjproject/third_party/lib
 --sysroot=
-L/opt/android-ndk-r19c/sources/cxx-stl/llvm-libc++/libs/armeabi-v7a/
-lpjsua2-armv7-unknown-linux-android -lstdc++
-lpjsua-armv7-unknown-linux-android -lpjsip-ua-armv7-unknown-linux-android
-lpjsip-simple-armv7-unknown-linux-android
-lpjsip-armv7-unknown-linux-android
-lpjmedia-codec-armv7-unknown-linux-android
-lpjmedia-armv7-unknown-linux-android
-lpjmedia-videodev-armv7-unknown-linux-android
-lpjmedia-audiodev-armv7-unknown-linux-android
-lpjmedia-armv7-unknown-linux-android -lpjnath-armv7-unknown-linux-android
-lpjlib-util-armv7-unknown-linux-android
-lsrtp-armv7-unknown-linux-android -lresample-armv7-unknown-linux-android
-lgsmcodec-armv7-unknown-linux-android -lspeex-armv7-unknown-linux-android
-lilbccodec-armv7-unknown-linux-android
-lg7221codec-armv7-unknown-linux-android -lyuv-armv7-unknown-linux-android
-lwebrtc-armv7-unknown-linux-android  -lpj-armv7-unknown-linux-android -lm
-lc++_static -lc++abi  -lc -lgcc -ldl -lOpenSLES -llog -lGLESv2 -lEGL
-landroid -Wl,-soname,libpjsua2.so
/opt/pjproject/pjsip/lib/libpjsua2-armv7-unknown-linux-android.a(endpoint.o):endpoint.cpp:function
pj::Endpoint::mediaEnumVidPorts() const: error: undefined reference to
'pjsua_vid_conf_enum_ports'
/opt/pjproject/pjsip/lib/libpjsua2-armv7-unknown-linux-android.a(media.o):media.cpp:function
pj::VideoMedia::registerMediaPort(void*, pj_pool_t*): error: undefined
reference to 'pjsua_vid_conf_add_port'
/opt/pjproject/pjsip/lib/libpjsua2-armv7-unknown-linux-android.a(media.o):media.cpp:function
pj::VideoMedia::unregisterMediaPort(): error: undefined reference to
'pjsua_vid_conf_remove_port'
/opt/pjproject/pjsip/lib/libpjsua2-armv7-unknown-linux-android.a(media.o):media.cpp:function
pj::VideoMedia::getPortInfoFromId(int): error: undefined reference to
'pjsua_vid_conf_get_port_info'
/opt/pjproject/pjsip/lib/libpjsua2-armv7-unknown-linux-android.a(media.o):media.cpp:function
pj::VideoMedia::startTransmit(pj::VideoMedia const&,
pj::VideoMediaTransmitParam const&) const: error: undefined reference to
'pjsua_vid_conf_connect'
/opt/pjproject/pjsip/lib/libpjsua2-armv7-unknown-linux-android.a(media.o):media.cpp:function
pj::VideoMedia::stopTransmit(pj::VideoMedia const&) const: error: undefined
reference to 'pjsua_vid_conf_disconnect'
clang++: error: linker command failed with exit code 1 (use -v to see
invocation)
Makefile:165: recipe for target
'android/app/src/main/jniLibs/armeabi-v7a/libpjsua2.so' failed
make[1]: *** [android/app/src/main/jniLibs/armeabi-v7a/libpjsua2.so] Error 1
make[1]: Leaving directory '/opt/pjproject/pjsip-apps/src/swig/java'
Makefile:27: recipe for target 'all' failed
make: *** [all] Error 1


Thanks,
Bing
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20190508/045e993f/attachment-0001.html>

------------------------------

Subject: Digest Footer

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


------------------------------

End of pjsip Digest, Vol 141, Issue 6
*************************************


--
 
Aleksandar Milenković
 
_______________________________________________
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