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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM