Results 1 to 4 of 4

Thread: Qt 4.4 on Windows with SSL support and MingW?

  1. #1
    Join Date
    Jun 2008
    Posts
    6
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Qt 4.4 on Windows with SSL support and MingW?

    Hi,

    I am trying to compile Qt 4.4 with the following options:

    configure.exe -openssl-linked -I D:\Downloads\OpenSSL\openssl-0.9.8g.tar\openssl-0.9.8g\outinc -L D:\Downloads\OpenSSL\openssl-0.9.8g.tar\openssl-0.9.8g\out

    I downloaded openssl from openssl.org and built it without errors.

    While building Qt I get:

    C:\MingW\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\ mingw32\bin\ld.exe: cannot find -lssleay32
    collect2: ld returned 1 exit status
    mingw32-make[2]: *** [..\..\lib\QtNetworkd4.dll] Error 1

    In openssl\out I don't see ssleay32.a. What I am missing ?

    Thanks!
    Christian

  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: Qt 4.4 on Windows with SSL support and MingW?

    I have "C:\OpenSSL\lib\MinGW\ssleay32.a" and I installed Win32 OpenSSL v0.9.8g from Win32 OpenSSL.
    J-P Nurmi

  3. #3
    Join Date
    Jun 2008
    Posts
    6
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt 4.4 on Windows with SSL support and MingW?

    Argh... I downloaded the distribution from slproweb.com, found ssleay32.a and pasted it in D:\Downloads\OpenSSL\openssl-0.9.8g.tar\openssl-0.9.8g\out and it still doesn't build

    Here is the command line where it fails:

    g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -mthreads -Wl -shared -Wl,--out-implib,d:\Video\Qt\4.4.0\lib\libQtNetworkd4.a
    -o ..\..\lib\QtNetworkd4.dll object_script.QtNetworkd.Debug -L"d:\Video\Qt\4.4.0\lib" -L"d:\Video\Qt\4.4.0\lib" -lws2_32 tmp\obj\debug_shared\QtNetworkd_resource_res.o -LD:\Downloads\OpenSSL\openssl-0.9.8g.tar\openssl-0.9.8g\out -lssleay32 -llibeay32 -lQtCored4
    C:\MingW\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\ mingw32\bin\ld.exe: cannot find -lssleay32
    collect2: ld returned 1 exit status
    mingw32-make[2]: *** [..\..\lib\QtNetworkd4.dll] Error 1

    The .a extension is assumed for libraries, right?

    Thanks!
    Christian

  4. #4
    Join Date
    Jun 2008
    Posts
    6
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt 4.4 on Windows with SSL support and MingW?

    Ha... I went to the GCC documentation and found out that -llibrary actually looks for a file named liblibrary.a

    That means the libraries have to be named liblibeay32.a and libssleay32.a for the linker to find them.

    Now it compiles. Whew

    CG

Similar Threads

  1. Failure when building QT on Windows with MinGW
    By sharon in forum Installation and Deployment
    Replies: 2
    Last Post: 23rd August 2007, 14:38
  2. Qt4 with mingw on win2K
    By geert in forum Installation and Deployment
    Replies: 3
    Last Post: 11th December 2006, 13:25
  3. Can't install Qt4.1 with SQL Support for ODBC in Windows XP
    By danieltruchsess in forum Installation and Deployment
    Replies: 1
    Last Post: 5th February 2006, 11:02

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.