BelledonneCommunications / linphone-sdk

Mirror for linphone-sdk (https://gitlab.linphone.org/BC/public/linphone-sdk.git)
GNU Affero General Public License v3.0
104 stars 80 forks source link

Build SDK failed by fatal: ambiguous argument '1.0.0..HEAD': unknown revision or path not in the working tree #3

Open hpng6 opened 4 years ago

hpng6 commented 4 years ago

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

KyronNextLevel commented 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 ?

YuShengwei-95 commented 4 years ago

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)

YuShengwei-95 commented 4 years ago

I added "LOCAL_LDLIBS := -llog" in belr/build/android and it works well

zxpgo commented 3 years ago

how to resolve?