“openssl / aes.h:没有这样的文件或目录”在Android下 [英] "openssl/aes.h: No such file or directory" under Android

查看:936
本文介绍了“openssl / aes.h:没有这样的文件或目录”在Android下的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想编译到android环境。因为这样,我得到以下错误:

 错误:openssl / aes.h:没有这样的文件或目录

我在堆栈中找到了一些解决方案,但是我没有得到如何结束进程以能够编译。



我已经编译了一个版本的 openssl 我应该添加libs?或者如何生成* .a?



你知道如何将这个库添加到 arm-linux-androideabi-g ++

[1] 获取openssl文件,以便我们能够解决这个问题。

[2] 如果您已经编译过openssl库然后在您的lib文件夹中添加 -lssl或-lopenssl 到您的命令行。


I'm trying to compile to android environment. And because of that I get the following error:

error: openssl/aes.h: No such file or directory

I find some solution in stack but, I don't get how to end the process to be able to compile.

I already compiled one version of openssl were should I add the libs? or how can I generate the *.a?

Do you know how can I add this library to the arm-linux-androideabi-g++ that I need to run to be able to pass this problem?

解决方案

[1] Get openssl library which has aes.h file in its include folder.

[2] If you have compiled openssl library in your lib folder then add to -lssl or -lopenssl to your command line.

这篇关于“openssl / aes.h:没有这样的文件或目录”在Android下的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆