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.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.
  • E Offline
    E Offline
    EricLiii
    wrote on 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!

    jsulmJ 1 Reply Last reply
    0
    • E EricLiii

      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!

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on 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
      2
      • jsulmJ jsulm

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

        jsulmJ 1 Reply Last reply
        0
        • E EricLiii

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

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on 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
          0
          • jsulmJ jsulm

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

            E Offline
            E Offline
            EricLiii
            wrote on 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!

            Pablo J. RoginaP 1 Reply Last reply
            0
            • E EricLiii

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

              Anyway, thank you very much!

              Pablo J. RoginaP Offline
              Pablo J. RoginaP Offline
              Pablo J. Rogina
              wrote on 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

              • Login

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