简体   繁体   中英

How to enable SSL for a Qt Linux application?

Hi I'm just trying to get the stock example securesocketclient to work in a linux environment. I tried compiling it and running but QSslSocket::supportsSsl() returns false.

I want to know something very very simple, for which I cannot find a definitive answer: Must I compile my own version of Qt in order to get SSL support? If not, can some one give me the steps to actually enable SSL support. Most answers I found focus only on Windows, and I need to make it work on Linux.

(Adding the answer to search engine's sake, even though you found it by yourself :) )

Yes you need the development package for that, in order to have the right headers available. The same applies other Qt modules with external dependencies like gstreamer.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM