ssl / qsslsocket_openssl.cpp:1414:错误:未在此范围内声明q_ssl_ctrl错误 [英] ssl/qsslsocket_openssl.cpp:1414: error: q_ssl_ctrl was not declared in this scope error
问题描述
我正在尝试编译Qt5。我从此处下载Qt 5.1: download.qt-project.org/official_releases/qt/5.1/5.1.0/single/qt-everywhere-opensource-src-5.1.0.tar.gz 。但是在执行 make命令后,出现以下错误:
ssl / qsslsocket_openssl.cpp:1414:错误:在此范围内未清除q_ssl_ctrl
我在Google上找不到任何内容。我该如何解决?
I am trying to compile Qt5. I download Qt 5.1 from here: download.qt-project.org/official_releases/qt/5.1/5.1.0/single/qt-everywhere-opensource-src-5.1.0.tar.gz. But after "make" command I get this error:
ssl/qsslsocket_openssl.cpp:1414: error: q_ssl_ctrl was not decleared in this scope
I can not find anything on Google. How can I fix it?
推荐答案
使用内置ssl配置qt或自己编译openssl并将其添加到configure中的库中。我附加了示例配置行(用于msvc2008上的qt4.8静态商业安装程序!)
configure qt with builtin ssl or compile openssl yourself and add it to your libraries in configure. I attach a expample configure line (was for qt4.8 static commercial installer on msvc2008!)
configure -static -commercial -release -no-fast -qt-sql-sqlite -qt-sql-mysql -qt-zlib -mmx -3dnow -sse -sse2 -openssl-linked -script -scripttools -no-declarative -arch windows -no-style-cde -no-style-motif -no-style-cleanlooks -no-style-plastique -no-webkit -nomake examples -nomake demos -no-qt3support -no-phonon -no-multimedia -no-dbus -no-opengl -no-xmlpatterns -platform win32-msvc2008 -I mysql\include -L mysql\lib -l mysqlclient -l libmysql
这篇关于ssl / qsslsocket_openssl.cpp:1414:错误:未在此范围内声明q_ssl_ctrl错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!