Page 1 of 2 12 LastLast
Results 1 to 20 of 30

Thread: qssl

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: qssl

    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.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  2. #2
    Join Date
    Apr 2009
    Posts
    41
    Qt products
    Qt4
    Platforms
    Windows

    Post Re: qssl

    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"

  3. #3
    Join Date
    Aug 2008
    Location
    Ukraine, Krivoy Rog
    Posts
    1,963
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Thanked 370 Times in 336 Posts

    Default Re: qssl

    do you use Qt SDK?
    Qt Assistant -- rocks!
    please, use tags [CODE] & [/CODE].

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: qssl

    Quote Originally Posted by jsmith View Post
    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"
    Run the "securesocketclient" example and see if you get an error message about missing SSL functionality.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  5. #5
    Join Date
    Apr 2009
    Posts
    41
    Qt products
    Qt4
    Platforms
    Windows

    Post Re: qssl

    yes,
    i have both qt SDK, and qt 4.4.3

  6. #6
    Join Date
    Aug 2008
    Location
    Ukraine, Krivoy Rog
    Posts
    1,963
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Thanked 370 Times in 336 Posts

    Default Re: qssl

    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].

  7. #7
    Join Date
    Apr 2009
    Posts
    41
    Qt products
    Qt4
    Platforms
    Windows

    Post Re: qssl

    when i am rebuilding qt 4.4.3 for openssl support error is coming like this

    qsslcertificate.cpp
    ssl\qsslsocket_openssl_p.h(70) : fatal error C1083: Cannot open include file: 'openssl/asn1.h': No such file or directory
    in openssl directory asnl.h is not there.

    please suggest me to complete this

  8. #8
    Join Date
    Aug 2008
    Location
    Ukraine, Krivoy Rog
    Posts
    1,963
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Thanked 370 Times in 336 Posts

    Default Re: qssl

    did you donwload OpenSSL with headers?
    Qt Assistant -- rocks!
    please, use tags [CODE] & [/CODE].

  9. #9
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: qssl

    Did you try running the example as I suggested?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  10. #10
    Join Date
    Apr 2009
    Posts
    41
    Qt products
    Qt4
    Platforms
    Windows

    Post Re: qssl

    i have downloaded openssl from second option
    and installed but in that no included firles are available only .dll are there

  11. #11
    Join Date
    Aug 2008
    Location
    Ukraine, Krivoy Rog
    Posts
    1,963
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Thanked 370 Times in 336 Posts

    Default Re: qssl

    Quote Originally Posted by jsmith View Post
    i have downloaded openssl from second option
    and installed but in that no included firles are available only .dll are there
    use this link.
    Qt Assistant -- rocks!
    please, use tags [CODE] & [/CODE].

  12. #12
    Join Date
    Apr 2009
    Posts
    41
    Qt products
    Qt4
    Platforms
    Windows

    Post Re: qssl

    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''

  13. #13
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: qssl

    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.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  14. #14
    Join Date
    Apr 2009
    Posts
    41
    Qt products
    Qt4
    Platforms
    Windows

    Post Re: qssl

    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

    qabstractsocketengine.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>
    please tell me what is the problem

  15. #15
    Join Date
    Aug 2008
    Location
    Ukraine, Krivoy Rog
    Posts
    1,963
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Thanked 370 Times in 336 Posts

    Default Re: qssl

    Quote Originally Posted by jsmith View Post
    please tell me what is the problem
    did you set path to INCLUDE & LIB of OpenSSL?
    Qt Assistant -- rocks!
    please, use tags [CODE] & [/CODE].

  16. #16
    Join Date
    Apr 2009
    Posts
    41
    Qt products
    Qt4
    Platforms
    Windows

    Post Re: qssl

    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

  17. #17
    Join Date
    Apr 2009
    Posts
    41
    Qt products
    Qt4
    Platforms
    Windows

    Post Re: qssl

    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;

  18. #18
    Join Date
    Aug 2008
    Location
    Ukraine, Krivoy Rog
    Posts
    1,963
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Thanked 370 Times in 336 Posts

    Default Re: qssl

    Quote Originally Posted by jsmith View Post
    yes,
    i set path for LIB and INCLUDE in system variables as
    according to your varianbles you wants to use MinGW, than replace nmake call after configure by mingw32-make.
    configure -openssl ...
    mingw32-make
    btw, these operations must be provided in QTDIR.
    Qt Assistant -- rocks!
    please, use tags [CODE] & [/CODE].

  19. #19
    Join Date
    Aug 2008
    Location
    Ukraine, Krivoy Rog
    Posts
    1,963
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Thanked 370 Times in 336 Posts

    Default Re: qssl

    Quote Originally Posted by jsmith View Post
    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
    sign, you are doing wrong things.
    what is this ../qt/4.4.3/nmake -openssl?
    you must specify this key for Qt's configure tool.
    so, try this
    configure -openssl ....
    nmake
    ... -- means another keys which you need.
    NOTE: do you what to build Qt for MingGW or MSVS?
    Qt Assistant -- rocks!
    please, use tags [CODE] & [/CODE].

  20. #20
    Join Date
    Aug 2008
    Location
    Ukraine, Krivoy Rog
    Posts
    1,963
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Thanked 370 Times in 336 Posts

    Default Re: qssl

    Quote Originally Posted by wysota View Post
    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.
    sigh, that's clear. anyway, he wants to build some project with support QSsl*.
    Qt Assistant -- rocks!
    please, use tags [CODE] & [/CODE].

Similar Threads

  1. Qssl
    By tpthyd in forum Qt Programming
    Replies: 16
    Last Post: 15th June 2009, 09:53
  2. Qt4.4 QSsl Won't Compile with MSVC2008
    By Surye in forum Installation and Deployment
    Replies: 2
    Last Post: 9th May 2008, 17:52

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.