从源代码编译Qt不能将OpenSSL与OpenGL一起使用

时间:2014-09-14 12:16:22

标签: c++ qt opengl openssl

我现在混淆了。
我刚尝试用MinGW 4.8.2编译Qt 5.3.1库。

以前,我设法构建了OpenSSL。我想用它来编译Qt with -openssl 但是,我有一点问题。当我使用此配置命令时:

configure -opensource -confirm-license -platform win32-g++ \
-make libs -qt-libjpeg -qt-libpng -no-icu -qt-zlib \
-qt-pcre -no-iconv -nomake examples -nomake tests \
-opengl desktop -no-dbus -strip -plugin-sql-sqlite \
-skip qtconnectivity -skip qtlocation -skip qtsensors \
-openssl -I "D:\openssl\include" -L "D:\openssl\lib"

配置会出现如下错误:

You might need to modify the include and library search paths by editing
QMAKE_INCDIR_OPENGL, QMAKE_LIBDIR_OPENGL and QMAKE_LIBS_OPENGL in
d:/Develop/Qt-Lib/5.3.1/qtbase/mkspecs/win32-g++.

但是,我不知道OpenGL包含dir作为参数传递到哪里。

然后,当我删除-openssl参数时,配置就可以了。

configure -opensource -confirm-license -platform win32-g++ \
-make libs -qt-libjpeg -qt-libpng -no-icu -qt-zlib \
-qt-pcre -no-iconv -nomake examples -nomake tests \
-opengl desktop -no-dbus -strip -plugin-sql-sqlite \
-skip qtconnectivity -skip qtlocation -skip qtsensors

请给我一些想法,我的错误是什么?

0 个答案:

没有答案