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. MSVC2017 compiler "not recognized" inside .pri file.
QtWS25 Last Chance

MSVC2017 compiler "not recognized" inside .pri file.

Scheduled Pinned Locked Moved Solved General and Desktop
primsvc2017
4 Posts 2 Posters 528 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.
  • B Offline
    B Offline
    bwylegly
    wrote on last edited by
    #1

    Im trying to do sort of "clean up" of my solution output. My project consists of 3 sub-projects. Im trying to construct build path of the following pattern:
    Operating System > Compiler > Processor
    Architecture > Build Configuration.

    I have created qmake-target-platform.pri inside my root project directory:

    win32 {
        CONFIG += PLATFORM_WIN
        message(PLATFORM_WIN)
        win32-g++ {
            CONFIG += COMPILER_GCC
            message(COMPILER_GCC)
        }
        win32-msvc2017 {
            CONFIG += COMPILER_MSVC2017
            message(COMPILER_MSVC2017)
        }
    }
    
    /* Configuration for linux and mac,  target architecture detection and build*/
    
    

    When switching between debug/release/profile builds with MinGW everything works just fine:

    Project MESSAGE: PLATFORM_WIN
    Project MESSAGE: COMPILER_GCC
    Project MESSAGE: PROCESSOR_x86
    Project MESSAGE: BUILD_RELEASE
    

    But when I change compiler to MSVC, it looks like part related to MSVC compiler detection inside .pri file is "false":

    Project MESSAGE: PLATFORM_WIN
    Project MESSAGE: PROCESSOR_x86
    Project MESSAGE: BUILD_DEBUG
    

    Can anybody help me out? Im not that much into messing with compilers, so I don't really have an idea what's going on.

    For my project im using Desktop Qt 5.14.2 MinGW 32-bit and Desktop Qt 5.14.2 MSVC2017 32bit

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      AFAIR, the selector is win32-msvc.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • B Offline
        B Offline
        bwylegly
        wrote on last edited by
        #3

        Hi,
        Works as intended, thank you. Is there any qt doc where I can find all of those listed for future needs?

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          AFAIR, they match the mkspecs that you can find in your Qt installation.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          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