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 tests

    Error 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.


  • Moderators

    @RIVOPICO said in Support openssl:

    libeay32 -lssleay32

    Are these libs build using exactly the same compiler?



  • when yo usay build what you refer? i included the libs in vc/lib of visual studio, included en qt, configurate but anyways show me this message


  • Lifetime Qt Champion

    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.



  • This post is deleted!


  • This post is deleted!


  • @SGaist Hi i download the openssl since here:
    http://www.npcglib.org/~stathis/blog/precompiled-openssl/#comment-71092

    And then i need to put the libs Mtd in qt folder or in vs folder?? thx


  • Lifetime Qt Champion

    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



  • This post is deleted!


  • 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


  • Lifetime Qt Champion

    Did you check that you have everything built for the correct architecture ?



  • yes for 5,7 and vs2013
    maybe in the configure i must include the paths?



  • maybe in the configure i must include the paths?
    i will try to include: -openssl-linked OPENSSL_LIBS="-llibeay32 -lssleay32" -I C:\Users\moh\Downloads\openssl-1.0.2h-vs2013\include -L C:\Users\moh\Downloads\openssl-1.0.2h-vs2013\lib


  • Lifetime Qt Champion

    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.


  • Lifetime Qt Champion

    Why are you building a static version of Qt in the first place ?



  • because i want to have build static because if i run my Project take me a lot of dll's and if do with static i didnt need these dll's. I prefer static to dynamic respecting the license of course



  • I thin i need to add this:
    -lgdi32 and -lUser32

    But how?¿


  • Lifetime Qt Champion

    How to link to these two libraries in your application project ?



  • This post is deleted!


  • This post is deleted!


  • This post is deleted!


  • This post is deleted!


  • ok thx a lot


  • Lifetime Qt Champion

    You're welcome

    If you have everything working now, please mark the thread as solved so other forum users may know a solution has been found :)


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.