0

我正在尝试编译 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: error: q_ssl_ctrl was not decleared in this scope
我在谷歌上找不到任何东西。我该如何解决?

4

2 回答 2

1

使用内置 ssl 配置 qt 或自己编译 openssl 并将其添加到 configure 中的库中。我附上了一个示例配置行(用于 msvc2008 上的 qt4.8 静态商业安装程序!)

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
于 2013-07-10T11:43:27.820 回答
0

确保您已安装 openssl v1.0.0 或更高版本的开发文件。或使用 Sebastian 描述的 qt 内部版本

于 2014-04-16T05:43:27.947 回答