无法在Qt Creator中使用openssl的es文件 [英] unable to use aes files of openssl in qt creator
问题描述
我试图在Qt4 Creator中包括一个AES头文件#include <openssl/aes.h>
,但同时将其给定错误编译为 openssl/aes.h: No such file or directory
.请告诉我如何将其包含到此文件中,以便我可以在程序中使用AES函数?
I am trying to include AES header file an #include <openssl/aes.h>
in Qt4 Creator but while compiling its giving error as openssl/aes.h: No such file or directory
. Please tell me how to include to this file so that I can use AES functions in my program?
推荐答案
如果在Linux上,请将以下内容添加到您的.pro
文件中:
If this is on Linux, add the following into your .pro
file:
PKGCONFIG += openssl
它将处理所有必需的头文件路径,编译链接器选项和库.
It will handle all necessary header paths, compile-linker options and the libraries.
并确保已在系统中安装openssl-devel
软件包.
And make sure you have the openssl-devel
package installed in your system.
如果在Windows上,请参见上面的副本.
If this is on Windows, see the duplicate above.
这篇关于无法在Qt Creator中使用openssl的es文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!