BelledonneCommunications / linphone-sdk

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

[Bug]: build error, dependency on "opencore-amr" #382

Open igodor opened 4 months ago

igodor commented 4 months ago

Hello! For personal testing, I'm trying to build linphone-sdk and linphone-android with support for AMR-NB AMR-WB codecs. To do this, I ran the following commands according to the official instructions and README:

git clone -b release/5.3 https://gitlab.linphone.org/BC/public/linphone-sdk.git
cd ./linphone-sdk
git submodule update --init --recursive
docker pull gitlab.linphone.org:4567/bc/public/linphone-sdk/bc-dev-android-r25b:20230706_add_deps_for_av1
docker run -it --volume=$PWD:/home/bc/linphone-sdk gitlab.linphone.org:4567/bc/public/linphone-sdk/bc-dev-android-r25b:20230706_add_deps_for_av1 /bin/bash -i
cmake --preset=android-sdk -B build-android -DLINPHONESDK_ANDROID_ARCHS=arm64 -DENABLE_NON_FREE_FEATURES=YES -DENABLE_AMRNB=ON -DENABLE_AMRWB=ON
cmake --build build-android --parallel 4

All commands completed successfully except the last build command:


  ***************************************************************************
  ***************************************************************************
  ***** Linphone SDK without third party GPL software                   *****
  ***** If you acquired a proprietary license from Belledonne           *****
  ***** Communications, this SDK can be used to create                  *****
  ***** a proprietary Linphone-based application.                       *****
  ***************************************************************************
  ***************************************************************************

-- Configuring done
CMake Error at cmake/ExternalDependencies.cmake:986 (add_dependencies):
  The dependency target "opencore-amr" of target "sdk" does not exist.
Call Stack (most recent call first):
  cmake/ExternalDependencies.cmake:988 (add_opencore_amr)
  CMakeLists.txt:104 (include)

CMake Error at cmake/ExternalDependencies.cmake:1224 (add_dependencies):
  The dependency target "vo_amrwbenc" of target "sdk" does not exist.
Call Stack (most recent call first):
  cmake/ExternalDependencies.cmake:1226 (add_vo_amrwbenc)
  CMakeLists.txt:104 (include)

-- Generating done
CMake Generate step failed.  Build files cannot be regenerated correctly.
gmake[2]: *** [CMakeFiles/android-arm64.dir/build.make:71: CMakeFiles/android-arm64] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:115: CMakeFiles/android-arm64.dir/all] Error 2
gmake: *** [Makefile:91: all] Error 2

Folders with files external/opencore-amr and external/vo-amrwbenc are present.

I installed the dev package dependencies for opencore-amr - still doesn't help. I don't know what to do next because I'm not a guru.

I would be grateful for any help from the community. I'm not a very experienced specialist in assembling programs, so don't judge strictly.