Closed ONiKiDSK closed 11 months ago
I can't read those images. Please post as text, what you get when you run make install codec12
or whatever target of these that fails:
install: install-openssl install-opus install-spandsp install-g7221 \
install-g729 install-amr install-webrtc install-gzrtp install-codec2 \
install-sndfile install-libbaresip
All sources code has downloaded(Step 3),when I run "make install ANDROID_TARGET_ARCH=arm64-v8a"(Step 4),distribution folder gradually appeared "amr, g729, g7221, GZRTP, openssl, opus, spandsp, webrtc" these libraries, until "codec2 error", cause the outage, No other new libraries appear under the distribution folder. Here's what happens when a "codec2 error" occurs:
cd codec2 && \ rm -rf build && rm -rf .cache && mkdir build && cd build && \ cmake .. -DBUILD_SHARED_LIBS=OFF -DANDROID=ON -DANDROID_PLATFORM=23 -DCMAKE_SYSTEM_NAME=Android -DCMAKE_SYSTEM_VERSION=23 -DCMAKE_TOOLCHAIN_FILE=/home/hxg/download/android-ndk-r25b/build/cmake/android.toolchain.cmake -DANDROID_ABI=arm64-v8a -DCMAKE_ANDROID_ARCH_ABI=arm64-v8a -DCMAKE_SKIP_INSTALL_RPATH=ON -DCMAKE_C_COMPILER=aarch64-linux-android23-clang -DCMAKE_CXX_COMPILER=aarch64-linux-android23-clang++ -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_BUILD_TYPE=Release && \ cmake --build . --target codec2 -j && \ cp ../src/codec2.h codec2 CMake Warning at /home/hxg/download/android-ndk-r25b/build/cmake/android-legacy.toolchain.cmake:415 (message): An old version of CMake is being used that cannot automatically detect compiler attributes. Compiler identification is being bypassed. Some values may be wrong or missing. Update to CMake 3.19 or newer to use CMake's built-in compiler identification. Call Stack (most recent call first): /home/hxg/download/android-ndk-r25b/build/cmake/android.toolchain.cmake:54 (include) /usr/share/cmake-3.18/Modules/CMakeDetermineSystem.cmake:93 (include) CMakeLists.txt:15 (project)
-- Detecting C compiler ABI info CMake Warning at /home/hxg/download/android-ndk-r25b/build/cmake/android-legacy.toolchain.cmake:415 (message): An old version of CMake is being used that cannot automatically detect compiler attributes. Compiler identification is being bypassed. Some values may be wrong or missing. Update to CMake 3.19 or newer to use CMake's built-in compiler identification. Call Stack (most recent call first): /home/hxg/download/android-ndk-r25b/build/cmake/android.toolchain.cmake:54 (include) /home/hxg/download/project/baresip-studio/libbaresip-android/codec2/build/CMakeFiles/3.18.4/CMakeSystem.cmake:6 (include) /home/hxg/download/project/baresip-studio/libbaresip-android/codec2/build/CMakeFiles/CMakeTmp/CMakeLists.txt:2 (project)
-- Detecting C compiler ABI info - done -- Check for working C compiler: /home/hxg/download/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang - skipped -- Detecting C compile features -- Detecting C compile features - done -- Found Git: /usr/bin/git (found version "2.30.2") -- Codec2 current git hash: 06d4c11 -- Performing Test COMPILER_SUPPORTS_GNU11 CMake Warning at /home/hxg/download/android-ndk-r25b/build/cmake/android-legacy.toolchain.cmake:415 (message): An old version of CMake is being used that cannot automatically detect compiler attributes. Compiler identification is being bypassed. Some values may be wrong or missing. Update to CMake 3.19 or newer to use CMake's built-in compiler identification. Call Stack (most recent call first): /home/hxg/download/android-ndk-r25b/build/cmake/android.toolchain.cmake:54 (include) /home/hxg/download/project/baresip-studio/libbaresip-android/codec2/build/CMakeFiles/3.18.4/CMakeSystem.cmake:6 (include) /home/hxg/download/project/baresip-studio/libbaresip-android/codec2/build/CMakeFiles/CMakeTmp/CMakeLists.txt:2 (project)
-- Performing Test COMPILER_SUPPORTS_GNU11 - Success -- Performing Test COMPILER_SUPPORTS_GNU99 CMake Warning at /home/hxg/download/android-ndk-r25b/build/cmake/android-legacy.toolchain.cmake:415 (message): An old version of CMake is being used that cannot automatically detect compiler attributes. Compiler identification is being bypassed. Some values may be wrong or missing. Update to CMake 3.19 or newer to use CMake's built-in compiler identification. Call Stack (most recent call first): /home/hxg/download/android-ndk-r25b/build/cmake/android.toolchain.cmake:54 (include) /home/hxg/download/project/baresip-studio/libbaresip-android/codec2/build/CMakeFiles/3.18.4/CMakeSystem.cmake:6 (include) /home/hxg/download/project/baresip-studio/libbaresip-android/codec2/build/CMakeFiles/CMakeTmp/CMakeLists.txt:2 (project)
-- Performing Test COMPILER_SUPPORTS_GNU99 - Success -- Looking for include file stdlib.h CMake Warning at /home/hxg/download/android-ndk-r25b/build/cmake/android-legacy.toolchain.cmake:415 (message): An old version of CMake is being used that cannot automatically detect compiler attributes. Compiler identification is being bypassed. Some values may be wrong or missing. Update to CMake 3.19 or newer to use CMake's built-in compiler identification. Call Stack (most recent call first): /home/hxg/download/android-ndk-r25b/build/cmake/android.toolchain.cmake:54 (include) /home/hxg/download/project/baresip-studio/libbaresip-android/codec2/build/CMakeFiles/3.18.4/CMakeSystem.cmake:6 (include) /home/hxg/download/project/baresip-studio/libbaresip-android/codec2/build/CMakeFiles/CMakeTmp/CMakeLists.txt:2 (project)
-- Looking for include file stdlib.h - found -- Looking for include file string.h CMake Warning at /home/hxg/download/android-ndk-r25b/build/cmake/android-legacy.toolchain.cmake:415 (message): An old version of CMake is being used that cannot automatically detect compiler attributes. Compiler identification is being bypassed. Some values may be wrong or missing. Update to CMake 3.19 or newer to use CMake's built-in compiler identification. Call Stack (most recent call first): /home/hxg/download/android-ndk-r25b/build/cmake/android.toolchain.cmake:54 (include) /home/hxg/download/project/baresip-studio/libbaresip-android/codec2/build/CMakeFiles/3.18.4/CMakeSystem.cmake:6 (include) /home/hxg/download/project/baresip-studio/libbaresip-android/codec2/build/CMakeFiles/CMakeTmp/CMakeLists.txt:2 (project)
-- Looking for include file string.h - found -- Looking for __GNU_LIBRARY__ CMake Warning at /home/hxg/download/android-ndk-r25b/build/cmake/android-legacy.toolchain.cmake:415 (message): An old version of CMake is being used that cannot automatically detect compiler attributes. Compiler identification is being bypassed. Some values may be wrong or missing. Update to CMake 3.19 or newer to use CMake's built-in compiler identification. Call Stack (most recent call first): /home/hxg/download/android-ndk-r25b/build/cmake/android.toolchain.cmake:54 (include) /home/hxg/download/project/baresip-studio/libbaresip-android/codec2/build/CMakeFiles/3.18.4/CMakeSystem.cmake:6 (include) /home/hxg/download/project/baresip-studio/libbaresip-android/codec2/build/CMakeFiles/CMakeTmp/CMakeLists.txt:2 (project)
-- Looking for __GNU_LIBRARY__ - not found -- Looking for _GNU_SOURCE CMake Warning at /home/hxg/download/android-ndk-r25b/build/cmake/android-legacy.toolchain.cmake:415 (message): An old version of CMake is being used that cannot automatically detect compiler attributes. Compiler identification is being bypassed. Some values may be wrong or missing. Update to CMake 3.19 or newer to use CMake's built-in compiler identification. Call Stack (most recent call first): /home/hxg/download/android-ndk-r25b/build/cmake/android.toolchain.cmake:54 (include) /home/hxg/download/project/baresip-studio/libbaresip-android/codec2/build/CMakeFiles/3.18.4/CMakeSystem.cmake:6 (include) /home/hxg/download/project/baresip-studio/libbaresip-android/codec2/build/CMakeFiles/CMakeTmp/CMakeLists.txt:2 (project)
-- Looking for _GNU_SOURCE - not found -- Looking for floor CMake Warning at /home/hxg/download/android-ndk-r25b/build/cmake/android-legacy.toolchain.cmake:415 (message): An old version of CMake is being used that cannot automatically detect compiler attributes. Compiler identification is being bypassed. Some values may be wrong or missing. Update to CMake 3.19 or newer to use CMake's built-in compiler identification. Call Stack (most recent call first): /home/hxg/download/android-ndk-r25b/build/cmake/android.toolchain.cmake:54 (include) /home/hxg/download/project/baresip-studio/libbaresip-android/codec2/build/CMakeFiles/3.18.4/CMakeSystem.cmake:6 (include) /home/hxg/download/project/baresip-studio/libbaresip-android/codec2/build/CMakeFiles/CMakeTmp/CMakeLists.txt:2 (project)
-- Looking for floor - found -- Looking for ceil CMake Warning at /home/hxg/download/android-ndk-r25b/build/cmake/android-legacy.toolchain.cmake:415 (message): An old version of CMake is being used that cannot automatically detect compiler attributes. Compiler identification is being bypassed. Some values may be wrong or missing. Update to CMake 3.19 or newer to use CMake's built-in compiler identification. Call Stack (most recent call first): /home/hxg/download/android-ndk-r25b/build/cmake/android.toolchain.cmake:54 (include) /home/hxg/download/project/baresip-studio/libbaresip-android/codec2/build/CMakeFiles/3.18.4/CMakeSystem.cmake:6 (include) /home/hxg/download/project/baresip-studio/libbaresip-android/codec2/build/CMakeFiles/CMakeTmp/CMakeLists.txt:2 (project)
-- Looking for ceil - found -- Looking for pow CMake Warning at /home/hxg/download/android-ndk-r25b/build/cmake/android-legacy.toolchain.cmake:415 (message): An old version of CMake is being used that cannot automatically detect compiler attributes. Compiler identification is being bypassed. Some values may be wrong or missing. Update to CMake 3.19 or newer to use CMake's built-in compiler identification. Call Stack (most recent call first): /home/hxg/download/android-ndk-r25b/build/cmake/android.toolchain.cmake:54 (include) /home/hxg/download/project/baresip-studio/libbaresip-android/codec2/build/CMakeFiles/3.18.4/CMakeSystem.cmake:6 (include) /home/hxg/download/project/baresip-studio/libbaresip-android/codec2/build/CMakeFiles/CMakeTmp/CMakeLists.txt:2 (project)
-- Looking for pow - found -- Looking for sqrt CMake Warning at /home/hxg/download/android-ndk-r25b/build/cmake/android-legacy.toolchain.cmake:415 (message): An old version of CMake is being used that cannot automatically detect compiler attributes. Compiler identification is being bypassed. Some values may be wrong or missing. Update to CMake 3.19 or newer to use CMake's built-in compiler identification. Call Stack (most recent call first): /home/hxg/download/android-ndk-r25b/build/cmake/android.toolchain.cmake:54 (include) /home/hxg/download/project/baresip-studio/libbaresip-android/codec2/build/CMakeFiles/3.18.4/CMakeSystem.cmake:6 (include) /home/hxg/download/project/baresip-studio/libbaresip-android/codec2/build/CMakeFiles/CMakeTmp/CMakeLists.txt:2 (project)
-- Looking for sqrt - found -- Looking for sin CMake Warning at /home/hxg/download/android-ndk-r25b/build/cmake/android-legacy.toolchain.cmake:415 (message): An old version of CMake is being used that cannot automatically detect compiler attributes. Compiler identification is being bypassed. Some values may be wrong or missing. Update to CMake 3.19 or newer to use CMake's built-in compiler identification. Call Stack (most recent call first): /home/hxg/download/android-ndk-r25b/build/cmake/android.toolchain.cmake:54 (include) /home/hxg/download/project/baresip-studio/libbaresip-android/codec2/build/CMakeFiles/3.18.4/CMakeSystem.cmake:6 (include) /home/hxg/download/project/baresip-studio/libbaresip-android/codec2/build/CMakeFiles/CMakeTmp/CMakeLists.txt:2 (project)
-- Looking for sin - found -- Looking for cos CMake Warning at /home/hxg/download/android-ndk-r25b/build/cmake/android-legacy.toolchain.cmake:415 (message): An old version of CMake is being used that cannot automatically detect compiler attributes. Compiler identification is being bypassed. Some values may be wrong or missing. Update to CMake 3.19 or newer to use CMake's built-in compiler identification. Call Stack (most recent call first): /home/hxg/download/android-ndk-r25b/build/cmake/android.toolchain.cmake:54 (include) /home/hxg/download/project/baresip-studio/libbaresip-android/codec2/build/CMakeFiles/3.18.4/CMakeSystem.cmake:6 (include) /home/hxg/download/project/baresip-studio/libbaresip-android/codec2/build/CMakeFiles/CMakeTmp/CMakeLists.txt:2 (project)
-- Looking for cos - found -- Looking for atan2 CMake Warning at /home/hxg/download/android-ndk-r25b/build/cmake/android-legacy.toolchain.cmake:415 (message): An old version of CMake is being used that cannot automatically detect compiler attributes. Compiler identification is being bypassed. Some values may be wrong or missing. Update to CMake 3.19 or newer to use CMake's built-in compiler identification. Call Stack (most recent call first): /home/hxg/download/android-ndk-r25b/build/cmake/android.toolchain.cmake:54 (include) /home/hxg/download/project/baresip-studio/libbaresip-android/codec2/build/CMakeFiles/3.18.4/CMakeSystem.cmake:6 (include) /home/hxg/download/project/baresip-studio/libbaresip-android/codec2/build/CMakeFiles/CMakeTmp/CMakeLists.txt:2 (project)
-- Looking for atan2 - found -- Looking for log10 CMake Warning at /home/hxg/download/android-ndk-r25b/build/cmake/android-legacy.toolchain.cmake:415 (message): An old version of CMake is being used that cannot automatically detect compiler attributes. Compiler identification is being bypassed. Some values may be wrong or missing. Update to CMake 3.19 or newer to use CMake's built-in compiler identification. Call Stack (most recent call first): /home/hxg/download/android-ndk-r25b/build/cmake/android.toolchain.cmake:54 (include) /home/hxg/download/project/baresip-studio/libbaresip-android/codec2/build/CMakeFiles/3.18.4/CMakeSystem.cmake:6 (include) /home/hxg/download/project/baresip-studio/libbaresip-android/codec2/build/CMakeFiles/CMakeTmp/CMakeLists.txt:2 (project)
-- Looking for log10 - found -- Looking for round CMake Warning at /home/hxg/download/android-ndk-r25b/build/cmake/android-legacy.toolchain.cmake:415 (message): An old version of CMake is being used that cannot automatically detect compiler attributes. Compiler identification is being bypassed. Some values may be wrong or missing. Update to CMake 3.19 or newer to use CMake's built-in compiler identification. Call Stack (most recent call first): /home/hxg/download/android-ndk-r25b/build/cmake/android.toolchain.cmake:54 (include) /home/hxg/download/project/baresip-studio/libbaresip-android/codec2/build/CMakeFiles/3.18.4/CMakeSystem.cmake:6 (include) /home/hxg/download/project/baresip-studio/libbaresip-android/codec2/build/CMakeFiles/CMakeTmp/CMakeLists.txt:2 (project)
-- Looking for round - found -- Looking for getopt CMake Warning at /home/hxg/download/android-ndk-r25b/build/cmake/android-legacy.toolchain.cmake:415 (message): An old version of CMake is being used that cannot automatically detect compiler attributes. Compiler identification is being bypassed. Some values may be wrong or missing. Update to CMake 3.19 or newer to use CMake's built-in compiler identification. Call Stack (most recent call first): /home/hxg/download/android-ndk-r25b/build/cmake/android.toolchain.cmake:54 (include) /home/hxg/download/project/baresip-studio/libbaresip-android/codec2/build/CMakeFiles/3.18.4/CMakeSystem.cmake:6 (include) /home/hxg/download/project/baresip-studio/libbaresip-android/codec2/build/CMakeFiles/CMakeTmp/CMakeLists.txt:2 (project)
-- Looking for getopt - found -- codec2 version: 1.2.0 -- Build type is: Release -- Compiler Flags: -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -Wall -Wno-strict-overflow -std=gnu11 -fPIC-O3 -- Libraries linked: -- Compilation date = XX2023-12-13XX -- Configuring done You have changed variables that require your cache to be deleted. Configure will be re-run and you may have to reset some variables. The following variables have changed: CMAKE_C_COMPILER= aarch64-linux-android23-clang
-- The C compiler identification is Clang 14.0.6 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /home/hxg/download/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android23-clang - skipped -- Detecting C compile features -- Detecting C compile features - done -- Found Git: /usr/bin/git (found version "2.30.2") -- Codec2 current git hash: 06d4c11 -- Performing Test COMPILER_SUPPORTS_GNU11 -- Performing Test COMPILER_SUPPORTS_GNU11 - Success -- Performing Test COMPILER_SUPPORTS_GNU99 -- Performing Test COMPILER_SUPPORTS_GNU99 - Success -- Looking for include file stdlib.h -- Looking for include file stdlib.h - found -- Looking for include file string.h -- Looking for include file string.h - found -- Looking for GNU_LIBRARY -- Looking for GNU_LIBRARY - not found -- Looking for _GNU_SOURCE -- Looking for _GNU_SOURCE - not found -- Looking for floor -- Looking for floor - not found -- Looking for ceil -- Looking for ceil - not found -- Looking for pow -- Looking for pow - not found -- Looking for sqrt -- Looking for sqrt - not found -- Looking for sin -- Looking for sin - not found -- Looking for cos -- Looking for cos - not found -- Looking for atan2 -- Looking for atan2 - not found -- Looking for log10 -- Looking for log10 - not found -- Looking for round -- Looking for round - not found -- Looking for getopt -- Looking for getopt - found -- codec2 version: 1.2.0 -- Build type is: Debug -- Compiler Flags: -Wall -Wno-strict-overflow -std=gnu11 -fPIC-g -O2 -DDUMP -- Libraries linked: -- Compilation date = XX2023-12-13XX -- Configuring done -- Generating done -- Build files have been written to: /home/hxg/download/project/baresip-studio/libbaresip-android/codec2/build gmake[1]: Entering directory '/home/hxg/download/project/baresip-studio/libbaresip-android/codec2/build' gmake[2]: Entering directory '/home/hxg/download/project/baresip-studio/libbaresip-android/codec2/build' gmake[3]: Entering directory '/home/hxg/download/project/baresip-studio/libbaresip-android/codec2/build' gmake[4]: Entering directory '/home/hxg/download/project/baresip-studio/libbaresip-android/codec2/build' Scanning dependencies of target generate_codebook gmake[4]: Leaving directory '/home/hxg/download/project/baresip-studio/libbaresip-android/codec2/build' gmake[4]: Entering directory '/home/hxg/download/project/baresip-studio/libbaresip-android/codec2/build' [ 2%] Building C object src/CMakeFiles/generate_codebook.dir/generate_codebook.c.o [ 2%] Linking C executable generate_codebook gmake[4]: Leaving directory '/home/hxg/download/project/baresip-studio/libbaresip-android/codec2/build' [ 2%] Built target generate_codebook gmake[4]: Entering directory '/home/hxg/download/project/baresip-studio/libbaresip-android/codec2/build' [ 2%] Generating codebookjmv.c [ 5%] Generating codebooknewamp2_energy.c [ 7%] Generating codebookge.c [ 12%] Generating codebook.c [ 10%] Generating codebookd.c [ 12%] Generating codebooknewamp1.c [ 15%] Generating codebooknewamp1_energy.c [ 15%] Generating codebooknewamp2.c /bin/sh: 1: ./generate_codebook: Exec format error /bin/sh: 1: ./generate_codebook: Exec format error gmake[4]: [src/CMakeFiles/codec2.dir/build.make:128: src/codebooknewamp1_energy.c] Error 126 gmake[4]: Deleting file 'src/codebooknewamp1_energy.c' gmake[4]: Waiting for unfinished jobs.... /bin/sh: 1: ./generate_codebook: Exec format error /bin/sh: 1: ./generate_codebook: Exec format error gmake[4]: [src/CMakeFiles/codec2.dir/build.make:138: src/codebooknewamp2_energy.c] Error 126 gmake[4]: Deleting file 'src/codebooknewamp2_energy.c' gmake[4]: [src/CMakeFiles/codec2.dir/build.make:112: src/codebookjmv.c] Error 126 gmake[4]: Deleting file 'src/codebookjmv.c' gmake[4]: [src/CMakeFiles/codec2.dir/build.make:117: src/codebookge.c] Error 126 gmake[4]: Deleting file 'src/codebookge.c' /bin/sh: 1: ./generate_codebook: Exec format error /bin/sh: 1: ./generate_codebook: Exec format error gmake[4]: [src/CMakeFiles/codec2.dir/build.make:123: src/codebooknewamp1.c] Error 126 gmake[4]: Deleting file 'src/codebooknewamp1.c' /bin/sh: 1: ./generate_codebook: Exec format error gmake[4]: [src/CMakeFiles/codec2.dir/build.make:91: src/codebook.c] Error 126 gmake[4]: Deleting file 'src/codebook.c' gmake[4]: [src/CMakeFiles/codec2.dir/build.make:105: src/codebookd.c] Error 126 gmake[4]: Deleting file 'src/codebookd.c' /bin/sh: 1: ./generate_codebook: Exec format error gmake[4]: [src/CMakeFiles/codec2.dir/build.make:133: src/codebooknewamp2.c] Error 126 gmake[4]: Deleting file 'src/codebooknewamp2.c' gmake[4]: Leaving directory '/home/hxg/download/project/baresip-studio/libbaresip-android/codec2/build' gmake[3]: [CMakeFiles/Makefile2:571: src/CMakeFiles/codec2.dir/all] Error 2 gmake[3]: Leaving directory '/home/hxg/download/project/baresip-studio/libbaresip-android/codec2/build' gmake[2]: [CMakeFiles/Makefile2:579: src/CMakeFiles/codec2.dir/rule] Error 2 gmake[2]: Leaving directory '/home/hxg/download/project/baresip-studio/libbaresip-android/codec2/build' gmake[1]: [Makefile:374: codec2] Error 2 gmake[1]: Leaving directory '/home/hxg/download/project/baresip-studio/libbaresip-android/codec2/build' make: *** [Makefile:272: codec2] Error 2
I'll give you whatever information you need. Thank you.
Something wrong in your output. make install ANDROID_TARGET_ARCH=armeabi-v7a
cannot produce -DANDROID_ABI=arm64-v8a -DCMAKE_ANDROID_ARCH_ABI=arm64-v8a
. Try with Android/ndk/26.1.10909125
.
Sorry, I misspoke, but it actually runs "make install ANDROID_TARGET_ARCH=arm64-v8a". Then I will use "Android/the NDK / 26.1.10909125" try again, and then feedback to you.
Try with ndk-r26b(26.1.10909125),still the same as before:
cd codec2 && \ rm -rf build && rm -rf .cache && mkdir build && cd build && \ cmake .. -DBUILD_SHARED_LIBS=OFF -DANDROID=ON -DANDROID_PLATFORM=23 -DCMAKE_SYSTEM_NAME=Android -DCMAKE_SYSTEM_VERSION=23 -DCMAKE_TOOLCHAIN_FILE=/home/hxg/download/android-ndk-r26b/build/cmake/android.toolchain.cmake -DANDROID_ABI=arm64-v8a -DCMAKE_ANDROID_ARCH_ABI=arm64-v8a -DCMAKE_SKIP_INSTALL_RPATH=ON -DCMAKE_C_COMPILER=aarch64-linux-android23-clang -DCMAKE_CXX_COMPILER=aarch64-linux-android23-clang++ -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_BUILD_TYPE=Release && \ cmake --build . --target codec2 -j && \ cp ../src/codec2.h codec2 CMake Warning at /home/hxg/download/android-ndk-r26b/build/cmake/android-legacy.toolchain.cmake:413 (message): An old version of CMake is being used that cannot automatically detect compiler attributes. Compiler identification is being bypassed. Some values may be wrong or missing. Update to CMake 3.19 or newer to use CMake's built-in compiler identification. Call Stack (most recent call first): /home/hxg/download/android-ndk-r26b/build/cmake/android.toolchain.cmake:54 (include) /usr/share/cmake-3.18/Modules/CMakeDetermineSystem.cmake:93 (include) CMakeLists.txt:15 (project)
-- Detecting C compiler ABI info CMake Warning at /home/hxg/download/android-ndk-r26b/build/cmake/android-legacy.toolchain.cmake:413 (message): An old version of CMake is being used that cannot automatically detect compiler attributes. Compiler identification is being bypassed. Some values may be wrong or missing. Update to CMake 3.19 or newer to use CMake's built-in compiler identification. Call Stack (most recent call first): /home/hxg/download/android-ndk-r26b/build/cmake/android.toolchain.cmake:54 (include) /home/hxg/download/project/baresip-studio/libbaresip-android/codec2/build/CMakeFiles/3.18.4/CMakeSystem.cmake:6 (include) /home/hxg/download/project/baresip-studio/libbaresip-android/codec2/build/CMakeFiles/CMakeTmp/CMakeLists.txt:2 (project)
-- Detecting C compiler ABI info - done -- Check for working C compiler: /home/hxg/download/android-ndk-r26b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang - skipped -- Detecting C compile features -- Detecting C compile features - done -- Found Git: /usr/bin/git (found version "2.30.2") -- Codec2 current git hash: 06d4c11 -- Performing Test COMPILER_SUPPORTS_GNU11 CMake Warning at /home/hxg/download/android-ndk-r26b/build/cmake/android-legacy.toolchain.cmake:413 (message): An old version of CMake is being used that cannot automatically detect compiler attributes. Compiler identification is being bypassed. Some values may be wrong or missing. Update to CMake 3.19 or newer to use CMake's built-in compiler identification. Call Stack (most recent call first): /home/hxg/download/android-ndk-r26b/build/cmake/android.toolchain.cmake:54 (include) /home/hxg/download/project/baresip-studio/libbaresip-android/codec2/build/CMakeFiles/3.18.4/CMakeSystem.cmake:6 (include) /home/hxg/download/project/baresip-studio/libbaresip-android/codec2/build/CMakeFiles/CMakeTmp/CMakeLists.txt:2 (project)
-- Performing Test COMPILER_SUPPORTS_GNU11 - Success -- Performing Test COMPILER_SUPPORTS_GNU99 CMake Warning at /home/hxg/download/android-ndk-r26b/build/cmake/android-legacy.toolchain.cmake:413 (message): An old version of CMake is being used that cannot automatically detect compiler attributes. Compiler identification is being bypassed. Some values may be wrong or missing. Update to CMake 3.19 or newer to use CMake's built-in compiler identification. Call Stack (most recent call first): /home/hxg/download/android-ndk-r26b/build/cmake/android.toolchain.cmake:54 (include) /home/hxg/download/project/baresip-studio/libbaresip-android/codec2/build/CMakeFiles/3.18.4/CMakeSystem.cmake:6 (include) /home/hxg/download/project/baresip-studio/libbaresip-android/codec2/build/CMakeFiles/CMakeTmp/CMakeLists.txt:2 (project)
-- Performing Test COMPILER_SUPPORTS_GNU99 - Success -- Looking for include file stdlib.h CMake Warning at /home/hxg/download/android-ndk-r26b/build/cmake/android-legacy.toolchain.cmake:413 (message): An old version of CMake is being used that cannot automatically detect compiler attributes. Compiler identification is being bypassed. Some values may be wrong or missing. Update to CMake 3.19 or newer to use CMake's built-in compiler identification. Call Stack (most recent call first): /home/hxg/download/android-ndk-r26b/build/cmake/android.toolchain.cmake:54 (include) /home/hxg/download/project/baresip-studio/libbaresip-android/codec2/build/CMakeFiles/3.18.4/CMakeSystem.cmake:6 (include) /home/hxg/download/project/baresip-studio/libbaresip-android/codec2/build/CMakeFiles/CMakeTmp/CMakeLists.txt:2 (project)
-- Looking for include file stdlib.h - found -- Looking for include file string.h CMake Warning at /home/hxg/download/android-ndk-r26b/build/cmake/android-legacy.toolchain.cmake:413 (message): An old version of CMake is being used that cannot automatically detect compiler attributes. Compiler identification is being bypassed. Some values may be wrong or missing. Update to CMake 3.19 or newer to use CMake's built-in compiler identification. Call Stack (most recent call first): /home/hxg/download/android-ndk-r26b/build/cmake/android.toolchain.cmake:54 (include) /home/hxg/download/project/baresip-studio/libbaresip-android/codec2/build/CMakeFiles/3.18.4/CMakeSystem.cmake:6 (include) /home/hxg/download/project/baresip-studio/libbaresip-android/codec2/build/CMakeFiles/CMakeTmp/CMakeLists.txt:2 (project)
-- Looking for include file string.h - found -- Looking for __GNU_LIBRARY__ CMake Warning at /home/hxg/download/android-ndk-r26b/build/cmake/android-legacy.toolchain.cmake:413 (message): An old version of CMake is being used that cannot automatically detect compiler attributes. Compiler identification is being bypassed. Some values may be wrong or missing. Update to CMake 3.19 or newer to use CMake's built-in compiler identification. Call Stack (most recent call first): /home/hxg/download/android-ndk-r26b/build/cmake/android.toolchain.cmake:54 (include) /home/hxg/download/project/baresip-studio/libbaresip-android/codec2/build/CMakeFiles/3.18.4/CMakeSystem.cmake:6 (include) /home/hxg/download/project/baresip-studio/libbaresip-android/codec2/build/CMakeFiles/CMakeTmp/CMakeLists.txt:2 (project)
-- Looking for __GNU_LIBRARY__ - not found -- Looking for _GNU_SOURCE CMake Warning at /home/hxg/download/android-ndk-r26b/build/cmake/android-legacy.toolchain.cmake:413 (message): An old version of CMake is being used that cannot automatically detect compiler attributes. Compiler identification is being bypassed. Some values may be wrong or missing. Update to CMake 3.19 or newer to use CMake's built-in compiler identification. Call Stack (most recent call first): /home/hxg/download/android-ndk-r26b/build/cmake/android.toolchain.cmake:54 (include) /home/hxg/download/project/baresip-studio/libbaresip-android/codec2/build/CMakeFiles/3.18.4/CMakeSystem.cmake:6 (include) /home/hxg/download/project/baresip-studio/libbaresip-android/codec2/build/CMakeFiles/CMakeTmp/CMakeLists.txt:2 (project)
-- Looking for _GNU_SOURCE - not found -- Looking for floor CMake Warning at /home/hxg/download/android-ndk-r26b/build/cmake/android-legacy.toolchain.cmake:413 (message): An old version of CMake is being used that cannot automatically detect compiler attributes. Compiler identification is being bypassed. Some values may be wrong or missing. Update to CMake 3.19 or newer to use CMake's built-in compiler identification. Call Stack (most recent call first): /home/hxg/download/android-ndk-r26b/build/cmake/android.toolchain.cmake:54 (include) /home/hxg/download/project/baresip-studio/libbaresip-android/codec2/build/CMakeFiles/3.18.4/CMakeSystem.cmake:6 (include) /home/hxg/download/project/baresip-studio/libbaresip-android/codec2/build/CMakeFiles/CMakeTmp/CMakeLists.txt:2 (project)
-- Looking for floor - found -- Looking for ceil CMake Warning at /home/hxg/download/android-ndk-r26b/build/cmake/android-legacy.toolchain.cmake:413 (message): An old version of CMake is being used that cannot automatically detect compiler attributes. Compiler identification is being bypassed. Some values may be wrong or missing. Update to CMake 3.19 or newer to use CMake's built-in compiler identification. Call Stack (most recent call first): /home/hxg/download/android-ndk-r26b/build/cmake/android.toolchain.cmake:54 (include) /home/hxg/download/project/baresip-studio/libbaresip-android/codec2/build/CMakeFiles/3.18.4/CMakeSystem.cmake:6 (include) /home/hxg/download/project/baresip-studio/libbaresip-android/codec2/build/CMakeFiles/CMakeTmp/CMakeLists.txt:2 (project)
-- Looking for ceil - found -- Looking for pow CMake Warning at /home/hxg/download/android-ndk-r26b/build/cmake/android-legacy.toolchain.cmake:413 (message): An old version of CMake is being used that cannot automatically detect compiler attributes. Compiler identification is being bypassed. Some values may be wrong or missing. Update to CMake 3.19 or newer to use CMake's built-in compiler identification. Call Stack (most recent call first): /home/hxg/download/android-ndk-r26b/build/cmake/android.toolchain.cmake:54 (include) /home/hxg/download/project/baresip-studio/libbaresip-android/codec2/build/CMakeFiles/3.18.4/CMakeSystem.cmake:6 (include) /home/hxg/download/project/baresip-studio/libbaresip-android/codec2/build/CMakeFiles/CMakeTmp/CMakeLists.txt:2 (project)
-- Looking for pow - found -- Looking for sqrt CMake Warning at /home/hxg/download/android-ndk-r26b/build/cmake/android-legacy.toolchain.cmake:413 (message): An old version of CMake is being used that cannot automatically detect compiler attributes. Compiler identification is being bypassed. Some values may be wrong or missing. Update to CMake 3.19 or newer to use CMake's built-in compiler identification. Call Stack (most recent call first): /home/hxg/download/android-ndk-r26b/build/cmake/android.toolchain.cmake:54 (include) /home/hxg/download/project/baresip-studio/libbaresip-android/codec2/build/CMakeFiles/3.18.4/CMakeSystem.cmake:6 (include) /home/hxg/download/project/baresip-studio/libbaresip-android/codec2/build/CMakeFiles/CMakeTmp/CMakeLists.txt:2 (project)
-- Looking for sqrt - found -- Looking for sin CMake Warning at /home/hxg/download/android-ndk-r26b/build/cmake/android-legacy.toolchain.cmake:413 (message): An old version of CMake is being used that cannot automatically detect compiler attributes. Compiler identification is being bypassed. Some values may be wrong or missing. Update to CMake 3.19 or newer to use CMake's built-in compiler identification. Call Stack (most recent call first): /home/hxg/download/android-ndk-r26b/build/cmake/android.toolchain.cmake:54 (include) /home/hxg/download/project/baresip-studio/libbaresip-android/codec2/build/CMakeFiles/3.18.4/CMakeSystem.cmake:6 (include) /home/hxg/download/project/baresip-studio/libbaresip-android/codec2/build/CMakeFiles/CMakeTmp/CMakeLists.txt:2 (project)
-- Looking for sin - found -- Looking for cos CMake Warning at /home/hxg/download/android-ndk-r26b/build/cmake/android-legacy.toolchain.cmake:413 (message): An old version of CMake is being used that cannot automatically detect compiler attributes. Compiler identification is being bypassed. Some values may be wrong or missing. Update to CMake 3.19 or newer to use CMake's built-in compiler identification. Call Stack (most recent call first): /home/hxg/download/android-ndk-r26b/build/cmake/android.toolchain.cmake:54 (include) /home/hxg/download/project/baresip-studio/libbaresip-android/codec2/build/CMakeFiles/3.18.4/CMakeSystem.cmake:6 (include) /home/hxg/download/project/baresip-studio/libbaresip-android/codec2/build/CMakeFiles/CMakeTmp/CMakeLists.txt:2 (project)
-- Looking for cos - found -- Looking for atan2 CMake Warning at /home/hxg/download/android-ndk-r26b/build/cmake/android-legacy.toolchain.cmake:413 (message): An old version of CMake is being used that cannot automatically detect compiler attributes. Compiler identification is being bypassed. Some values may be wrong or missing. Update to CMake 3.19 or newer to use CMake's built-in compiler identification. Call Stack (most recent call first): /home/hxg/download/android-ndk-r26b/build/cmake/android.toolchain.cmake:54 (include) /home/hxg/download/project/baresip-studio/libbaresip-android/codec2/build/CMakeFiles/3.18.4/CMakeSystem.cmake:6 (include) /home/hxg/download/project/baresip-studio/libbaresip-android/codec2/build/CMakeFiles/CMakeTmp/CMakeLists.txt:2 (project)
-- Looking for atan2 - found -- Looking for log10 CMake Warning at /home/hxg/download/android-ndk-r26b/build/cmake/android-legacy.toolchain.cmake:413 (message): An old version of CMake is being used that cannot automatically detect compiler attributes. Compiler identification is being bypassed. Some values may be wrong or missing. Update to CMake 3.19 or newer to use CMake's built-in compiler identification. Call Stack (most recent call first): /home/hxg/download/android-ndk-r26b/build/cmake/android.toolchain.cmake:54 (include) /home/hxg/download/project/baresip-studio/libbaresip-android/codec2/build/CMakeFiles/3.18.4/CMakeSystem.cmake:6 (include) /home/hxg/download/project/baresip-studio/libbaresip-android/codec2/build/CMakeFiles/CMakeTmp/CMakeLists.txt:2 (project)
-- Looking for log10 - found -- Looking for round CMake Warning at /home/hxg/download/android-ndk-r26b/build/cmake/android-legacy.toolchain.cmake:413 (message): An old version of CMake is being used that cannot automatically detect compiler attributes. Compiler identification is being bypassed. Some values may be wrong or missing. Update to CMake 3.19 or newer to use CMake's built-in compiler identification. Call Stack (most recent call first): /home/hxg/download/android-ndk-r26b/build/cmake/android.toolchain.cmake:54 (include) /home/hxg/download/project/baresip-studio/libbaresip-android/codec2/build/CMakeFiles/3.18.4/CMakeSystem.cmake:6 (include) /home/hxg/download/project/baresip-studio/libbaresip-android/codec2/build/CMakeFiles/CMakeTmp/CMakeLists.txt:2 (project)
-- Looking for round - found -- Looking for getopt CMake Warning at /home/hxg/download/android-ndk-r26b/build/cmake/android-legacy.toolchain.cmake:413 (message): An old version of CMake is being used that cannot automatically detect compiler attributes. Compiler identification is being bypassed. Some values may be wrong or missing. Update to CMake 3.19 or newer to use CMake's built-in compiler identification. Call Stack (most recent call first): /home/hxg/download/android-ndk-r26b/build/cmake/android.toolchain.cmake:54 (include) /home/hxg/download/project/baresip-studio/libbaresip-android/codec2/build/CMakeFiles/3.18.4/CMakeSystem.cmake:6 (include) /home/hxg/download/project/baresip-studio/libbaresip-android/codec2/build/CMakeFiles/CMakeTmp/CMakeLists.txt:2 (project)
-- Looking for getopt - found -- codec2 version: 1.2.0 -- Build type is: Release -- Compiler Flags: -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -Wall -Wno-strict-overflow -std=gnu11 -fPIC-O3 -- Libraries linked: -- Compilation date = XX2023-12-14XX -- Configuring done You have changed variables that require your cache to be deleted. Configure will be re-run and you may have to reset some variables. The following variables have changed: CMAKE_C_COMPILER= aarch64-linux-android23-clang
-- The C compiler identification is Clang 17.0.2 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /home/hxg/download/android-ndk-r26b/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android23-clang - skipped -- Detecting C compile features -- Detecting C compile features - done -- Found Git: /usr/bin/git (found version "2.30.2") -- Codec2 current git hash: 06d4c11 -- Performing Test COMPILER_SUPPORTS_GNU11 -- Performing Test COMPILER_SUPPORTS_GNU11 - Success -- Performing Test COMPILER_SUPPORTS_GNU99 -- Performing Test COMPILER_SUPPORTS_GNU99 - Success -- Looking for include file stdlib.h -- Looking for include file stdlib.h - found -- Looking for include file string.h -- Looking for include file string.h - found -- Looking for GNU_LIBRARY -- Looking for GNU_LIBRARY - not found -- Looking for _GNU_SOURCE -- Looking for _GNU_SOURCE - not found -- Looking for floor -- Looking for floor - not found -- Looking for ceil -- Looking for ceil - not found -- Looking for pow -- Looking for pow - not found -- Looking for sqrt -- Looking for sqrt - not found -- Looking for sin -- Looking for sin - not found -- Looking for cos -- Looking for cos - not found -- Looking for atan2 -- Looking for atan2 - not found -- Looking for log10 -- Looking for log10 - not found -- Looking for round -- Looking for round - not found -- Looking for getopt -- Looking for getopt - found -- codec2 version: 1.2.0 -- Build type is: Debug -- Compiler Flags: -Wall -Wno-strict-overflow -std=gnu11 -fPIC-g -O2 -DDUMP -- Libraries linked: -- Compilation date = XX2023-12-14XX -- Configuring done -- Generating done -- Build files have been written to: /home/hxg/download/project/baresip-studio/libbaresip-android/codec2/build gmake[1]: Entering directory '/home/hxg/download/project/baresip-studio/libbaresip-android/codec2/build' gmake[2]: Entering directory '/home/hxg/download/project/baresip-studio/libbaresip-android/codec2/build' gmake[3]: Entering directory '/home/hxg/download/project/baresip-studio/libbaresip-android/codec2/build' gmake[4]: Entering directory '/home/hxg/download/project/baresip-studio/libbaresip-android/codec2/build' Scanning dependencies of target generate_codebook gmake[4]: Leaving directory '/home/hxg/download/project/baresip-studio/libbaresip-android/codec2/build' gmake[4]: Entering directory '/home/hxg/download/project/baresip-studio/libbaresip-android/codec2/build' [ 2%] Building C object src/CMakeFiles/generate_codebook.dir/generate_codebook.c.o [ 2%] Linking C executable generate_codebook gmake[4]: Leaving directory '/home/hxg/download/project/baresip-studio/libbaresip-android/codec2/build' [ 2%] Built target generate_codebook gmake[4]: Entering directory '/home/hxg/download/project/baresip-studio/libbaresip-android/codec2/build' [ 5%] Generating codebooknewamp2_energy.c [ 7%] Generating codebook.c [ 10%] Generating codebookd.c [ 12%] Generating codebookjmv.c [ 12%] Generating codebooknewamp1_energy.c [ 15%] Generating codebookge.c [ 15%] Generating codebooknewamp1.c [ 15%] Generating codebooknewamp2.c /bin/sh: 1: ./generate_codebook: Exec format error /bin/sh: 1: ./generate_codebook: Exec format error /bin/sh: 1: ./generate_codebook: Exec format error /bin/sh: 1: ./generate_codebook: Exec format error gmake[4]: [src/CMakeFiles/codec2.dir/build.make:138: src/codebooknewamp2_energy.c] Error 126 gmake[4]: Deleting file 'src/codebooknewamp2_energy.c' gmake[4]: Waiting for unfinished jobs.... gmake[4]: [src/CMakeFiles/codec2.dir/build.make:91: src/codebook.c] Error 126 gmake[4]: Deleting file 'src/codebook.c' gmake[4]: [src/CMakeFiles/codec2.dir/build.make:105: src/codebookd.c] Error 126 gmake[4]: Deleting file 'src/codebookd.c' gmake[4]: [src/CMakeFiles/codec2.dir/build.make:112: src/codebookjmv.c] Error 126 gmake[4]: Deleting file 'src/codebookjmv.c' /bin/sh: 1: ./generate_codebook: Exec format error gmake[4]: [src/CMakeFiles/codec2.dir/build.make:123: src/codebooknewamp1.c] Error 126 gmake[4]: Deleting file 'src/codebooknewamp1.c' /bin/sh: 1: ./generate_codebook: Exec format error gmake[4]: [src/CMakeFiles/codec2.dir/build.make:117: src/codebookge.c] Error 126 gmake[4]: Deleting file 'src/codebookge.c' /bin/sh: 1: ./generate_codebook: Exec format error gmake[4]: [src/CMakeFiles/codec2.dir/build.make:128: src/codebooknewamp1_energy.c] Error 126 gmake[4]: Deleting file 'src/codebooknewamp1_energy.c' /bin/sh: 1: ./generate_codebook: Exec format error gmake[4]: [src/CMakeFiles/codec2.dir/build.make:133: src/codebooknewamp2.c] Error 126 gmake[4]: Deleting file 'src/codebooknewamp2.c' gmake[4]: Leaving directory '/home/hxg/download/project/baresip-studio/libbaresip-android/codec2/build' gmake[3]: [CMakeFiles/Makefile2:571: src/CMakeFiles/codec2.dir/all] Error 2 gmake[3]: Leaving directory '/home/hxg/download/project/baresip-studio/libbaresip-android/codec2/build' gmake[2]: [CMakeFiles/Makefile2:579: src/CMakeFiles/codec2.dir/rule] Error 2 gmake[2]: Leaving directory '/home/hxg/download/project/baresip-studio/libbaresip-android/codec2/build' gmake[1]: [Makefile:374: codec2] Error 2 gmake[1]: Leaving directory '/home/hxg/download/project/baresip-studio/libbaresip-android/codec2/build' make: *** [Makefile:272: codec2] Error 2
ONiKiDSK writes:
cmake --build . --target codec2 -j && \ cp ../src/codec2.h codec2 CMake Warning at /home/hxg/download/android-ndk-r26b/build/cmake/android-legacy.toolchain.cmake:413 (message): An old version of CMake is being used that cannot automatically detect compiler attributes. Compiler identification is being bypassed. Some values may be wrong or missing. Update to CMake 3.19 or newer to use CMake's built-in compiler identification.
I don't get this:
cmake --build . --target codec2 -j && \ cp ../src/codec2.h codec2 -- The C compiler identification is Clang 14.0.7 -- Detecting C compiler ABI info ...
Do you have Debian 12 installed on your host?
I used Debian 11(debian-live-11.6.0-amd64-cinnamon+nonfree),should I try with Debian 12?
ONiKiDSK writes:
I used Debian11(debian-live-11.6.0-amd64-cinnamon+nonfree)
Perhaps its cmake is too old. There is no build problems with my Debian 12 nor with F-Droid.
I try with Debian 12 and heigher Cmake ,and it worked,thank you.
Follow the steps exactly(Debian-11,ndk-r25b,cmake-3.22.1),how should I handle this?thank you.