Openssl - Static libraries (w32, mingw) 以及对Qt静态编译时的设置

Openssl static libraries created for Windows 32bit using MinGW compiler

 
Compiled with:
 
    ./Configure no-asm mingw
 
 
Zip contains the include folder and libssl.a and libcrypto.a static libraries.
 
 
 
Tips:
 
If you are trying to use these to compile Qt for static linking, here are a few tips I learn't:
 
- Rename the files with a 'lib' extension and put them in Qt lib folder: eg. libssl.lib and libcrypto.lib
- Copy the 'include/openssl' folder to Qt's include folder.
 
- When configuring Qt:
    - libssl has to come before libcrypto.
    - gdi32 also needs to added.
    - I used the 'openssl-linked' option.
 
The relevant parts of the Qt configure command should look like this:
 
    configure -static -openssl-linked OPENSSL_LIBS="-llibssl -llibcrypto -lgdi32"
 
 
http://www.wittfella.com/openssl
posted @ 2017-02-07 00:06  findumars  Views(3844)  Comments(0Edit  收藏  举报