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. Unable to build example code
QtWS25 Last Chance

Unable to build example code

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

    Hi have freshly installed QT on a new Windows 10 PC. I loaded the media player example code but I can't build it. I get the following output in the "General Messages" pane:

    Running Windows Runtime device detection.
    No winrtrunner.exe found.
    Could not find qmake spec 'default'.
    Error while parsing file C:\Qt\Examples\Qt-5.9\multimediawidgets\player\player.pro. Giving up.
    C:/Qt/5.9/msvc2015_64/mkspecs/features/toolchain.prf(129): Variable QMAKE_CXX.COMPILER_MACROS is not defined.
    Project ERROR: msvc-version.conf loaded but QMAKE_MSC_VER isn't set
    Error while parsing file C:\Qt\Examples\Qt-5.9\multimediawidgets\player\player.pro. Giving up.

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

      Hi and welcome to devnet,

      Did you install Visual Studio ?

      You seem to be using Qt for WinRT, any specific reason for that ?

      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
      • P Offline
        P Offline
        pnswdv
        wrote on last edited by
        #3

        I do have VS2017 installed.
        The specific reason I am using Qt for WinRT is ignorance! I am brand new to Qt, coming from the Microsoft world, and I thought it would be interesting to build this example. Sounds like I need to change a taget setting somewhere?
        Thanks!

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

          You should either install Qt for MinGW (with compiler provided) or install Qt for Visual Studio 2015. There's no binary yet for 2017 but it's not a real problem since for the first time Microsoft provides a compiler which is backward compatible (In this case only with 2015).

          If you go with VS route, then you'll need to clone the default Kit and change the the compiler to the one from 2017. Then it should work nicely.

          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
          1
          • P Offline
            P Offline
            pnswdv
            wrote on last edited by
            #5

            Thanks! I think I'll try MinGW. Trying to escape from Visual Studio....

            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