Open hpng6 opened 4 years ago
Hi ! I need to ask you some questions to help you. On which branch are you actually trying to build ? master or release/4.2 ? Did you try to re-clone and re-build from scratch ?
I have a similar build error on release/4.3 using ndk-20b: [ 50%] Built target belr [ 58%] Linking CXX executable belr-parse /home/xxx/env/android-ndk-r20b/toolchains/llvm/prebuilt/linux-x86_64/lib/gcc/aarch64-linux-android/4.9.x/../../../../aarch64-linux-android/bin/ld: warning: liblog.so, needed by /home/xxx/Desktop/RTC/linphone-sdk/build/linphone-sdk/desktop/android-arm64/lib/libbctoolbox.so, not found (try using -rpath or -rpath-link) /home/xxx/Desktop/RTC/linphone-sdk/build/linphone-sdk/desktop/android-arm64/lib/libbctoolbox.so: undefined reference to `__android_log_assert' clang++: error: linker command failed with exit code 1 (use -v to see invocation)
I added "LOCAL_LDLIBS := -llog" in belr/build/android and it works well
how to resolve?
fatal: ambiguous argument '1.0.0..HEAD': unknown revision or path not in the working tree. Use '--' to separate paths from revisions, like this: 'git [...] -- [...]'
-- Package file name is belr-1.0.0
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/NG6/Test-Linphone-sdk/linphone-sdk/build/WORK/android-arm64/Build/belr
[ 84%] Forcing build for 'EP_belr'
[ 84%] Performing build step for 'EP_belr'
Scanning dependencies of target belr
[ 8%] Building CXX object src/CMakeFiles/belr.dir/abnf.cpp.o
[ 16%] Building CXX object src/CMakeFiles/belr.dir/belr.cpp.o
[ 25%] Building CXX object src/CMakeFiles/belr.dir/grammarbuilder.cpp.o
[ 33%] Building CXX object src/CMakeFiles/belr.dir/parser.cpp.o
[ 41%] Building CXX object src/CMakeFiles/belr.dir/binarystream.cpp.o
[ 50%] Linking CXX static library libbelr.a
[ 50%] Built target belr
Scanning dependencies of target belr-parse
[ 58%] Building CXX object tools/CMakeFiles/belr-parse.dir/belr-parse.cc.o
[ 66%] Linking CXX executable belr-parse
/Users/NG6/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/lib/gcc/aarch64-linux-android/4.9.x/../../../../aarch64-linux-android/bin/ld: warning: liblog.so, needed by /Users/NG6/Test-Linphone-sdk/linphone-sdk/build/linphone-sdk/desktop/android-arm64/lib/libbctoolbox.so, not found (try using -rpath or -rpath-link)
/Users/NG6/Test-Linphone-sdk/linphone-sdk/build/linphone-sdk/desktop/android-arm64/lib/libbctoolbox.so: undefined reference to `__android_log_assert'
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
make[8]: [tools/belr-parse] Error 1
make[7]: [tools/CMakeFiles/belr-parse.dir/all] Error 2
make[6]: [all] Error 2
make[5]: [/Users/NG6/Test-Linphone-sdk/linphone-sdk/build/WORK/android-arm64/Stamp/EP_belr/EP_belr-build] Error 2
make[4]: [CMakeFiles/EP_belr.dir/all] Error 2
make[3]: [all] Error 2
make[2]: [android-arm64-prefix/src/android-arm64-stamp/android-arm64-build] Error 2
make[1]: [CMakeFiles/android-arm64.dir/all] Error 2
make: *** [all] Error 2