Results 1 to 6 of 6

Thread: undeclared QSslCertificate

  1. #1
    Join Date
    Dec 2008
    Posts
    3
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default undeclared QSslCertificate

    Hello all members, can you help me please. I just work with Qt in windows, using:
    1. Windows XP SP3
    2. MSVC 2008 Express edition
    3. Qt 4.4.3 Opensource edition


    I need to build some project using QSsl, but thereis an error saying that QSslCertificate is undeclared.

    When i try to compile the example in Qt directory (securesocketclient), I get the same error. But when i compilled the example in linux, there is no error found.

    Why it's happen and how sould i do to fix it?

    Thanks for help.

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

    Default Re: undeclared QSslCertificate

    Did you add QT+=network to your project file? Do you have Qt with SSL support built-in?

  3. #3
    Join Date
    Dec 2008
    Posts
    3
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: undeclared QSslCertificate

    Sure i did it. and even in Qt Example there is a *.pro file that i used in linux to compilled it, and it's sucessfull But not in windows.

    Oh ya... there is no openSSL in my windows, is this the problem??

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

    Default Re: undeclared QSslCertificate

    Depends what were the options enabled while compiling Qt itself. You might have simply disabled SSL support (or the configure script did it for you). Go back to your Qt compilation site and check it out.

  5. #5
    Join Date
    Dec 2008
    Posts
    3
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: undeclared QSslCertificate

    Ok...
    i'll try to recompile it, But should i need to install openssl in my windows first before i recompille Qt??

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

    Default Re: undeclared QSslCertificate

    Run configure with appropriate parameters (verbosity is a nice thing to enable) and see if SSL support is enabled in the compilation. If not, then worry about installing OpenSSL, I think it is not required as you should already have an implementation of SSL in your system (it's called SSLeay or something similar).

Similar Threads

  1. QPSQL problem
    By LoneWolf in forum Installation and Deployment
    Replies: 60
    Last Post: 4th November 2009, 14:22
  2. QPSQL driver in windows
    By brevleq in forum Installation and Deployment
    Replies: 31
    Last Post: 14th December 2007, 12:57
  3. use qpsql
    By raphaelf in forum Installation and Deployment
    Replies: 34
    Last Post: 22nd August 2006, 12:52
  4. Qt 4.1.4 plugin QPSQL
    By jcr in forum Installation and Deployment
    Replies: 4
    Last Post: 22nd June 2006, 22:55
  5. lQtGuid4 error - Compiler setting problem
    By Kapil in forum Installation and Deployment
    Replies: 7
    Last Post: 10th February 2006, 09:30

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.