Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Support openssl
Forum Updated to NodeBB v4.3 + New Features

Support openssl

Scheduled Pinned Locked Moved Unsolved General and Desktop
25 Posts 3 Posters 7.2k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • RIVOPICOR Offline
    RIVOPICOR Offline
    RIVOPICO
    wrote on last edited by RIVOPICO
    #1

    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.

    jsulmJ 1 Reply Last reply
    0
    • RIVOPICOR RIVOPICO

      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.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @RIVOPICO said in Support openssl:

      libeay32 -lssleay32

      Are these libs build using exactly the same compiler?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • RIVOPICOR Offline
        RIVOPICOR Offline
        RIVOPICO
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          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.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          RIVOPICOR 1 Reply Last reply
          0
          • RIVOPICOR Offline
            RIVOPICOR Offline
            RIVOPICO
            wrote on last edited by RIVOPICO
            #5
            This post is deleted!
            1 Reply Last reply
            0
            • RIVOPICOR Offline
              RIVOPICOR Offline
              RIVOPICO
              wrote on last edited by
              #6
              This post is deleted!
              1 Reply Last reply
              0
              • SGaistS SGaist

                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.

                RIVOPICOR Offline
                RIVOPICOR Offline
                RIVOPICO
                wrote on last edited by
                #7

                @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

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  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

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  RIVOPICOR 1 Reply Last reply
                  1
                  • SGaistS SGaist

                    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

                    RIVOPICOR Offline
                    RIVOPICOR Offline
                    RIVOPICO
                    wrote on last edited by RIVOPICO
                    #9
                    This post is deleted!
                    1 Reply Last reply
                    0
                    • RIVOPICOR Offline
                      RIVOPICOR Offline
                      RIVOPICO
                      wrote on last edited by
                      #10

                      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

                      1 Reply Last reply
                      0
                      • SGaistS Offline
                        SGaistS Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on last edited by
                        #11

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

                        Interested in AI ? www.idiap.ch
                        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                        1 Reply Last reply
                        0
                        • RIVOPICOR Offline
                          RIVOPICOR Offline
                          RIVOPICO
                          wrote on last edited by RIVOPICO
                          #12

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

                          1 Reply Last reply
                          0
                          • RIVOPICOR Offline
                            RIVOPICOR Offline
                            RIVOPICO
                            wrote on last edited by RIVOPICO
                            #13

                            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

                            1 Reply Last reply
                            0
                            • SGaistS Offline
                              SGaistS Offline
                              SGaist
                              Lifetime Qt Champion
                              wrote on last edited by
                              #14

                              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 ?

                              Interested in AI ? www.idiap.ch
                              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                              1 Reply Last reply
                              0
                              • RIVOPICOR Offline
                                RIVOPICOR Offline
                                RIVOPICO
                                wrote on last edited by RIVOPICO
                                #15

                                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.

                                1 Reply Last reply
                                0
                                • SGaistS Offline
                                  SGaistS Offline
                                  SGaist
                                  Lifetime Qt Champion
                                  wrote on last edited by
                                  #16

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

                                  Interested in AI ? www.idiap.ch
                                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                  1 Reply Last reply
                                  0
                                  • RIVOPICOR Offline
                                    RIVOPICOR Offline
                                    RIVOPICO
                                    wrote on last edited by RIVOPICO
                                    #17

                                    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

                                    1 Reply Last reply
                                    0
                                    • RIVOPICOR Offline
                                      RIVOPICOR Offline
                                      RIVOPICO
                                      wrote on last edited by RIVOPICO
                                      #18

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

                                      But how?¿

                                      1 Reply Last reply
                                      0
                                      • SGaistS Offline
                                        SGaistS Offline
                                        SGaist
                                        Lifetime Qt Champion
                                        wrote on last edited by
                                        #19

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

                                        Interested in AI ? www.idiap.ch
                                        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                        RIVOPICOR 2 Replies Last reply
                                        0
                                        • RIVOPICOR Offline
                                          RIVOPICOR Offline
                                          RIVOPICO
                                          wrote on last edited by RIVOPICO
                                          #20
                                          This post is deleted!
                                          1 Reply Last reply
                                          0

                                          • Login

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • Users
                                          • Groups
                                          • Search
                                          • Get Qt Extensions
                                          • Unsolved