-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
android studio cmake里同时加入opencv和ncnn后报错:use of typeid requires -frtti #3231
Comments
方案1:自行编译ncnn库,设置cmake选项 |
采用了方案1,并添加了
按照网上说的在build.gradle里添加“-fexceptions”也不行 我在APP的build.gradle里android的defaultConfig配置如下
cmake文件内容和上面的一样 |
|
可以了 谢谢nihui |
报的错误:
之前已经成功集成ncnn在项目里了,并且可以正常使用。
然后我想尝试其他模型,并且需要opencv,我就按照下面的cmake进行配置,但报了上面的错,我尝试cmake里加上这句
但也报相同的错误
cmake:
ndk: 21.3.65
android studio: 2020.3.1
请问这可能是什么问题,弄了很久
The text was updated successfully, but these errors were encountered: