juha-h / libbaresip-android Goto Github PK
View Code? Open in Web Editor NEWlibbaresip for Android
License: Other
libbaresip for Android
License: Other
Hi
I'm trying to build this project: got ndk21, fresh git pull and also fresh Ubuntu instance (using VM). I've changed two fields in Makefile:
NDK_PATH := /media/shared_vm/android-ndk-r21
OUTPUT_DIR := /media/shared_vm/out
shared_vm
is folder shared between Ubuntu on VM and Windows
I've downloaded all needed sources using download-sources
, then make install-all
. Turned out there is a lack of some libs in system, but single libtool
installation (with refs) fixed all missings. So, again, make install-all
, make
is working heavily, lot of output comes and after few minutes I'm getting:
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'config'.
libtoolize: error: linking '/usr/share/libtool/build-aux/ltmain.sh' to 'config/' failed
libtoolize: You should add the contents of the following files to 'aclocal.m4':
libtoolize: '/usr/share/aclocal/libtool.m4'
libtoolize: '/usr/share/aclocal/ltoptions.m4'
libtoolize: '/usr/share/aclocal/ltsugar.m4'
libtoolize: '/usr/share/aclocal/ltversion.m4'
libtoolize: '/usr/share/aclocal/lt~obsolete.m4'
libtoolize: Consider adding 'AC_CONFIG_MACRO_DIRS([m4])' to configure.ac,
libtoolize: and rerunning libtoolize and aclocal.
libtoolize: Consider adding '-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
make[1]: *** [Makefile:199: g7221] Error 1
make[1]: Leaving directory '/media/shared_vm/libbaresip-android'
make: *** [Makefile:387: install-all] Error 2
tried running make
with sudo
, didn't worked. tried to create aclocal.m4
as suggested in output
cat /usr/share/aclocal/libtool.m4 /usr/share/aclocal/ltoptions.m4 /usr/share/aclocal/ltsugar.m4 /usr/share/aclocal/ltversion.m4 /usr/share/aclocal/lt~obsolete.m4 >> aclocal.m4
also didn't worked (is this even proper approach/output path?). I don't have much background in Linux environment, don't know how to handle this problem, where to look for cause...
Can I ask for some help in building these libs? Maybe there is a lack of some additional dependency installation in readme (just like libtool
)
@juha-h I have build libs using your instructions and it works fine.
Now when I am trying to create a separate project (Based on my req) from it, I could not build it successfully. I am using ndk-19.
It builds when if I remove "armeabi-v7a"
splits {
abi {
reset()
include 'arm64-v8a'
}
}
Gives the following error when I add "armeabi-v7a" to splic abi.
Build command failed.
Error while executing process E:\Softs\android_studio_sdk_3.3.2\cmake\3.6.4111459\bin\cmake.exe with arguments {--build E:\Sagar\Work\BackUps\SIP_VOIP\SIPDemo\app\.externalNativeBuild\cmake\debug\armeabi-v7a --target baresip}
[1/2] Building C object CMakeFiles/baresip.dir/baresip.c.o
[2/2] Linking C shared library E:\Sagar\Work\BackUps\SIP_VOIP\SIPDemo\app\build\intermediates\cmake\debug\obj\armeabi-v7a\libbaresip.so
FAILED: cmd.exe /C "cd . && E:\Softs\android_studio_sdk_3.3.2\ndk-bundle\toolchains\llvm\prebuilt\windows-x86_64\bin\clang.exe --target=armv7-none-linux-androideabi19 --gcc-toolchain=E:/Softs/android_studio_sdk_3.3.2/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64 --sysroot=E:/Softs/android_studio_sdk_3.3.2/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/sysroot -fPIC -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -mfpu=vfpv3-d16 -fno-addrsig -march=armv7-a -mthumb -mfpu=neon -Wa,--noexecstack -Wformat -Werror=format-security -DHAVE_INTTYPES_H -O0 -fno-limit-debug-info -Wl,--exclude-libs,libgcc.a -Wl,--exclude-libs,libatomic.a -static-libstdc++ -Wl,--build-id -Wl,--warn-shared-textrel -Wl,--fatal-warnings -Wl,--exclude-libs,libunwind.a -Wl,--no-undefined -Qunused-arguments -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -shared -Wl,-soname,libbaresip.so -o E:\Sagar\Work\BackUps\SIP_VOIP\SIPDemo\app\build\intermediates\cmake\debug\obj\armeabi-v7a\libbaresip.so CMakeFiles/baresip.dir/baresip.c.o -landroid -lOpenSLES E:/Sagar/Work/BackUps/SIP_VOIP/SIPDemo/app/src/main/cpp/../../../../distribution/baresip/lib/armeabi-v7a/libbaresip.a E:/Sagar/Work/BackUps/SIP_VOIP/SIPDemo/app/src/main/cpp/../../../../distribution/rem/lib/armeabi-v7a/librem.a E:/Sagar/Work/BackUps/SIP_VOIP/SIPDemo/app/src/main/cpp/../../../../distribution/re/lib/armeabi-v7a/libre.a E:/Sagar/Work/BackUps/SIP_VOIP/SIPDemo/app/src/main/cpp/../../../../distribution/openssl/lib/armeabi-v7a/libssl.a E:/Sagar/Work/BackUps/SIP_VOIP/SIPDemo/app/src/main/cpp/../../../../distribution/openssl/lib/armeabi-v7a/libcrypto.a E:/Sagar/Work/BackUps/SIP_VOIP/SIPDemo/app/src/main/cpp/../../../../distribution/opus/lib/armeabi-v7a/libopus.a E:/Sagar/Work/BackUps/SIP_VOIP/SIPDemo/app/src/main/cpp/../../../../distribution/zrtp/lib/armeabi-v7a/libzrtp.a E:/Sagar/Work/BackUps/SIP_VOIP/SIPDemo/app/src/main/cpp/../../../../distribution/bn/lib/armeabi-v7a/libbn.a -lz -llog -latomic -lm && cd ."
src/video.c:338: error: undefined reference to 'atof'
src/video.c:338: error: undefined reference to 'atof'
src/main/main.c:944: error: undefined reference to 'signal'
src/main/main.c:945: error: undefined reference to 'signal'
src/main/main.c:946: error: undefined reference to 'signal'
src/main/main.c:771: error: undefined reference to '__FD_ISSET_chk'
src/main/main.c:773: error: undefined reference to '__FD_ISSET_chk'
src/main/main.c:775: error: undefined reference to '__FD_ISSET_chk'
src/main/main.c:690: error: undefined reference to '__FD_SET_chk'
src/main/main.c:692: error: undefined reference to '__FD_SET_chk'
src/main/main.c:694: error: undefined reference to '__FD_SET_chk'
src/main/main.c:923: error: undefined reference to 'signal'
E:/Sagar/Work/BackUps/SIP_VOIP/SIPDemo/app/src/main/cpp/../../../../distribution/openssl/lib/armeabi-v7a/libcrypto.a(libcrypto-lib-armcap.o):armcap.c:function OPENSSL_cpuid_setup: error: undefined reference to 'sigfillset'
E:/Sagar/Work/BackUps/SIP_VOIP/SIPDemo/app/src/main/cpp/../../../../distribution/openssl/lib/armeabi-v7a/libcrypto.a(libcrypto-lib-armcap.o):armcap.c:function OPENSSL_cpuid_setup: error: undefined reference to 'sigdelset'
E:/Sagar/Work/BackUps/SIP_VOIP/SIPDemo/app/src/main/cpp/../../../../distribution/openssl/lib/armeabi-v7a/libcrypto.a(libcrypto-lib-armcap.o):armcap.c:function OPENSSL_cpuid_setup: error: undefined reference to 'sigdelset'
E:/Sagar/Work/BackUps/SIP_VOIP/SIPDemo/app/src/main/cpp/../../../../distribution/openssl/lib/armeabi-v7a/libcrypto.a(libcrypto-lib-armcap.o):armcap.c:function OPENSSL_cpuid_setup: error: undefined reference to 'sigdelset'
E:/Sagar/Work/BackUps/SIP_VOIP/SIPDemo/app/src/main/cpp/../../../../distribution/openssl/lib/armeabi-v7a/libcrypto.a(libcrypto-lib-armcap.o):armcap.c:function OPENSSL_cpuid_setup: error: undefined reference to 'sigdelset'
E:/Sagar/Work/BackUps/SIP_VOIP/SIPDemo/app/src/main/cpp/../../../../distribution/openssl/lib/armeabi-v7a/libcrypto.a(libcrypto-lib-ui_openssl.o):ui_openssl.c:function open_console: error: undefined reference to 'tcgetattr'
E:/Sagar/Work/BackUps/SIP_VOIP/SIPDemo/app/src/main/cpp/../../../../distribution/openssl/lib/armeabi-v7a/libcrypto.a(libcrypto-lib-ui_openssl.o):ui_openssl.c:function read_string_inner: error: undefined reference to 'tcsetattr'
E:/Sagar/Work/BackUps/SIP_VOIP/SIPDemo/app/src/main/cpp/../../../../distribution/openssl/lib/armeabi-v7a/libcrypto.a(libcrypto-lib-ui_openssl.o):ui_openssl.c:function read_string_inner: error: undefined reference to 'tcsetattr'
clang.exe: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.
Hi I have problems building this project. Problem seems to be with building component re. Since I am not experienced in building things I am turning all my prayers to you.
gmake[2]: Entering directory '/usr/src/libbaresip-android/re/build'
gmake[3]: Entering directory '/usr/src/libbaresip-android/re/build'
gmake[4]: Entering directory '/usr/src/libbaresip-android/re/build'
gmake[5]: Entering directory '/usr/src/libbaresip-android/re/build'
gmake[5]: Leaving directory '/usr/src/libbaresip-android/re/build'
gmake[5]: Entering directory '/usr/src/libbaresip-android/re/build'
[ 1%] Building C object CMakeFiles/re-objs.dir/src/av1/pkt.c.o
[ 1%] Building C object CMakeFiles/re-objs.dir/src/base64/b64.c.o
[ 1%] Building C object CMakeFiles/re-objs.dir/src/av1/depack.c.o
[ 1%] Building C object CMakeFiles/re-objs.dir/src/async/async.c.o
[ 3%] Building C object CMakeFiles/re-objs.dir/src/btrace/btrace.c.o
[ 3%] Building C object CMakeFiles/re-objs.dir/src/conf/conf.c.o
[ 3%] Building C object CMakeFiles/re-objs.dir/src/av1/obu.c.o
[ 4%] Building C object CMakeFiles/re-objs.dir/src/dns/cstr.c.o
[ 5%] Building C object CMakeFiles/re-objs.dir/src/dns/client.c.o
[ 5%] Building C object CMakeFiles/re-objs.dir/src/dns/dname.c.o
[ 5%] Building C object CMakeFiles/re-objs.dir/src/dbg/dbg.c.o
[ 6%] Building C object CMakeFiles/re-objs.dir/src/dns/hdr.c.o
[ 7%] Building C object CMakeFiles/re-objs.dir/src/dns/rr.c.o
[ 7%] Building C object CMakeFiles/re-objs.dir/src/dns/ns.c.o
[ 7%] Building C object CMakeFiles/re-objs.dir/src/dns/rrlist.c.o
[ 8%] Building C object CMakeFiles/re-objs.dir/src/fmt/ch.c.o
[ 8%] Building C object CMakeFiles/re-objs.dir/src/fmt/hexdump.c.o
[ 9%] Building C object CMakeFiles/re-objs.dir/src/fmt/pl.c.o
[ 9%] Building C object CMakeFiles/re-objs.dir/src/fmt/print.c.o
[ 10%] Building C object CMakeFiles/re-objs.dir/src/fmt/prm.c.o
[ 10%] Building C object CMakeFiles/re-objs.dir/src/fmt/regex.c.o
[ 11%] Building C object CMakeFiles/re-objs.dir/src/fmt/str.c.o
[ 11%] Building C object CMakeFiles/re-objs.dir/src/fmt/str_error.c.o
[ 12%] Building C object CMakeFiles/re-objs.dir/src/fmt/time.c.o
[ 12%] Building C object CMakeFiles/re-objs.dir/src/fmt/unicode.c.o
[ 13%] Building C object CMakeFiles/re-objs.dir/src/h264/getbit.c.o
[ 13%] Building C object CMakeFiles/re-objs.dir/src/h264/nal.c.o
[ 14%] Building C object CMakeFiles/re-objs.dir/src/h264/sps.c.o
[ 14%] Building C object CMakeFiles/re-objs.dir/src/h265/nal.c.o
[ 15%] Building C object CMakeFiles/re-objs.dir/src/hash/func.c.o
[ 15%] Building C object CMakeFiles/re-objs.dir/src/hash/hash.c.o
[ 15%] Building C object CMakeFiles/re-objs.dir/src/http/auth.c.o
[ 15%] Building C object CMakeFiles/re-objs.dir/src/http/chunk.c.o
[ 16%] Building C object CMakeFiles/re-objs.dir/src/hmac/hmac_sha1.c.o
[ 17%] Building C object CMakeFiles/re-objs.dir/src/http/client.c.o
/usr/src/libbaresip-android/re/src/hmac/hmac_sha1.c:58:2: error: missing HMAC-SHA1 backend
#error missing HMAC-SHA1 backend
^
1 error generated.
gmake[5]: *** [CMakeFiles/re-objs.dir/build.make:510: CMakeFiles/re-objs.dir/src/hmac/hmac_sha1.c.o] Error 1
gmake[5]: *** Waiting for unfinished jobs....
[ 17%] Building C object CMakeFiles/re-objs.dir/src/http/msg.c.o
gmake[5]: Leaving directory '/usr/src/libbaresip-android/re/build'
gmake[4]: *** [CMakeFiles/Makefile2:104: CMakeFiles/re-objs.dir/all] Error 2
gmake[4]: Leaving directory '/usr/src/libbaresip-android/re/build'
gmake[3]: *** [CMakeFiles/Makefile2:163: CMakeFiles/re.dir/rule] Error 2
gmake[3]: Leaving directory '/usr/src/libbaresip-android/re/build'
gmake[2]: *** [Makefile:215: re] Error 2
gmake[2]: Leaving directory '/usr/src/libbaresip-android/re/build'
make[1]: *** [Makefile:282: libre.a] Error 2
make[1]: Leaving directory '/usr/src/libbaresip-android'
make: *** [Makefile:362: install-all] Error 2
Follow the steps exactly(Debian-11,ndk-r25b,cmake-3.22.1),how should I handle this?thank you.
How to make libbaresip android use alsa directly instead use opensl es, just like libbaresip for linux ?
I need to directly write to pcm node using alsa library (tinyalsa) because some specification, so I need to make libbaresip dont use opensl es.
Sometime SIP Down, because of wifi router internet down, but not wifi or something else, the SIP registration seem down forever dont want to reconnect, but for 1-6 time, its reconnect with fail timeout message which is fine, but timing is bad it wait until 1-5 minute first, the #7 time, it wont reconnect forever until I restart the baresip app (which is android apk)
Is there any setting to reconnection fast ?
i'm add in studio like this:
CMakeLists.txt :
cmake_minimum_required(VERSION 3.4.1)
set(distribution_DIR ${CMAKE_SOURCE_DIR}/distribution)
add_library(lib_crypto STATIC IMPORTED)
set_target_properties(lib_crypto PROPERTIES IMPORTED_LOCATION
${distribution_DIR}/openssl/lib/${ANDROID_ABI}/libcrypto.a)
add_library(lib_ssl STATIC IMPORTED)
set_target_properties(lib_ssl PROPERTIES IMPORTED_LOCATION
${distribution_DIR}/openssl/lib/${ANDROID_ABI}/libssl.a)
add_library(lib_re STATIC IMPORTED)
set_target_properties(lib_re PROPERTIES IMPORTED_LOCATION
${distribution_DIR}/re/lib/${ANDROID_ABI}/libre.a)
add_library(lib_rem STATIC IMPORTED)
set_target_properties(lib_rem PROPERTIES IMPORTED_LOCATION
${distribution_DIR}/rem/lib/${ANDROID_ABI}/librem.a)
add_library(lib_opus STATIC IMPORTED)
set_target_properties(lib_opus PROPERTIES IMPORTED_LOCATION
${distribution_DIR}/opus/lib/${ANDROID_ABI}/libopus.a)
add_library(lib_bn STATIC IMPORTED)
set_target_properties(lib_bn PROPERTIES IMPORTED_LOCATION
${distribution_DIR}/bn/lib/${ANDROID_ABI}/libbn.a)
add_library(lib_g7221 STATIC IMPORTED)
set_target_properties(lib_g7221 PROPERTIES IMPORTED_LOCATION
${distribution_DIR}/g7221/lib/${ANDROID_ABI}/libg722_1.a)
add_library(lib_ilbc STATIC IMPORTED)
set_target_properties(lib_ilbc PROPERTIES IMPORTED_LOCATION
${distribution_DIR}/ilbc/lib/${ANDROID_ABI}/libilbc.a)
add_library(lib_zrtp STATIC IMPORTED)
set_target_properties(lib_zrtp PROPERTIES IMPORTED_LOCATION
${distribution_DIR}/zrtp/lib/${ANDROID_ABI}/libzrtp.a)
add_library(lib_webrtc STATIC IMPORTED)
set_target_properties(lib_webrtc PROPERTIES IMPORTED_LOCATION
${distribution_DIR}/webrtc/lib/${ANDROID_ABI}/libwebrtc.a)
add_library(lib_baresip STATIC IMPORTED)
set_target_properties(lib_baresip PROPERTIES IMPORTED_LOCATION
${distribution_DIR}/baresip/lib/${ANDROID_ABI}/libbaresip.a)
add_library(
native-lib
SHARED
native-lib.cpp)
include_directories(native-lib
${distribution_DIR}/baresip/include
${distribution_DIR}/re/include
${distribution_DIR}/rem/include
)
find_library(
log-lib
log)
target_link_libraries(
native-lib
lib_re
lib_rem
lib_crypto
lib_ssl
lib_opus
lib_g7221
lib_ilbc
lib_webrtc
lib_baresip
# included in the NDK.
${log-lib})
but make error
Build command failed.
Error while executing process D:\android\android-sdk-windows\cmake\3.10.2.4988404\bin\cmake.exe with arguments {--build E:\android\studio\baresip\app.externalNativeBuild\cmake\debug\arm64-v8a --target native-lib}
[1/1] Linking CXX shared library E:\android\studio\baresip\app\build\intermediates\cmake\debug\obj\arm64-v8a\libnative-lib.so
FAILED: E:/android/studio/baresip/app/build/intermediates/cmake/debug/obj/arm64-v8a/libnative-lib.so
cmd.exe /C "cd . && D:\android\android-sdk-windows\ndk-bundle\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe --target=aarch64-none-linux-android26 --gcc-toolchain=D:/android/android-sdk-windows/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64 --sysroot=D:/android/android-sdk-windows/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/sysroot -fPIC -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -Wa,--noexecstack -Wformat -Werror=format-security -O0 -fno-limit-debug-info -Wl,--exclude-libs,libgcc.a -Wl,--exclude-libs,libatomic.a -static-libstdc++ -Wl,--build-id -Wl,--warn-shared-textrel -Wl,--fatal-warnings -Wl,--no-undefined -Qunused-arguments -Wl,-z,noexecstack -shared -Wl,-soname,libnative-lib.so -o E:\android\studio\baresip\app\build\intermediates\cmake\debug\obj\arm64-v8a\libnative-lib.so CMakeFiles/native-lib.dir/native-lib.cpp.o E:/android/studio/baresip/app/src/main/cpp/distribution/re/lib/arm64-v8a/libre.a E:/android/studio/baresip/app/src/main/cpp/distribution/rem/lib/arm64-v8a/librem.a E:/android/studio/baresip/app/src/main/cpp/distribution/openssl/lib/arm64-v8a/libcrypto.a E:/android/studio/baresip/app/src/main/cpp/distribution/openssl/lib/arm64-v8a/libssl.a E:/android/studio/baresip/app/src/main/cpp/distribution/opus/lib/arm64-v8a/libopus.a E:/android/studio/baresip/app/src/main/cpp/distribution/g7221/lib/arm64-v8a/libg722_1.a E:/android/studio/baresip/app/src/main/cpp/distribution/ilbc/lib/arm64-v8a/libilbc.a E:/android/studio/baresip/app/src/main/cpp/distribution/webrtc/lib/arm64-v8a/libwebrtc.a E:/android/studio/baresip/app/src/main/cpp/distribution/baresip/lib/arm64-v8a/libbaresip.a -llog -latomic -lm && cd ."
E:/android/studio/baresip/app/src/main/cpp/distribution/openssl/lib/arm64-v8a/libssl.a(ssl_ciph.o): In function ssl_cipher_get_evp': ssl_ciph.c:(.text+0x7bc): undefined reference to
EVP_enc_null'
E:/android/studio/baresip/app/src/main/cpp/distribution/openssl/lib/arm64-v8a/libssl.a(ssl_ciph.o): In function SSL_COMP_add_compression_method': ssl_ciph.c:(.text+0x2d48): undefined reference to
COMP_get_type'
E:/android/studio/baresip/app/src/main/cpp/distribution/openssl/lib/arm64-v8a/libssl.a(ssl_ciph.o): In function SSL_COMP_get_name': ssl_ciph.c:(.text+0x2ed4): undefined reference to
COMP_get_name'
E:/android/studio/baresip/app/src/main/cpp/distribution/openssl/lib/arm64-v8a/libssl.a(ssl_ciph.o): In function do_load_builtin_compressions_ossl_': ssl_ciph.c:(.text+0x34ec): undefined reference to
COMP_get_type'
ssl_ciph.c:(.text+0x3528): undefined reference to COMP_get_name' E:/android/studio/baresip/app/src/main/cpp/distribution/openssl/lib/arm64-v8a/libssl.a(ssl_lib.o): In function
SSL_clear':
ssl_lib.c:(.text+0x28c): undefined reference to COMP_CTX_free' ssl_lib.c:(.text+0x298): undefined reference to
COMP_CTX_free'
E:/android/studio/baresip/app/src/main/cpp/distribution/openssl/lib/arm64-v8a/libssl.a(ssl_lib.o): In function SSL_free': ssl_lib.c:(.text+0xa1c): undefined reference to
COMP_CTX_free'
ssl_lib.c:(.text+0xa28): undefined reference to COMP_CTX_free' ssl_lib.c:(.text+0xb78): undefined reference to
ASYNC_WAIT_CTX_free'
and others。
References to modules could not be found 。i'm error??
Hi ,
I wanna make libbaresip-android directly use alsa driver instead of opensl es when i am using baresip linux I am getting alsa.so module not found error
dl: mod: ./alsa.so (./alsa.so: cannot open shared object file: No such file or directory)
module alsa.so: No such file or directory [2]
when i want to make download-sources, i got :
fatal: unable to access 'https://git.code.sf.net/p/opencore-amr/code/': The requested URL returned error: 403
make: *** [Makefile:376: download-sources] Error 128
i'm try cmakelist,but openssl\baresip head file have some error
I have Android Studio and NDK on a Mac. I am able to build a variety of things. After following the instructions, the build fails in openssl looking for linux binaries, which are not there and would not run that well anyway. I do find a prebuilt/darwin-x86_64/bin
. After patching linux to darwin a few places, it seems to start going. So I suggest that in the place the user has to configure, there is a variable for build host, or perhaps use uname?
CC=clang ANDROID_NDK=/path_to_bundle/ndk-bundle PATH=/path_to_bundle/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin:/usr/bin:/bin ./Configure android
-arm64 no-shared -D__ANDROID_API__=21
I have error building baresiplib in commit [c9dfc84]. Error:
/home/stersh/StudioProjects/libbaresip-android/re/src/hmac/hmac_sha1.c:58:2: error: missing HMAC-SHA1 backend
In logs i see:
-- Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the system variable OPENSSL_ROOT_DIR (missing: OPENSSL_CRYPTO_LIBRARY) (found version "3.0.8")
Full log attached.
hi juha, thanks for all your hardwork.
its possible to play wav file or beep, or like answering machine /introduction on exactly at start of time of receiving voice call ?
when building the baresip project i am getting this error
https://github.com/juha-h/baresip-studio/assets/123717548/c01e4921-aad3-4413-b971-6f20eda6be36
I hope you are aware of this.
Thank you.
When I go to the ZRTPCPP folder and run the command: mkdir build cd build cmake .. it's completely normal but when I run the make install-all command I get an error like this
gcc --version
Apple clang version 15.0.0 (clang-1500.0.40.1)
Target: arm64-apple-darwin23.0.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
-- The C compiler identification is Clang 17.0.2
-- The CXX compiler identification is Clang 17.0.2
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Check for working C compiler: /Users/datphung/Library/Android/sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi23-clang
-- Check for working C compiler: /Users/datphung/Library/Android/sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi23-clang - broken
CMake Error at /opt/homebrew/Cellar/cmake/3.28.1/share/cmake/Modules/CMakeTestCCompiler.cmake:67 (message):
The C compiler
"/Users/datphung/Library/Android/sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi23-clang"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: '/Users/datphung/workspace/baresip-studio/libbaresip-android/ZRTPCPP/build/CMakeFiles/CMakeScratch/TryCompile-ZPsRw4'
Run Build Command(s): /opt/homebrew/Cellar/cmake/3.28.1/bin/cmake -E env VERBOSE=1 /usr/bin/make -f Makefile cmTC_e49de/fast
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/cmTC_e49de.dir/build.make CMakeFiles/cmTC_e49de.dir/build
Building C object CMakeFiles/cmTC_e49de.dir/testCCompiler.c.o
/Users/datphung/Library/Android/sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi23-clang -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk -MD -MT CMakeFiles/cmTC_e49de.dir/testCCompiler.c.o -MF CMakeFiles/cmTC_e49de.dir/testCCompiler.c.o.d -o CMakeFiles/cmTC_e49de.dir/testCCompiler.c.o -c /Users/datphung/workspace/baresip-studio/libbaresip-android/ZRTPCPP/build/CMakeFiles/CMakeScratch/TryCompile-ZPsRw4/testCCompiler.c
Linking C executable cmTC_e49de
/opt/homebrew/Cellar/cmake/3.28.1/bin/cmake -E cmake_link_script CMakeFiles/cmTC_e49de.dir/link.txt --verbose=1
/Users/datphung/Library/Android/sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi23-clang -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names CMakeFiles/cmTC_e49de.dir/testCCompiler.c.o -o cmTC_e49de
ld.lld: error: unknown argument '-search_paths_first'
clang-17: error: linker command failed with exit code 1 (use -v to see invocation)
make[3]: *** [cmTC_e49de] Error 1
make[2]: *** [cmTC_e49de/fast] Error 2
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:18 (PROJECT)
-- Configuring incomplete, errors occurred!
make[1]: *** [gzrtp] Error 1
The path is hard set to the NDK and /usr/bin and /bin, but on Macs typically one installs autotools etc. via some package manager. I use pkgsrc, in /opt/pkg, but /opt/pkg/bin is discarded and thus the build in tiff failed with
+ libtoolize --force --copy
./autogen.sh: line 3: libtoolize: command not found
but it is in /opt/pkg/bin/libtoolize, just where I expect it.
The fix is not obvious; perhaps PATH stuff should be in the config. Or perhaps the user's PATH respected, with just an NDK prepend. That's kind of like Linux in effect, which has a culture of putting everything in /usr/bin, which feels much like letting the user's multiple directories work.
...to both branches
When building libbaresip-android I am encountering this issue i have successfully built alsa drivers in my linux but still it is getting. Libbaresip project compiler cant find alsa header files.
https://github.com/juha-h/libbaresip-android/assets/123717548/e1d0168a-d9fe-4341-b0ae-209dc2f56313
I wanna integrate the libbaresip to my android studio project not to baresip-studio project. How to do this.
I want to get the files into my project like baresip studio project and able to call the c/c++ methods from java or kotlin that means i need to make alternate the baresip project.
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by opencore-amr configure 0.1.6, which was
generated by GNU Autoconf 2.71. Invocation command line was
$ ./configure --host=arm-linux-androideabi --disable-shared CXXFLAGS=-fPIC --prefix=/opt/baresip/libbaresip-android/amr
hostname = xzy
uname -m = i686
uname -r = 6.1.0-21-686-pae
uname -s = Linux
uname -v = #1 SMP PREEMPT_DYNAMIC Debian 6.1.90-1 (2024-05-03)
/usr/bin/uname -p = unknown
/bin/uname -X = unknown
/bin/arch = i686
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /opt/Android/ndk//toolchains/llvm/prebuilt/linux-x86_64/bin/
PATH: /usr/bin/
PATH: /bin/
configure:2932: looking for aux files: config.guess config.sub ltmain.sh compile missing install-sh
configure:2945: trying ././
configure:2974: ././config.guess found
configure:2974: ././config.sub found
configure:2974: ././ltmain.sh found
configure:2974: ././compile found
configure:2974: ././missing found
configure:2956: ././install-sh found
configure:3105: checking for a BSD-compatible install
configure:3178: result: /usr/bin/install -c
configure:3189: checking whether build environment is sane
configure:3244: result: yes
configure:3300: checking for arm-linux-androideabi-strip
configure:3335: result: no
configure:3345: checking for strip
configure:3366: found /usr/bin/strip
configure:3377: result: strip
configure:3403: checking for a race-free mkdir -p
configure:3447: result: /usr/bin/mkdir -p
configure:3454: checking for gawk
configure:3489: result: no
configure:3454: checking for mawk
configure:3475: found /usr/bin/mawk
configure:3486: result: mawk
configure:3497: checking whether make sets $(MAKE)
configure:3520: result: yes
configure:3550: checking whether make supports nested variables
configure:3568: result: yes
configure:3653: checking whether UID '0' is supported by ustar format
configure:3656: result: yes
configure:3663: checking whether GID '0' is supported by ustar format
configure:3666: result: yes
configure:3674: checking how to create a ustar tar archive
configure:3685: tar --version
tar (GNU tar) 1.34
Copyright (C) 2021 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later https://gnu.org/licenses/gpl.html.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by John Gilmore and Jay Fenlason.
configure:3688: $? = 0
configure:3728: tardir=conftest.dir && eval tar --format=ustar -chf - "$tardir" >conftest.tar
configure:3731: $? = 0
configure:3735: tar -xf - <conftest.tar
configure:3738: $? = 0
configure:3740: cat conftest.dir/file
GrepMe
configure:3743: $? = 0
configure:3757: result: gnutar
configure:3833: checking whether make supports nested variables
configure:3851: result: yes
configure:3863: checking whether to enable maintainer-specific portions of Makefiles
configure:3873: result: no
configure:4097: checking for C++ compiler version
configure:4106: armv7a-linux-androideabi23-clang++ --version >&5
./configure: line 4108: armv7a-linux-androideabi23-clang++: command not found
configure:4117: $? = 127
configure:4106: armv7a-linux-androideabi23-clang++ -v >&5
./configure: line 4108: armv7a-linux-androideabi23-clang++: command not found
configure:4117: $? = 127
configure:4106: armv7a-linux-androideabi23-clang++ -V >&5
./configure: line 4108: armv7a-linux-androideabi23-clang++: command not found
configure:4117: $? = 127
configure:4106: armv7a-linux-androideabi23-clang++ -qversion >&5
./configure: line 4108: armv7a-linux-androideabi23-clang++: command not found
configure:4117: $? = 127
configure:4137: checking whether the C++ compiler works
configure:4159: armv7a-linux-androideabi23-clang++ -fPIC conftest.cpp >&5
./configure: line 4161: armv7a-linux-androideabi23-clang++: command not found
configure:4163: $? = 127
configure:4203: result: no
configure: failed program was:
| /* confdefs.h /
| #define PACKAGE_NAME "opencore-amr"
| #define PACKAGE_TARNAME "opencore-amr"
| #define PACKAGE_VERSION "0.1.6"
| #define PACKAGE_STRING "opencore-amr 0.1.6"
| #define PACKAGE_BUGREPORT "http://sourceforge.net/projects/opencore-amr/"
| #define PACKAGE_URL ""
| #define PACKAGE "opencore-amr"
| #define VERSION "0.1.6"
| / end confdefs.h. */
|
| int
| main (void)
| {
|
| ;
| return 0;
| }
configure:4208: error: in /opt/baresip/libbaresip-android/amr': configure:4210: error: C++ compiler cannot create executables See
config.log' for more details
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_set=set
ac_cv_env_CC_value='armv7a-linux-androideabi23-clang --sysroot /opt/Android/ndk//toolchains/llvm/prebuilt/linux-x86_64/sysroot'
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=set
ac_cv_env_CXXFLAGS_value=-fPIC
ac_cv_env_CXX_set=set
ac_cv_env_CXX_value=armv7a-linux-androideabi23-clang++
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_LT_SYS_LIBRARY_PATH_set=
ac_cv_env_LT_SYS_LIBRARY_PATH_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=arm-linux-androideabi
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_path_install='/usr/bin/install -c'
ac_cv_path_mkdir=/usr/bin/mkdir
ac_cv_prog_AWK=mawk
ac_cv_prog_ac_ct_STRIP=strip
ac_cv_prog_make_make_set=yes
am_cv_make_support_nested_variables=yes
am_cv_prog_tar_ustar=gnutar
ACLOCAL='${SHELL} '''/opt/baresip/libbaresip-android/amr/missing''' aclocal-1.16'
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMRNB_DECODER_FALSE='#'
AMRNB_DECODER_TRUE=''
AMRNB_ENCODER_FALSE='#'
AMRNB_ENCODER_TRUE=''
AMTAR='$${TAR-tar}'
AM_BACKSLASH=''
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
AM_DEFAULT_VERBOSITY='0'
AM_V='$(V)'
AR='llvm-ar'
AUTOCONF='${SHELL} '''/opt/baresip/libbaresip-android/amr/missing''' autoconf'
AUTOHEADER='${SHELL} '''/opt/baresip/libbaresip-android/amr/missing''' autoheader'
AUTOMAKE='${SHELL} '''/opt/baresip/libbaresip-android/amr/missing''' automake-1.16'
AWK='mawk'
CC='armv7a-linux-androideabi23-clang --sysroot /opt/Android/ndk//toolchains/llvm/prebuilt/linux-x86_64/sysroot'
CCDEPMODE=''
CFLAGS=''
COMPILE_AS_C_FALSE='#'
COMPILE_AS_C_TRUE=''
CPPFLAGS=''
CSCOPE='cscope'
CTAGS='ctags'
CXX='armv7a-linux-androideabi23-clang++'
CXXCPP=''
CXXDEPMODE=''
CXXFLAGS='-fPIC'
CYGPATH_W='echo'
DEFS=''
DEPDIR=''
DLLTOOL=''
DSYMUTIL=''
DUMPBIN=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
ETAGS='etags'
EXAMPLES_FALSE=''
EXAMPLES_TRUE='#'
EXEEXT=''
FGREP=''
FILECMD=''
GCC_ARMV5_FALSE=''
GCC_ARMV5_TRUE='#'
GREP=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LD=''
LDFLAGS=''
LIBOBJS=''
LIBS=''
LIBTOOL=''
LIPO=''
LN_S=''
LTLIBOBJS=''
LT_SYS_LIBRARY_PATH=''
MAINT='#'
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE='#'
MAKEINFO='${SHELL} '''/opt/baresip/libbaresip-android/amr/missing''' makeinfo'
MANIFEST_TOOL=''
MKDIR_P='/usr/bin/mkdir -p'
NM=''
NMEDIT=''
OBJDUMP=''
OBJEXT=''
OPENCORE_AMRNB_VERSION=''
OPENCORE_AMRWB_VERSION=''
OTOOL64=''
OTOOL=''
PACKAGE='opencore-amr'
PACKAGE_BUGREPORT='http://sourceforge.net/projects/opencore-amr/'
PACKAGE_NAME='opencore-amr'
PACKAGE_STRING='opencore-amr 0.1.6'
PACKAGE_TARNAME='opencore-amr'
PACKAGE_URL=''
PACKAGE_VERSION='0.1.6'
PATH_SEPARATOR=':'
RANLIB='llvm-ranlib'
SED=''
SET_MAKE=''
SHELL='/bin/bash'
STRIP='strip'
VERSION='0.1.6'
ac_ct_AR=''
ac_ct_CC=''
ac_ct_CXX=''
ac_ct_DUMPBIN=''
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE=''
am__fastdepCXX_TRUE=''
am__include=''
am__isrc=''
am__leading_dot='.'
am__nodep=''
am__quote=''
am__tar='tar --format=ustar -chf - "$$tardir"'
am__untar='tar -xf -'
bindir='${exec_prefix}/bin'
build=''
build_alias=''
build_cpu=''
build_os=''
build_vendor=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host='arm-linux-androideabi'
host_alias='arm-linux-androideabi'
host_cpu=''
host_os=''
host_vendor=''
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /opt/baresip/libbaresip-android/amr/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='$(MKDIR_P)'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/opt/baresip/libbaresip-android/amr'
program_transform_name='s,x,x,'
psdir='${docdir}'
runstatedir='${localstatedir}/run'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''
/* confdefs.h */
#define PACKAGE_NAME "opencore-amr"
#define PACKAGE_TARNAME "opencore-amr"
#define PACKAGE_VERSION "0.1.6"
#define PACKAGE_STRING "opencore-amr 0.1.6"
#define PACKAGE_BUGREPORT "http://sourceforge.net/projects/opencore-amr/"
#define PACKAGE_URL ""
#define PACKAGE "opencore-amr"
#define VERSION "0.1.6"
configure: exit 77
Hi @juha-h,
I'm trying to compile the libraries but no matter what NDK version I download/specify in the Make file,
it always throws the same error:
$ANDROID_NDK_HOME=/home/user/android-ndk-r21d/wrap.sh is invalid at (eval 10) line 37.
In the Makefile section I put this line as per the example inside:
NDK_PATH := $(shell ls -d -1 /home/user/android-ndk-r21d/* | tail -1)
I tried with NDK version 21 and 20 from https://developer.android.com/ndk/downloads/index.html,
also tried with Android Studio Bundled version 22, same error every time.
Please advice on how to solve this, I'm doing something obviously wrong.
Thanks
EDIT: I'm running a freshly installed Ubuntu 20.10
Error by following step 1:
Cloning into 'libbaresip-android'...
remote: Repository not found.
fatal: repository 'https://github.com/juha-g/libbaresip-android.git/' not found
Considering this project names as "juha-h/libbaresip-android". Could it be
$ git clone https://github.com/juha-h/libbaresip-android.git
?
It would be great if you will add support of building baresip not only for arm_v7a but also for arm64_v8a, x86 and x86_64. I tried to modify Makefile by myself but I'm not familiar with it and arm arch hardcoded in many places in different ways (arm, armv7, arm_v7a etc) and I have no ideas how to deal with it. Thank you in advance. )
I have seen that you have added gsm module in libbaresip i have successfully built the baresip project in android studio after that in the app i dont see any option that used to make gsm calls. How can i use that module tell me how to integrate gsm module to the project.
Thanks.
I have done the setup of G729 using BG729 and your library. But I search nowhere for defining the account file for accepting G729.
currently I use audio_codecs="G722/16000/1,PCMU/8000/1,G729/8000/1"
in config file;
and in account fine I have defined 3 codecs,
module g711.so
module g722.so
module g729.so
and I see BSLibe log (android), I dont see "module: g729 loaded " line log.
12-28 18:04:26.256 4382 4857 D BSLib : aucodec: PCMU/8000/1
12-28 18:04:26.257 4382 4857 D BSLib : aucodec: PCMA/8000/1
12-28 18:04:26.257 4382 4857 D BSLib : module: pcmu loaded, pcma loaded
12-28 18:04:26.257 4382 4857 D BSLib : aucodec: G722/16000/1
12-28 18:04:26.257 4382 4857 D BSLib : module: g722 loaded
12-28 18:04:26.257 4382 4857 D BSLib : aucodec: G729/8000/1
G722 and PCMU is working fine, except G729 still being rejected / transcoded by sip/media server.
have I wrote correct configuration file in account/config file ?
when I force to G729 only in sip server /ippbx server.
12-28 18:16:39.845 4382 4855 I Baresip Service: got uaEvent call closed,No audio codecs/sip:[email protected]/2377312776 AoR sip:[email protected] call 2377312776 that is will be closed is not found,
It seem my audio codec not recognized by libbaresip-android,.
Hi,
Is automatic network roaming supported on Android?
I am running into a few issues, while the phone is changing the network from wifi to LTE.
Just looking for an answer if this is an issue in my particulate case or with baresip on Android.
Thank You !
I tried make.
I succeeded to STEP3.
but STEP4 make install-all
make install-all make install ANDROID_TARGET_ARCH=armeabi-v7a make[1]: ディレクトリ '/home/karikomi/AndroidStudioProjects/libbaresip-android' に入ります make distclean -C openssl make[2]: ディレクトリ '/home/karikomi/AndroidStudioProjects/libbaresip-android/openssl' に入ります make[2]: *** ターゲット 'distclean' を make するルールがありません. 中止. make[2]: ディレクトリ '/home/karikomi/AndroidStudioProjects/libbaresip-android/openssl' から出ます make[1]: [Makefile:126: openssl] エラー 2 (無視されました) cd openssl && \ CC=clang ANDROID_NDK=/home/karikomi/Android/Sdk/ndk-bundle PATH=/home/karikomi/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin:/usr/bin:/bin ./Configure android-arm no-shared -D__ANDROID_API__=21 && \ CC=clang ANDROID_NDK=/home/karikomi/Android/Sdk/ndk-bundle PATH=/home/karikomi/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin:/usr/bin:/bin make build_libs Configuring OpenSSL version 1.1.1h-dev (0x10101080L) for android-arm Using os-specific seed configuration $ANDROID_NDK_HOME=/home/karikomi/Android/Sdk/ndk-bundle is invalid at (eval 10) line 37. make[1]: *** [Makefile:127: openssl] エラー 2 make[1]: ディレクトリ '/home/karikomi/AndroidStudioProjects/libbaresip-android' から出ます make: *** [Makefile:308: install-all] エラー 2 karikomi@VM-Ubuntu:~/AndroidStudioProjects/libbaresip-android$
I have configured Makefile with my local ndk path and other required changes too.
Also, download sources successfully,
Now when I and trying to perform the next step it shows me the following error.
I am using cygwin with windows system for the Linux environment.
$ make install-all
make install ANDROID_TARGET_ARCH=armeabi-v7a
make[1]: Entering directory '/cygdrive/E/sagar/Work/BackUps/SIP_VOIP/libbaresip-android-master'
make distclean -C openssl
make[2]: Entering directory '/cygdrive/E/sagar/Work/BackUps/SIP_VOIP/libbaresip-android-master/openssl'
make[2]: *** No rule to make target 'distclean'. Stop.
make[2]: Leaving directory '/cygdrive/E/sagar/Work/BackUps/SIP_VOIP/libbaresip-android-master/openssl'
make[1]: [Makefile:108: openssl] Error 2 (ignored)
cd openssl &&
CC=clang ANDROID_NDK=E:/Softs/android_studio_sdk_3.3.2/ndk-bundle PATH=E:/Softs/android_studio_sdk_3.3.2/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/bin:/usr/bin:/bin ./Configure android-arm no-shared -D__ANDROID_API__=21 &&
CC=clang ANDROID_NDK=E:/Softs/android_studio_sdk_3.3.2/ndk-bundle PATH=E:/Softs/android_studio_sdk_3.3.2/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/bin:/usr/bin:/bin make build_libs
Configuring OpenSSL version 3.0.0-dev for target android-arm
Using os-specific seed configuration
no NDK clang on $PATH at (eval 7) line 121.
make[1]: *** [Makefile:109: openssl] Error 2
make[1]: Leaving directory '/cygdrive/E/sagar/Work/BackUps/SIP_VOIP/libbaresip-android-master'
make: *** [Makefile:200: install-all] Error 2
Please help.
After local patches to set the toolchain to darwin- and add /opt/pkg/bin to the PATH, the build fails with the following. It appears that some Makefile is choosing a host version of srv.c, rather than switching on the cross target.
CC build-arm/dns/dname.o
CC build-arm/dns/hdr.o
CC build-arm/dns/ns.o
CC build-arm/dns/rr.o
CC build-arm/dns/rrlist.o
CC build-arm/dns/darwin/srv.o
src/dns/darwin/srv.c:14:10: fatal error: 'SystemConfiguration/SystemConfiguration.h' file not found
#include <SystemConfiguration/SystemConfiguration.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make[2]: *** [build-arm/dns/darwin/srv.o] Error 1
make[1]: *** [libre.a] Error 2
make: *** [default] Error 2
Hello,
I am trying to build baresip in order to use it into an Android application. Unfortunately, the build fails.
I am trying to setup a pipeline running on Ubuntu 20.04. From the README file, the steps 1, 2 and 3 seems to work, but my pipeline failed on the step 4.
To launch this step, I am using the following command:
make install-all NDK_PATH='/usr/local/lib/android/sdk/ndk-bundle' OUTPUT_DIR='distribution'
But it fails with the following message:
make[2]: Entering directory '/home/vsts/work/1/s/webrtc'
[armeabi-v7a] Compile++ thumb: webrtc <= aecm_core.cc
In file included from jni/src/webrtc/modules/audio_processing/aecm/aecm_core.cc:24:
jni/src/webrtc/rtc_base/checks.h:57:10: fatal error: 'absl/meta/type_traits.h' file not found
#include "absl/meta/type_traits.h"
^~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make[2]: *** [/usr/local/lib/android/sdk/ndk/21.4.7075529/build/core/build-binary.mk:478: obj/local/armeabi-v7a/objs/webrtc/src/webrtc/modules/audio_processing/aecm/aecm_core.o] Error 1
make[2]: Leaving directory '/home/vsts/work/1/s/webrtc'
make[1]: *** [Makefile:247: webrtc] Error 2
make[1]: Leaving directory '/home/vsts/work/1/s'
make: *** [Makefile:324: install-all] Error 2
##[error]Bash exited with code '2'.
I am not a C or C++ developer and I have no idea how to fix this issue. Any help is welcome :) Should I update any tools on my pipeline ? Am I missing something from the README file?
Thank you for your help.
When building libbaresip
I get the following error:
-- Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the system variable OPENSSL_ROOT_DIR (missing: OPENSSL_CRYPTO_LIBRARY) (found suitable version "3.1.0", minimum required is "1.1.1")
-- Configuring done
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
OPENSSL_CRYPTO_LIBRARY (ADVANCED)
linked by target "retest" in directory /home/user/git/baresip-studio/libbaresip-android/re/test
OPENSSL_SSL_LIBRARY (ADVANCED)
linked by target "retest" in directory /home/user/git/baresip-studio/libbaresip-android/re/test
CMake Error at CMakeLists.txt:681 (add_library):
Target "re-shared" links to target "OpenSSL::SSL" but the target was not
found. Perhaps a find_package() call is missing for an IMPORTED target, or
an ALIAS target is missing?
CMake Error at CMakeLists.txt:681 (add_library):
Target "re-shared" links to target "OpenSSL::Crypto" but the target was not
found. Perhaps a find_package() call is missing for an IMPORTED target, or
an ALIAS target is missing?
...
Also is it possible to resume the build from where it left off? Currently make install
rebuilds everything.
Hi, Sir
I try to build this project, with my ubuntu 20.04, ndk r21d
But, it will show below error, is this error just warning?
make[2]: *** No rule to make target 'distclean'. Stop.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.