OpenCV项目未构建。

huangapple go评论117阅读模式
英文:

open CV project not build

问题

构建命令失败。
执行进程 C:\Users\admin\AppData\Local\Android\Sdk\cmake\3.10.2.4988404\bin\ninja.exe 时出错,参数为 {-C D:\Raju\company project\bobomusu\bobomusu\android\app.cxx\cmake\debug\armeabi-v7a my-native-lib}
ninja: 进入目录 `D:\Raju\company project\bobomusu\bobomusu\android\app.cxx\cmake\debug\armeabi-v7a'
ninja: 错误: 'Libraries/libopennurbs_public.a',在 'D:/Raju/company project/bobomusu/bobomusu/android/app/build/intermediates/cmake/debug/obj/armeabi-v7a/libmy-native-lib.so' 所需,但没有已知的规则来生成它。

英文:
Build command failed.
Error while executing process C:\Users\admin\AppData\Local\Android\Sdk\cmake.10.2.4988404\bin\ninja.exe with arguments {-C D:\Raju\company project\bobomusu\bobomusu\android\app\.cxx\cmake\debug\armeabi-v7a my-native-lib}
ninja: Entering directory `D:\Raju\company project\bobomusu\bobomusu\android\app\.cxx\cmake\debug\armeabi-v7a'

ninja: error: 'Libraries/libopennurbs_public.a', needed by 'D:/Raju/company project/bobomusu/bobomusu/android/app/build/intermediates/cmake/debug/obj/armeabi-v7a/libmy-native-lib.so', missing and no known rule to make it

答案1

得分: 1

将项目的API级别更改为21,在build.gradle中,然后删除项目中的build目录,然后重新构建项目。

英文:

Change your project api level to 21 in build.gradle then delete build directory from project and rebuild again the project

huangapple
  • 本文由 发表于 2020年1月6日 19:03:58
  • 转载请务必保留本文链接:https://go.coder-hub.com/59610940.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定