<tfoot id='fGAcG'></tfoot>
    • <bdo id='fGAcG'></bdo><ul id='fGAcG'></ul>

      1. <i id='fGAcG'><tr id='fGAcG'><dt id='fGAcG'><q id='fGAcG'><span id='fGAcG'><b id='fGAcG'><form id='fGAcG'><ins id='fGAcG'></ins><ul id='fGAcG'></ul><sub id='fGAcG'></sub></form><legend id='fGAcG'></legend><bdo id='fGAcG'><pre id='fGAcG'><center id='fGAcG'></center></pre></bdo></b><th id='fGAcG'></th></span></q></dt></tr></i><div id='fGAcG'><tfoot id='fGAcG'></tfoot><dl id='fGAcG'><fieldset id='fGAcG'></fieldset></dl></div>
      2. <legend id='fGAcG'><style id='fGAcG'><dir id='fGAcG'><q id='fGAcG'></q></dir></style></legend>
      3. <small id='fGAcG'></small><noframes id='fGAcG'>

        如何在 Qt 中实现 OpenSSL?

        时间:2024-08-14

        • <legend id='TbJpu'><style id='TbJpu'><dir id='TbJpu'><q id='TbJpu'></q></dir></style></legend>
        • <tfoot id='TbJpu'></tfoot>
            <tbody id='TbJpu'></tbody>

              • <bdo id='TbJpu'></bdo><ul id='TbJpu'></ul>
                1. <small id='TbJpu'></small><noframes id='TbJpu'>

                2. <i id='TbJpu'><tr id='TbJpu'><dt id='TbJpu'><q id='TbJpu'><span id='TbJpu'><b id='TbJpu'><form id='TbJpu'><ins id='TbJpu'></ins><ul id='TbJpu'></ul><sub id='TbJpu'></sub></form><legend id='TbJpu'></legend><bdo id='TbJpu'><pre id='TbJpu'><center id='TbJpu'></center></pre></bdo></b><th id='TbJpu'></th></span></q></dt></tr></i><div id='TbJpu'><tfoot id='TbJpu'></tfoot><dl id='TbJpu'><fieldset id='TbJpu'></fieldset></dl></div>
                  本文介绍了如何在 Qt 中实现 OpenSSL?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  尝试在我的 Qt 项目中使用 OpenSSL,这是我的环境:

                  Trying to use OpenSSL in my Qt project, here is my environment:

                  • 操作系统:Win7 32 位
                  • Qt:Qt Creator 4.2.1 社区
                  • Qt 套件:Qt_5_8_0_MSVC2015_32bit2
                  • Openssl:Win32 OpenSSL v1.1.0e,下载形式本站

                  我试图在我的代码中include ,但是,当我添加#include 在我的 main.cpp 和构建中,Qt Creator 显示以下错误:D:QtProjectsdialogsfindfilesmain.cpp:50: error: C1083: 'openssl/evp.h':No such file or directory

                  I'm trying to include <openssl/evp.h> in my code, however, when I add #include <openssl/evp.h> in my main.cpp and build, Qt Creator shows the following error: D:QtProjectsdialogsfindfilesmain.cpp:50: error: C1083: 'openssl/evp.h':No such file or directory

                  我已经按照这个问题中的说明进行操作:如何包含Qt 项目中的 OpenSSL

                  I have already followed the instructions in this question: How to Include OpenSSL in a Qt project

                  我的 .pro 文件如下所示:

                  My .pro file looks like:

                  QT += widgets
                  
                  HEADERS       = window.h
                  SOURCES       = main.cpp 
                                  window.cpp
                  
                  # install
                  target.path = $$[QT_INSTALL_EXAMPLES]/widgets/dialogs/findfiles
                  INSTALLS += target
                  
                  # for openssl - I added these 2 lines
                  LIBS += -LC:/OpenSSL-Win32/lib -llibcrypto
                  INCLUDEPATH += C:/OpenSSL-Win32/include
                  

                  请帮我解决这个问题.

                  推荐答案

                  将此作为答案发布,因为我很确定我想通了.

                  Posting this as an answer because iam pretty sure i figured it out.

                  你必须在构建之前运行 Qmake,否则你的 pro 文件中的更改不会受到影响.由于 Qmake 正在将您的 pro 文件编译为 makefile

                  You have to run Qmake before building, otherwise changes in your pro File will not be affected. Since Qmake is compiling your pro File into a makefile

                  构建->运行 QMake

                  为我的 OpenSSL 库工作.

                  Worked for my OpenSSL library.

                  祝你好运!

                  这篇关于如何在 Qt 中实现 OpenSSL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:如何使用 OpenSSL C 库将 RSA 密钥从二进制数据加载到 RSA 结构? 下一篇:如何使用 Visual Studio 2017 在 Windows 上构建 OpenSSL?

                  相关文章

                      <small id='J7dki'></small><noframes id='J7dki'>

                    1. <tfoot id='J7dki'></tfoot>
                      <legend id='J7dki'><style id='J7dki'><dir id='J7dki'><q id='J7dki'></q></dir></style></legend>
                    2. <i id='J7dki'><tr id='J7dki'><dt id='J7dki'><q id='J7dki'><span id='J7dki'><b id='J7dki'><form id='J7dki'><ins id='J7dki'></ins><ul id='J7dki'></ul><sub id='J7dki'></sub></form><legend id='J7dki'></legend><bdo id='J7dki'><pre id='J7dki'><center id='J7dki'></center></pre></bdo></b><th id='J7dki'></th></span></q></dt></tr></i><div id='J7dki'><tfoot id='J7dki'></tfoot><dl id='J7dki'><fieldset id='J7dki'></fieldset></dl></div>
                      • <bdo id='J7dki'></bdo><ul id='J7dki'></ul>