Hello.
I'm trying to built static Qt with static SSL. I need exactly static.
This topic Compiling static for Windows with OpenSSL don't help me.

My platform: Windows XP sp2, QT 4.4.3, MSVS 2003
What have i done:

1. SSL sources from OpenSSL (openssl-1.0.0c) i build staticly.
Qt Code:
  1. > perl Configure VC-WIN32 no-asm --prefix=c:\mydir\ssl
  2. > ms\do_ms
  3. > nmake -f ms\nt.mak
  4. > nmake -f ms\nt.mak install
To copy to clipboard, switch view to plain text mode 

After that i have ssl libs "libeay32.lib" and "ssleay32.lib" in my c:\mydir\ssl\lib. Everything is ok.

2. Rebuild my QT.
Qt Code:
  1. > configure -static -platform win32-msvc2003 -openssl-linked -I "c:\mydir\ssl\include" -L "c:\mydir\ssl\lib"
  2. > nmake
To copy to clipboard, switch view to plain text mode 

So, nmake print me this:

Qt Code:
  1. c:\mydir\qt-4.4.3\src\network\ssl\qsslsocket_openssl_symbols_p.h(264) : error C2065: 'STACK' : undeclared identifier
  2. c:\mydir\qt-4.4.3\src\network\ssl\qsslsocket_openssl_symbols_p.h(264) : error C2065: 'a' : undeclared identifier
  3. c:\mydir\qt-4.4.3\src\network\ssl\qsslsocket_openssl_symbols_p.h(264) : error C2182: 'q_sk_free' : illegal use of type 'void'
  4. c:\mydir\qt-4.4.3\src\network\ssl\qsslsocket_openssl_symbols_p.h(264) : fatal error C1903: unable to recover from previous error(s); stopping com
  5. pilation
  6. ...
  7. NMAKE : fatal error U1077: 'cl' : return code '0x2'
  8. Stop.
  9. NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio .NET 2003\VC7\BIN\nmake.exe"' : return code '0x2'
  10. Stop.
  11. NMAKE : fatal error U1077: 'cd' : return code '0x2'
  12. Stop.
To copy to clipboard, switch view to plain text mode 

It seems like nmake cannot find ssl sources... But i'm sure this sources is in c:\mydir\ssl\include.

I have no idea, what i'm doing wrong.
Can anybody help me about this? Thanks.