android S compile not use local path tool

83 views
Skip to first unread message

梁栋

unread,
Dec 9, 2021, 6:55:03 PM12/9/21
to Android Building
when i compile with  android S code ,  found an error like this :
"cmake" is not allowed to be used. See https://android.googlesource.com/platform/build/+/master/Changes.md#PATH_Tools for more information.

so , i  delivery cmake to    " tools/cmake/cmake-3.20.5/"  dir ,and  change to use "tools/cmake/cmake-3.20.5/bin/cmake"   ,  but  found another error: 
   " 
    clang-12: error: unable to execute command: Executable "ld" doesn't exist!
    clang-12: error: linker command failed with exit code 1 (use -v to see invocation) 
     "

I  found that , soong path is  not allow gcc\ld etc ,  :
123.bmp


how  could i  fix  this  error ?  tks .
Reply all
Reply to author
Forward
0 new messages