我想在android studio中导入tess-two库,并在编译后在ndk build中显示错误.我已经尝试在stackoverflow上给出解决方案.比如, 执行失败的任务':app:compileDebugNdk' 但它没有解决我的问题.请建议我在哪里做错了.
它显示以下错误:
Error:error: undefined reference to 'isnanf'
Error:error: undefined reference to '__isinff'
Error:error: undefined reference to 'isnanf'
[arm64-v8a] Install : libtess.so => libs/arm64-v8a/libtess.so
Error:error: undefined reference to 'isnanf'
Error:error: undefined reference to '__isinff'
Error:error: undefined reference to 'isnanf'
[x86_64] Install : libjpgt.so => libs/x86_64/libjpgt.so
Error:error: linker command failed with exit code 1 (use -v to see invocation)
Error:error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [obj/local/armeabi-v7a/libtess.so] Error 1
make: …Run Code Online (Sandbox Code Playgroud) 我需要在android app中的sqlite3中添加一个自定义函数来计算两个地理坐标之间的距离.我找到了一个c函数,可以在sqlite3中添加为自定义函数.
我正在使用NDK编译sqlite3文件来创建.so文件.但是我不知道在哪里为我的自定义函数添加代码,也写在C哪里调用sqlite3_create_function(...)哪个用sqlite附加自定义函数,所以我可以在sqlite查询中使用我的自定义函数.