Qt静态编译时使用OpenSSL有三种方式(不使用,动态使用,静态使用,默认是动态使用)


When compiling Qt you can choose one of these options based on the configure command line:

no OpenSSL support (-no-openssl)
QtNetwork dynamically opening OpenSSL libs (-openssl; default)
QtNetwork linking to OpenSSL (-openssl-linked)
The last one means dynamic linking (if Qt is built as a shared library), or static linking (when doing a static build of Qt, i.e. -static).

So the ""solution"" to your problem is passing -static -openssl-linked to Qt's configure.

 

http://stackoverflow.com/questions/14566212/about-compiling-openssl-inside-qt-application


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM