makzimi
4th February 2011, 13:50
Hello.
I'm trying to built static Qt with static SSL. I need exactly static.
This topic Compiling static for Windows with OpenSSL (http://www.qtcentre.org/threads/28417-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 (http://www.openssl.org) (openssl-1.0.0c) i build staticly.
> perl Configure VC-WIN32 no-asm --prefix=c:\mydir\ssl
> ms\do_ms
> nmake -f ms\nt.mak
> nmake -f ms\nt.mak install
After that i have ssl libs "libeay32.lib" and "ssleay32.lib" in my c:\mydir\ssl\lib. Everything is ok.
2. Rebuild my QT.
> configure -static -platform win32-msvc2003 -openssl-linked -I "c:\mydir\ssl\include" -L "c:\mydir\ssl\lib"
> nmake
So, nmake print me this:
c:\mydir\qt-4.4.3\src\network\ssl\qsslsocket_openssl_symbols_p .h(264) : error C2065: 'STACK' : undeclared identifier
c:\mydir\qt-4.4.3\src\network\ssl\qsslsocket_openssl_symbols_p .h(264) : error C2065: 'a' : undeclared identifier
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'
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
pilation
...
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio .NET 2003\VC7\BIN\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
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.
I'm trying to built static Qt with static SSL. I need exactly static.
This topic Compiling static for Windows with OpenSSL (http://www.qtcentre.org/threads/28417-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 (http://www.openssl.org) (openssl-1.0.0c) i build staticly.
> perl Configure VC-WIN32 no-asm --prefix=c:\mydir\ssl
> ms\do_ms
> nmake -f ms\nt.mak
> nmake -f ms\nt.mak install
After that i have ssl libs "libeay32.lib" and "ssleay32.lib" in my c:\mydir\ssl\lib. Everything is ok.
2. Rebuild my QT.
> configure -static -platform win32-msvc2003 -openssl-linked -I "c:\mydir\ssl\include" -L "c:\mydir\ssl\lib"
> nmake
So, nmake print me this:
c:\mydir\qt-4.4.3\src\network\ssl\qsslsocket_openssl_symbols_p .h(264) : error C2065: 'STACK' : undeclared identifier
c:\mydir\qt-4.4.3\src\network\ssl\qsslsocket_openssl_symbols_p .h(264) : error C2065: 'a' : undeclared identifier
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'
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
pilation
...
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio .NET 2003\VC7\BIN\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
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.