无法找到 libcrypto.so 在 cygwin 中通过 android-ndk 构建库
我必须为使用本机 java 库的 android 应用程序构建库。当我运行推荐 (ndk-folder)/ndk-build
时,它会给出类似
haredLibrary : libSimpleService.so 的错误 /opt/android-ndk-r4b/build/prebuilt/linux-x86/arm-eabi-4.4.0/bin/../lib/gcc/arm-eabi/4.4.0/../../.. /../arm-eabi/bin/ld:搜索 -lcrypto 时跳过不兼容的 ../../../lib/libcrypto.a /opt/android-ndk-r4b/build/prebuilt/linux-x86/arm-eabi-4.4.0/bin/../lib/gcc/arm-eabi/4.4.0/../../.. /../arm-eabi/bin/ld: 找不到-lcrypto Collect2: ld 返回 1 退出状态 make: *** [/opt/alljoyn-sdk-2-0-0/alljoyn_2_0_0_rel/samples/simple/service/obj/local/armeabi/libSimpleService.so]
我想原因是因为我应该使用“libcrypto.so”,因为它实际上是一个 Alljoyn 项目。但我找不到它。我尝试 adb 从我的手机(华为 ideox x5)中提取它,但每当我尝试它时它都会显示“未找到设备”(我还没有 root 手机),而且我也看不到手机中的文件。 有谁有解决办法吗?? 干杯, 费纳
I have to build library for my android application which uses native java libraries. When I run the commend (ndk-folder)/ndk-build
it gives an error like
haredLibrary : libSimpleService.so
/opt/android-ndk-r4b/build/prebuilt/linux-x86/arm-eabi-4.4.0/bin/../lib/gcc/arm-eabi/4.4.0/../../../../arm-eabi/bin/ld: skipping incompatible ../../../lib/libcrypto.a when searching for -lcrypto
/opt/android-ndk-r4b/build/prebuilt/linux-x86/arm-eabi-4.4.0/bin/../lib/gcc/arm-eabi/4.4.0/../../../../arm-eabi/bin/ld: cannot find -lcrypto
collect2: ld returned 1 exit status
make: *** [/opt/alljoyn-sdk-2-0-0/alljoyn_2_0_0_rel/samples/simple/service/obj/local/armeabi/libSimpleService.so]
I guess the reason is due to fact that I should use "libcrypto.so", because it is an Alljoyn project actually. but i cannot find it. I tried adb pull it from my phone (Huawei ideox x5) but it says "device not found" whenever i try it (i havent rooted the phone yet), and i cant see the file in the phone either.
Anybody who has a solution??
Cheers,
Fena
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Alljoyn 还需要 libssl.so,它们都位于 /system/lib/。
所以你必须使用有root权限的手机。
Alljoyn also need libssl.so which are both located at /system/lib/.
So you have to use a rooted moblie phone.
这是学习 Android NDK 项目的最佳链接
http://mindtherobot.com/blog/452/ android-beginners-ndk-setup-step-by-step/
我希望你能找到解决方案
This is best link for learning Android NDK projects
http://mindtherobot.com/blog/452/android-beginners-ndk-setup-step-by-step/
i hope you got a solution for this