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. Error: LNK1104: Cannot open file 'qtmaind.lib'

Error: LNK1104: Cannot open file 'qtmaind.lib'

Scheduled Pinned Locked Moved Solved General and Desktop
6 Posts 4 Posters 7.0k Views
  • 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.
  • E Offline
    E Offline
    EricLiii
    wrote on 14 Aug 2018, 10:21 last edited by
    #1

    Re: LNK1104: cannot open file 'qtmaind.lib'

    Hi,

    I have this error(LNK1104) when I tried to debug the program. I have tried to change qmake build configuration from 'debug' to 'release' in 'Projects', but there was a new error: LNK1112: module machine type 'x64' confilcts with target machine type 'x86'. Anyone can help me to solve this problem?

    Information:
    Qt Creator 4.7, based on Qt 5.11.1(MSVC 2015, 32bit)
    Windows 10 Pro
    VC2015

    Thank you very much!

    J 1 Reply Last reply 14 Aug 2018, 10:26
    0
    • E EricLiii
      14 Aug 2018, 10:21

      Re: LNK1104: cannot open file 'qtmaind.lib'

      Hi,

      I have this error(LNK1104) when I tried to debug the program. I have tried to change qmake build configuration from 'debug' to 'release' in 'Projects', but there was a new error: LNK1112: module machine type 'x64' confilcts with target machine type 'x86'. Anyone can help me to solve this problem?

      Information:
      Qt Creator 4.7, based on Qt 5.11.1(MSVC 2015, 32bit)
      Windows 10 Pro
      VC2015

      Thank you very much!

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 14 Aug 2018, 10:26 last edited by
      #2

      @EricLiii said in Error: LNK1104: Cannot open file 'qtmaind.lib':

      module machine type 'x64' confilcts with target machine type 'x86'.

      This means that you're mixing x86 and x86_64 binaries. Delete the build folder, execute qmake and build again.

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

      E 1 Reply Last reply 15 Aug 2018, 01:57
      2
      • J jsulm
        14 Aug 2018, 10:26

        @EricLiii said in Error: LNK1104: Cannot open file 'qtmaind.lib':

        module machine type 'x64' confilcts with target machine type 'x86'.

        This means that you're mixing x86 and x86_64 binaries. Delete the build folder, execute qmake and build again.

        E Offline
        E Offline
        EricLiii
        wrote on 15 Aug 2018, 01:57 last edited by
        #3

        @jsulm
        Thanks for you help!
        I deleted the build folder and clicked the 'Run qmake' in 'Build', but it didn't work. The error LNK1112 happened again.

        J 1 Reply Last reply 15 Aug 2018, 04:12
        0
        • E EricLiii
          15 Aug 2018, 01:57

          @jsulm
          Thanks for you help!
          I deleted the build folder and clicked the 'Run qmake' in 'Build', but it didn't work. The error LNK1112 happened again.

          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 15 Aug 2018, 04:12 last edited by
          #4

          @EricLiii Can you post your build log and content of the pro file?

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

          E 1 Reply Last reply 15 Aug 2018, 08:02
          0
          • J jsulm
            15 Aug 2018, 04:12

            @EricLiii Can you post your build log and content of the pro file?

            E Offline
            E Offline
            EricLiii
            wrote on 15 Aug 2018, 08:02 last edited by
            #5

            @jsulm
            I have solved this problem by adding some new components of Qt. At least everything is good now.

            Anyway, thank you very much!

            P 1 Reply Last reply 15 Aug 2018, 15:45
            0
            • E EricLiii
              15 Aug 2018, 08:02

              @jsulm
              I have solved this problem by adding some new components of Qt. At least everything is good now.

              Anyway, thank you very much!

              P Offline
              P Offline
              Pablo J. Rogina
              wrote on 15 Aug 2018, 15:45 last edited by
              #6

              @EricLiii please don't forget to mark your post as solved! Thanks.

              Upvote the answer(s) that helped you solve the issue
              Use "Topic Tools" button to mark your post as Solved
              Add screenshots via postimage.org
              Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

              1 Reply Last reply
              0

              3/6

              15 Aug 2018, 01:57

              • Login

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