Are you sure you need to rebuild Qt? Is there any warning message you are getting or something? Qt comes with SSL support already active, if not from OpenSSL then from Windows' SSL implementation.
Are you sure you need to rebuild Qt? Is there any warning message you are getting or something? Qt comes with SSL support already active, if not from OpenSSL then from Windows' SSL implementation.
i think openssl is not defined in my qt, because i am using qt examples directory http program for downloading files. in that if openssl is defined "https://" will come in line editor else "http:" .i have to download files from "https"
do you use Qt SDK?
Qt Assistant -- rocks!
please, use tags [CODE] & [/CODE].
yes,
i have both qt SDK, and qt 4.4.3
so, you can find mingw in SDKDIR/2009.01/mingw and Qt in SDKDIR/2009.01/qt. so, change that paths which I specified as example to you relevant paths and everything should work.
Qt Assistant -- rocks!
please, use tags [CODE] & [/CODE].
when i am rebuilding qt 4.4.3 for openssl support error is coming like this
in openssl directory asnl.h is not there.qsslcertificate.cpp
ssl\qsslsocket_openssl_p.h(70) : fatal error C1083: Cannot open include file: 'openssl/asn1.h': No such file or directory
please suggest me to complete this
did you donwload OpenSSL with headers?
Qt Assistant -- rocks!
please, use tags [CODE] & [/CODE].
i have downloaded openssl from second option
and installed but in that no included firles are available only .dll are there
yes,
i have run qsslsocket example, 100 errors are coming here i am posting 2 errors
d:\qt\2009.01\qt\examples\network\securesocketclie nt\certificateinfo.h:59:
error: 'QSslCertificate' : undeclared identifier
D:/Qt/2009.01/qt/examples/network/securesocketclient/./certificateinfo.cpp:86: error: 'StateOrProvinceName' : is not a member of '`global namespace''
I meant to run it, not to build it (of course only if examples come prebuilt with the Qt+MinGW bundle). You might not have SSL development files installed but it doesn't mean you don't have SSL support in your Qt enabled. You might be unable to build SSL-enabled apps but you can still execute ones that are already built. In that case copying/installing only the SSL development files should be enough.
i have downloaded openssl from u rlink and instaleed. and i set environmental variables for lib and include
now i configure qt 4.4.3 as
> nmake confclean
>configure -platform win32-msvc -openssl
here errors are coming as
please tell me what is the problemqabstractsocketengine.cpp
qnativesocketengine.cpp
qhttpsocketengine.cpp
qsocks5socketengine.cpp
qabstractsocket.cpp
qtcpsocket.cpp
qudpsocket.cpp
qtcpserver.cpp
qlocalsocket.cpp
qlocalserver.cpp
qnativesocketengine_win.cpp
qlocalsocket_win.cpp
qlocalserver_win.cpp
Generating Code...
cl -c -FIqt_pch.h -Yuqt_pch.h -Fptmp\obj\debug_shared\QtNetworkd_pch.pch
-nologo -Zm200 -Zi -MDd -W3 -GR -GX -DQT_SHARED -DQT_THREAD_SUPPORT -DUNICODE -
DQT_LARGEFILE_SUPPORT -DQT_BUILD_NETWORK_LIB -DQT_NO_USING_NAMESPACE -DQT_MAKEDL
L -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -
D_USE_MATH_DEFINES -DQT_DLL -DQT_CORE_LIB -I"..\..\include\QtCore" -I"..\..\incl
ude\QtCore" -I"..\..\include" -I"..\..\include\QtNetwork" -I"tmp\rcc\debug_share
d" -I"tmp" -I"..\3rdparty\zlib" -I"kernel" -I"d:\Qt1\4.4.3\include\ActiveQt" -I"
tmp\moc\debug_shared" -I"." -I"..\..\mkspecs\win32-msvc" -Fotmp\obj\debug_shared
\ @C:\DOCUME~1\e451493\LOCALS~1\Temp\nmd03312.
qssl.cpp
qsslcertificate.cpp
ssl\qsslsocket_openssl_p.h(70) : fatal error C1083: Cannot open include file: 'o
penssl/asn1.h': No such file or directory
qsslconfiguration.cpp
qsslcipher.cpp
qsslerror.cpp
qsslkey.cpp
ssl\qsslsocket_openssl_p.h(70) : fatal error C1083: Cannot open include file: 'o
penssl/asn1.h': No such file or directory
qsslsocket.cpp
ssl\qsslsocket_openssl_p.h(70) : fatal error C1083: Cannot open include file: 'o
penssl/asn1.h': No such file or directory
qsslsocket_openssl.cpp
ssl\qsslsocket_openssl_p.h(70) : fatal error C1083: Cannot open include file: 'o
penssl/asn1.h': No such file or directory
qsslsocket_openssl_symbols.cpp
ssl\qsslsocket_openssl_p.h(70) : fatal error C1083: Cannot open include file: 'o
penssl/asn1.h': No such file or directory
Generating Code...
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'C:\PROGRA~1\MIAF9D~1\VC98\BIN\NMAKE.EXE' : return co
de '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
D:\Qt1\4.4.3>
hi spirit,
thanks for your quick reply .
1) i have downloaded and set environmental variables as u told me.
2) now to build qt 4.4.3 with openssl
i am doing like this in commond prompt
../qt/4.4.3/nmake -openssl
here errors are coming again.
please suggest me to proceed further
3) what is procedure to build Qt SDK with openssl
yes,
i set path for LIB and INCLUDE in system variables as
INCLUDE - C:\OpenSSL\include\openssl;
LIB C:\OpenSSL\lib\MinGW;C:\OpenSSL\lib\VC;
Qt Assistant -- rocks!
please, use tags [CODE] & [/CODE].
Bookmarks