NDK编译报错 undefined reference to 'vtable for
16lz
2021-01-23
jni/FaceDetection/include/classifier.h:49: error: undefined reference to 'vtable for seeta::fd::SURFMLP'D:/android/android-ndk-r10/toolchains/arm-linux-androideabi-4.8/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld.exe: the vtable symbol may be undefined because the class is missing its key functionjni/FaceDetection/src/fust.cpp:272: error: undefined reference to 'vtable for seeta::fd::LABBoostModelReader'D:/android/android-ndk-r10/toolchains/arm-linux-androideabi-4.8/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld.exe: the vtable symbol may be undefined because the class is missing its key functionjni/FaceDetection/src/fust.cpp:272: error: undefined reference to 'vtable for seeta::fd::SURFMLPModelReader'D:/android/android-ndk-r10/toolchains/arm-linux-androideabi-4.8/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld.exe: the vtable symbol may be undefined because the class is missing its key functionjni/FaceDetection/src/fust.cpp:288: error: undefined reference to 'vtable for seeta::fd::LABBoostedClassifier'D:/android/android-ndk-r10/toolchains/arm-linux-androideabi-4.8/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld.exe: the vtable symbol may be undefined because the class is missing its key functionjni/FaceDetection/src/fust.cpp:304: error: undefined reference to 'vtable for seeta::fd::LABFeatureMap'D:/android/android-ndk-r10/toolchains/arm-linux-androideabi-4.8/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld.exe: the vtable symbol may be undefined because the class is missing its key functionjni/FaceDetection/src/fust.cpp:170: error: undefined reference to 'seeta::fd::NonMaximumSuppression(std::vector >*, std::vector >*, float)'jni/FaceDetection/src/fust.cpp:241: error: undefined reference to 'seeta::fd::NonMaximumSuppression(std::vector >*, std::vector >*, float)'collect2.exe: error: ld returned 1 exit statusmake.exe: *** [obj/local/armeabi/libSeetafaceSo.so] Error 1
解决问题: 在android.mk中加入 LOCAL_ALLOW_UNDEFINED_SYMBOLS := true
鸣谢:http://blog.sina.com.cn/s/blog_5be1061c0100ykim.html
更多相关文章
- 代码中设置drawableleft
- android 3.0 隐藏 系统标题栏
- Android开发中activity切换动画的实现
- Android(安卓)学习 笔记_05. 文件下载
- Android中直播视频技术探究之—摄像头Camera视频源数据采集解析
- 技术博客汇总
- android 2.3 wifi (一)
- AndRoid Notification的清空和修改
- Android中的Chronometer