0
votes

I'm currently struggling with a Qt app. I'm trying to download some files from Google Drive using QNetworkManager, QNetworkRequest and QNetworkReply.

First of all, my app works fine on a few computers (4 or 5 people tested it and didn't encounter any error). Each file which must be downloaded is effectively downloaded. (About 280 files are downloaded each time this way, and there is no problem.)

The issue is a member of my work team has only 0-byte files. Every single file which is downloaded over SSL doesn't have any content. The only one download on classic HTTP is correctly donwloaded.

Have you ever seen this bug?

All my "download" code comes from this single tutorial.

Edit : After a few tests, we found that the error was Error creating SSL context (). Thus, we tried to solve it by installing both needed libraries (ssleay32.dll and libeay32.dll) on the computer but it didn't work. Do you know if it needs some other libraries?

1
Your example might be good enough for diagnosing (I don't know - I haven't studied it), but "Complete" means someone can copy/paste it into a C++ file on their computer and compile it. "Verifiable" means that they could then run the program to see the problem. - Michael Burr
Having a real complete example with Qt may be very long - because of all classes and method needed. In fact, what I've posted is a "classic" code and should not (I hope!) have any error. I thought posting a lot of additionnal code wasn't relevant... Nevertheless, should I edit it in order to have a real complete example? - Abrikot
what is fileDownloader? You could show your statement please. - eyllanesc
@eyllanesc Sure, I updated my post. - Abrikot
I think you need to add: libssl32 - eyllanesc

1 Answers

1
votes

It was actually about missing libraries. I had to add to my folder :

  • libeay32.dll
  • libssl32.dll
  • ssleay32.dll

The point was, even on 64-bit systems, these libraries had to be for 32-bit systems because I compiled my applications for 32-bit systems...

Moreover, msvcr120.dll was needed for some computers.