Results 1 to 5 of 5

Thread: QT 4.7.0 - Windows - Cannot find QSslSocket after recompiling static QT

  1. #1
    Join Date
    Nov 2010
    Posts
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default QT 4.7.0 - Windows - Cannot find QSslSocket after recompiling static QT

    Hello!

    I've downloaded & installed QT 4.7.0 Windows version (2010 05)
    I had a program which compiled just fine. I wanted to compile it statically, knowing the "disadvantages" of that.

    I proceeded like this:
    1) Open QT Command Prompt
    2) D:\bin\Qt2010_05\qt>configure -static -debug-and-release -opensource -qt-sql-sqlite -qt-zlib -qt-gif -qt-libpng -qt-libjpeg -fast
    3) D:\bin\Qt2010_05\qt>mingw32-make sub-src

    Everything went fine. But, the problem had arisen when tried to compile again the app. I've got this error:
    Qt Code:
    1. In file included from ../app/include/program_options.h:16,
    2. from
    3. ../app/main.cpp:10:
    4. ../app/include/smtp_connection.h:110: error: ISO C++ forbids declaration of 'QSslSocket' with no type
    5. ../app/include/smtp_connection.h:110: error: expected ';' before '*' token
    To copy to clipboard, switch view to plain text mode 

    The line of code where the error is triggered:
    Qt Code:
    1. QSslSocket* m_connection;
    To copy to clipboard, switch view to plain text mode 
    But I've included:
    Qt Code:
    1. #include <QSslSocket>
    To copy to clipboard, switch view to plain text mode 

    Does anyone know what I've done wrong? And maybe some hints on how to fix it?

    More details:
    Windows 7 x64
    QT 4.7.0 - 2010.05 from website - opensource version

    Thanks,
    Timo

  2. #2
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: QT 4.7.0 - Windows - Cannot find QSslSocket after recompiling static QT

    Are you sure that the ssl stuff is compiled and linked into your static Qt lib?
    I do not explicitly see it in the configure line

  3. #3
    Join Date
    Nov 2010
    Posts
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QT 4.7.0 - Windows - Cannot find QSslSocket after recompiling static QT

    Hmm, in the configure line does not appear. Doesn't it put by default?

    I'll check and see.

    Timo

  4. #4
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: QT 4.7.0 - Windows - Cannot find QSslSocket after recompiling static QT

    Quote Originally Posted by timotei View Post
    Doesn't it put by default?
    That's the question. It's possible that the ssl stuff is enabled by default and the error is somewhere else.
    But when a device doesn't work I always check if it is plugged in :-)

  5. #5
    Join Date
    Nov 2010
    Posts
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QT 4.7.0 - Windows - Cannot find QSslSocket after recompiling static QT

    Hm... it seems it doesn't .

    I'm gonna add it and recompile, hopefully it will work.

    Timo

Similar Threads

  1. Where i can find qmake in Windows Vista?
    By priya in forum Newbie
    Replies: 4
    Last Post: 1st September 2010, 07:05
  2. QSslSocket on Windows
    By BastiBense in forum Qt Programming
    Replies: 1
    Last Post: 7th March 2009, 12:31
  3. Recompiling qt
    By Tiansen in forum Qt Programming
    Replies: 2
    Last Post: 5th March 2008, 16:16
  4. Replies: 4
    Last Post: 3rd April 2006, 08:22
  5. Recompiling on Windows with BCC -- help
    By jamadagni in forum General Discussion
    Replies: 3
    Last Post: 30th January 2006, 15:47

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.