Support openssl
-
Hi i did configuration, all went fine, i used this command obviously:
configure -static -debug-and-release -prefix "C:\Qt\5.5\msvc2013_static" -platform win32-msvc2013 -qt-zlib -qt-pcre -qt-libpng -qt-libjpeg -qt-freetype -opengl desktop -qt-sql-sqlite -qt-sql-odbc -openssl-linked OPENSSL_LIBS="-llibeay32 -lssleay32 " -opensource -confirm-license -make libs -nomake tools -nomake examples -nomake testsError that i get:
link /NOLOGO /DYNAMICBASE /NXCOMPAT /DEBUG /SUBSYSTEM:CONSOLE "/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='' processorArchitecture=''" /MANIFEST:embed /OUT:debug\tst_qxmppcallmanager.exe @C:\Users\moh\AppData\Local\Temp\nm7E16.tmp
libeay32.lib(rand_win.obj) : error LNK2019: símbolo externo __imp__BitBlt@36 sin resolver al que se hace referencia en la función _readscreen
libeay32.lib(rand_win.obj) : error LNK2019: símbolo externo __imp__CreateCompatibleBitmap@12 sin resolver al que se hace referencia en la función _readscreen
libeay32.lib(rand_win.obj) : error LNK2019: símbolo externo __imp__CreateCompatibleDC@4 sin resolver al que se hace referencia en la función _readscreen
libeay32.lib(rand_win.obj) : error LNK2019: símbolo externo __imp__CreateDCA@16 sin resolver al que se hace referencia en la función _readscreen
libeay32.lib(rand_win.obj) : error LNK2019: símbolo externo __imp__DeleteDC@4 sin resolver al que se hace referencia en la función _readscreen
libeay32.lib(rand_win.obj) : error LNK2019: símbolo externo __imp__DeleteObject@4 sin resolver al que se hace referencia en la función _readscreen
libeay32.lib(rand_win.obj) : error LNK2019: símbolo externo __imp__GetBitmapBits@12 sin resolver al que se hace referencia en la función _readscreen
libeay32.lib(rand_win.obj) : error LNK2019: símbolo externo __imp__GetDeviceCaps@8 sin resolver al que se hace referencia en la función _readscreen
libeay32.lib(rand_win.obj) : error LNK2019: símbolo externo __imp__SelectObject@8 sin resolver al que se hace referencia en la función _readscreen
libeay32.lib(rand_win.obj) : error LNK2019: símbolo externo __imp__GetObjectA@12 sin resolver al que se hace referencia en la función _readscreen
debug\tst_qxmppcallmanager.exe : fatal error LNK1120: 10 externos sin resolver
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 12.0\VC\BIN\link.EXE"' : código devuelto '0x460'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 12.0\VC\BIN\nmake.exe"' : código devuelto '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : código devuelto '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : código devuelto '0x2'
Stop.I included in visual studio and static library so i dont know why do this.
-
@RIVOPICO said in Support openssl:
libeay32 -lssleay32
Are these libs build using exactly the same compiler?
-
Hi,
You need to check that your version of OpenSSL was built with the same version of Visual Studio you are using to build Qt. Next, you need to also verify that it is the right architecture.
Finally, don't forget the licensing implication of using a static build of Qt.
-
There are 5 packages listed there, which one did you download ?
Neither, put them somewhere where you can easily find them and update the name of the libraries you pass in
OPENSSL_LIBS
-
Hi i get these errors:
libeay32.lib(rand_win.obj) : error LNK2019: símbolo externo __imp__CreateCompatibleBitmap@12 sin resolver al que se hace referencia en la función _readscreen
libeay32.lib(rand_win.obj) : error LNK2019: símbolo externo __imp__DeleteObject@4 sin resolver al que se hace referencia en la función _readscreen
libeay32.lib(rand_win.obj) : error LNK2019: símbolo externo __imp__GetDeviceCaps@8 sin resolver al que se hace referencia en la función _readscreen
libeay32.lib(rand_win.obj) : error LNK2019: símbolo externo __imp__GetDIBits@28 sin resolver al que se hace referencia en la función _readscreen
libeay32.lib(rand_win.obj) : error LNK2019: símbolo externo __imp__GetObjectA@12 sin resolver al que se hace referencia en la función _readscreen
debug\tst_qxmppcallmanager.exe : fatal error LNK1120: 5 externos sin resolver
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 12.0\VC\BIN\link.EXE"' : código devuelto '0x460'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 12.0\VC\BIN\nmake.exe"' : código devuelto '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : código devuelto '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : código devuelto '0x2'
Stop.I dont know why
-
Did you check that you have everything built for the correct architecture ?
-
You are missing the Gdi32 library.
But there something not clear now, at the beginning of your thread you were compiling Qt, now you are compiling an application. What are you really doing ?
-
I did static build with configure, and installation. At last, i compile one Project that it uses these libraries. If i can include these static libraries with INCLUDEPATH and LIBS i think it's not necessary for me doing a build static with openssl. I am trying to do build static with openssl to run one Project that it needs these libraries.
-
Why are you building a static version of Qt in the first place ?
-
How to link to these two libraries in your application project ?