Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. Chinese
  4. Qt5.1.0 重新编译选项 -openssl-linked 有人用过吗,怎么弄?
Forum Updated to NodeBB v4.3 + New Features

Qt5.1.0 重新编译选项 -openssl-linked 有人用过吗,怎么弄?

Scheduled Pinned Locked Moved Chinese
3 Posts 2 Posters 5.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    lijun_ay
    wrote on last edited by
    #1

    如题

    1 Reply Last reply
    0
    • L Offline
      L Offline
      lijun_ay
      wrote on last edited by
      #2

      自己回答一下吧,
      从其他网站上下载的编译好的OpenSSL不好用,只好下载源码自己编译。
      Qt的Wiki中有说明
      http://qt-project.org/wiki/Compiling-OpenSSL-with-MinGW
      按照这个操作,就能正确编译了。
      :-D

      1 Reply Last reply
      0
      • J Offline
        J Offline
        jiangcaiyang
        wrote on last edited by
        #3

        我试过几种方法。
        使用-openssl-linked的话,会在编译器确定openssl的依赖关系,而不是在运行期解析OpenSSL动态库的函数。但其实还是需要依赖libeay.dll和ssleay.dll的。

        所以到www.openssl.org下载源码,不要下载OpenSSL-Win32,自己编译OpenSSL。这里还有一些麻烦导致链接错误就不说了。

        其实还是觉得TDM-MinGW比MinGW好用,因为它默认是静态编译的。

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved