Go QML using WebView to solve qsslsocket problems

Source: Internet
Author: User
Tags install openssl openssl openssl library win32


Use WebView in QML, click No effect during run, and prompt for the following error,

Qsslsocket:cannot Call unresolved function Sslv23_client_method

Qsslsocket:cannot Call unresolved function ssl_ctx_new

Qsslsocket:cannot Call unresolved function ssl_library_init

Qsslsocket:cannot Call unresolved function err_get_error

By reference, in http://codeblog.vurdalakov.net/2009/11/solution-qsslsocket-cannot-call.html

There's a solution to this, and the test solves the problem.

The steps are as follows:

You need to install OpenSSL Win32 or Win64 binaries.

You need to install the OpenSSL library;

1. Open Win32 OpenSSL Installation Project page.

First open the OpenSSL installation project webpage;


2, Download the latest "light" Win32 or Win64 installation package, for example "Win32 OpenSSL v0.9.8l Light".

Download the installation package, I downloaded: Win32 OpenSSL v1.0.1c Light installation package, as time progresses, this version will be constantly updated.


3, Install it to any location. Ignore "Microsoft Visual C + + redistributables" Warning (click OK) and select copying OpenSSL DLLs to "the OpenSSL bin Aries (\ Bin) directory.

Install (EXE file) to local, I was installed under the C drive, and during the installation process choose to install the library under the installation directory of OpenSSL (/bin).


4. Copy Libeay32.dll and Ssleay32.dll from the \ Bin folder to the same place where your QtNetwork4.dll or QtNetworkd4.dll i s located.

Copy the Libeay32.dll and Ssleay32.dll files to qtsdk in the file directory where QtNetwork4.dll and QtNetworkd4.dll are stored. Mine is.

C:\QtSDK\Desktop\Qt\4.8.0\mingw\bin, this is mainly to see their own choice of compiler also may be C:\QtSDK\Desktop\Qt\4.8.0\msvc2010\bin and so on.

After the above 4 steps to solve the problem. Good, thanks to the original author's share.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.