13 years C/C++/C# programing, focus on embedded and mobile device development.

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

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.

posted on 2014-05-14 13:16  woaiusd  阅读(1167)  评论(0编辑  收藏  举报