Results 1 to 5 of 5

Thread: Distributing applications which use QSslSocket

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

    Default Distributing applications which use QSslSocket

    Hello,

    I have an application which uses QSslSocket which made it automatically depended on OpenSSL. While it is distributed to Linux or other Unix'es there is no problem because openssl i almost always there. The problem is that to make full use of my application on Windows OpenSSL must be installed. And here's where my question arises: can I somehow easily distribute OpenSSL with my Qt application? I mean in a way that will not require to run the OpenSSL installer?

    At the moment my program is distributed as na zip which simply extracts to an folder with my apps exe and dll's from Qt and some other libraries. Adding OpenSSL dll's doesn't solve the problem and after I try to make a SSL connection I get a message in the console that Qt failed to create SSL_context because of unresolved symblos. It looks like those ssl dll aren't loaded.

    I would be most grateful for your help!

    --
    walec51

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Distributing applications which use QSslSocket

    Where did you put the DLLs? In the same directory than the application executable?
    J-P Nurmi

  3. #3
    Join Date
    Jan 2007
    Posts
    3
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Distributing applications which use QSslSocket

    Yes. In the same directory.

  4. #4
    Join Date
    Aug 2007
    Posts
    166
    Thanks
    16
    Thanked 14 Times in 14 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Distributing applications which use QSslSocket

    Get this windows distribution of OpenSSL - http://www.slproweb.com/download/Win...SSL-0_9_8g.exe
    Install it, you will get precompiled .lib files for all the windows compilers today like MSVC, GCC and Borland, the good there is that for each compiler the distribution have static and dinamyc versions of the libs in debug and in release mode, just use the static release libraries and you will not need to ship any kind of .dll's with your application.

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

    Default Re: Distributing applications which use QSslSocket

    Thanks I'll try with static linking but still I'd prefer dynamic

Similar Threads

  1. Distributing multiple Qt applications?
    By gfunk in forum Qt Programming
    Replies: 5
    Last Post: 23rd August 2007, 17:41

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.