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. Compile Qt 5.9.6 from sources for 64 bits: Error in 'nmake' step
QtWS25 Last Chance

Compile Qt 5.9.6 from sources for 64 bits: Error in 'nmake' step

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 202 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.
  • D Offline
    D Offline
    DiegoDonate
    wrote on last edited by
    #1

    Hi,

    Some months ago, I compiled successfully Qt 5.9.6 libraries from sources for 32 bits.

    Now I am trying to compile for 64 bits (using a different 'source' folder) but I get an error in the 'nmake' step:

     fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'x86'
    

    I am using a 'x64 Native Tools Command Prompt for VS 2017' (as Administrator) to execute 'config' & 'nmake' commands.

    I tried to add a new parameter to 'config' command to use 64 libs:
    -libdir "C:\Program Files (x86)\Windows Kits\10\Lib\10.0.18362.0\um\x64"

    but I get the same problem...

    Any help is welcome.

    Diego

    1 Reply Last reply
    0
    • Christian EhrlicherC Online
      Christian EhrlicherC Online
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      You have to start over with a clean build dir.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      2
      • D Offline
        D Offline
        DiegoDonate
        wrote on last edited by
        #3

        Thanks, I thought it was clean but it was not...

        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