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. I add libs,occurs error: LNK1107: Invalid or damaged file: cannot be read at 0x310

I add libs,occurs error: LNK1107: Invalid or damaged file: cannot be read at 0x310

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 2 Posters 1.0k 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.
  • S Offline
    S Offline
    senmx
    wrote on last edited by senmx
    #1

    5bfa77ac-ccea-4a20-ad2d-fc4b4000ed9e-image.png
    openssl compiled:
    d08edc03-4d61-4c9d-8dcd-319f7d58e1f8-image.png

    My App Compiler: Qt5.15.2 + MSVC2019 32bit
    Openssl Compiler: x86 Native Tools Command Prompt for VS 2019

    S 1 Reply Last reply
    0
    • S senmx

      5bfa77ac-ccea-4a20-ad2d-fc4b4000ed9e-image.png
      openssl compiled:
      d08edc03-4d61-4c9d-8dcd-319f7d58e1f8-image.png

      My App Compiler: Qt5.15.2 + MSVC2019 32bit
      Openssl Compiler: x86 Native Tools Command Prompt for VS 2019

      S Offline
      S Offline
      senmx
      wrote on last edited by
      #4

      @senmx

      win32 {
          LIBS += -lWs2_32
          LIBS += -L$$PWD/libs/ -lcrypto
          LIBS += -L$$PWD/libs/ -lssl
          INCLUDEPATH += D:\github\c\openssl-1.1.1g\build_win32\out\include
      }
      

      $$PWD/libs:

      crypto.lib
      libcrypto-1_1.dll
      libssl-1_1.dll
      ssl.lib
      
      1 Reply Last reply
      1
      • mrjjM Offline
        mrjjM Offline
        mrjj
        Lifetime Qt Champion
        wrote on last edited by mrjj
        #2

        Hi
        is your app also build with 32 bit ?

        Did you build lidssl your self ?

        Also what compiler ?

        mingw or visual studio `?

        S 1 Reply Last reply
        0
        • mrjjM mrjj

          Hi
          is your app also build with 32 bit ?

          Did you build lidssl your self ?

          Also what compiler ?

          mingw or visual studio `?

          S Offline
          S Offline
          senmx
          wrote on last edited by
          #3

          @mrjj I reedited the post:
          My App Compiler: Qt5.15.2 + MSVC2019 32bit
          Openssl Compiler: x86 Native Tools Command Prompt for VS 2019

          1 Reply Last reply
          0
          • S senmx

            5bfa77ac-ccea-4a20-ad2d-fc4b4000ed9e-image.png
            openssl compiled:
            d08edc03-4d61-4c9d-8dcd-319f7d58e1f8-image.png

            My App Compiler: Qt5.15.2 + MSVC2019 32bit
            Openssl Compiler: x86 Native Tools Command Prompt for VS 2019

            S Offline
            S Offline
            senmx
            wrote on last edited by
            #4

            @senmx

            win32 {
                LIBS += -lWs2_32
                LIBS += -L$$PWD/libs/ -lcrypto
                LIBS += -L$$PWD/libs/ -lssl
                INCLUDEPATH += D:\github\c\openssl-1.1.1g\build_win32\out\include
            }
            

            $$PWD/libs:

            crypto.lib
            libcrypto-1_1.dll
            libssl-1_1.dll
            ssl.lib
            
            1 Reply Last reply
            1

            • Login

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