解决Error: undefined reference to `__android_log_print'
生活随笔
收集整理的這篇文章主要介紹了
解决Error: undefined reference to `__android_log_print'
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
解決Error: undefined reference to `__android_log_print'
? ? 最近在使用Android Studio進(jìn)行NDK開發(fā)時,程序本身是沒有問題,但一旦添加了Android的NDK調(diào)試信息,就報如下的錯:? ?在舊的Android Studio版本中,一般是在build.gradle中修改,但新版本了換為了CMakeLists.txt:需要這樣修改:即新增“l(fā)og-lib”find_library( # Sets the name of the path variable.log-lib# Specifies the name of the NDK library that# you want CMake to locate.log )target_link_libraries( # Specifies the target library.imagePro-lib# Links the target library to the log library# included in the NDK.${log-lib} )
總結(jié)
以上是生活随笔為你收集整理的解决Error: undefined reference to `__android_log_print'的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 图像中某点绕点旋转后的坐标,图像旋转坐标
- 下一篇: OpenCV android sdk配置