nmeum / android-tools

Unoffical CMake-based build system for android command line utilities
Apache License 2.0
176 stars 51 forks source link

build error debian11 #130

Closed legale closed 6 months ago

legale commented 7 months ago

host system: Linux radar-prod1 6.5.0-4-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.5.10-1 (2023-11-03) x86_64 GNU/Linux

unable to apply patches.

git clone https://github.com/nmeum/android-tools cd android-tools mkdir build && cd build cmake ..

(myenv) ruslan@radar-prod1:/sda/android-tools/android-tools/build$ cmake ..
-- The C compiler identification is GNU 13.2.0
-- The CXX compiler identification is GNU 13.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Applying patches for: adb
error: pairing_auth/include/adb/pairing/pairing_auth.h: does not exist in index
error: pairing_connection/include/adb/pairing/pairing_connection.h: does not exist in index
error: pairing_connection/include/adb/pairing/pairing_server.h: does not exist in index
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Applying: Don't use the internal glibc header sys/cdefs.h
Patch failed at 0001 Don't use the internal glibc header sys/cdefs.h
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".
CMake Error at vendor/CMakeLists.txt:58 (message):
  Couldn't apply patches for adb

-- Configuring incomplete, errors occurred!
(myenv) ruslan@radar-prod1:/sda/android-tools/android-tools/build$
Biswa96 commented 7 months ago

You have to clone the submodules also.

git clone --depth=1 https://github.com/nmeum/android-tools
cd android-tools
git submodule update --init --depth=1