The issue about compiling frameworks/opt/cmdjni is: undefined reference to '__android_log_print'.

This error message is produced when make a clean build, then stops building.

The reason is __android_log_print requires NDK build environment, where liblog is already created. However we are under the android source build environment with a clean building, the liblog is not created yet!

Solution is we build the liblog and libutils manually before cmdjni!

Step1: make liblog
Step2: make libutils
Step3: cd frameworks/opt/cmdjni; mm.  OR simply make

Reference:
http://mobile.51cto.com/android-267538_2.htm
http://www.2cto.com/kf/201303/195855.html

There should be better solution to support the clean building automatically.

相关文章:

  • 2021-04-15
  • 2021-07-21
  • 2021-11-21
  • 2021-08-29
  • 2021-07-25
  • 2021-12-24
  • 2021-07-13
猜你喜欢
  • 2021-12-08
  • 2022-12-23
  • 2022-02-28
  • 2021-09-02
  • 2022-01-09
相关资源
相似解决方案