Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. PRF Architecture issue in Windows

PRF Architecture issue in Windows

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
1 Posts 1 Posters 294 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.
  • mranger90M Offline
    mranger90M Offline
    mranger90
    wrote on last edited by
    #1

    Hello,
    I have the following in my xxx.prf file:

    # Determine Compiler
    compileTYPE = "Win32"
    message("Architecture is $$QMAKE_HOST.arch")
    win32:contains(QMAKE_TARGET.arch, x86_64) {
      compileTYPE = "Win64"
    }
    export(compileTYPE)
    
    # Print out job description
    message("Creating '$$TARGET' makefile ($$compileTYPE)-($$scTYPE)...")
    

    The problem is that when QtCreator starts up, it parses this determines that the architecture is x86.
    When running QMake over the project, it correctly identifies that architecture as x86_64 so that all my output files are placed correctly.
    HOWEVER. since the original parsing by QtCreator resulted in incorrect architecture, attempting to debug or execute the application from inside of QtCreator fails because its looking in the wrong path, and there is no way to reset this.
    I know that a workaround is to just code as Win64, but I want to know what Qt is looking at on startup that causes it to be wrong.

    Before you even ask:
    Qt versions: 5.9.2 and 5.10
    Windows Versions: Win8.1 (64 bit) Embedded and Win10 (64 bit)
    Compilers: MSVC 12.0 and MSVC 15.0

    Also, I know that the example shown is looking at 2 different variables (QMAKE_HOST and QMAKE_TARGET), this just debugging and the results are the same.
    Thanks.

    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