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. Qbs: ReferenceError: Can't find variable: Windows
QtWS25 Last Chance

Qbs: ReferenceError: Can't find variable: Windows

Scheduled Pinned Locked Moved Qt Creator and other tools
4 Posts 2 Posters 2.7k 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
    Peter K
    wrote on last edited by
    #1

    I uninstalled Qt 5.2.0 through the maintenance tool and did a clean install of Qt 5.2.1. However, my qbs project that compiles just fine on my other computer, with the same setup, now gives me the following error:

    @C:\Libraries\Qt\Tools\QtCreator\share\qtcreator\qbs\share\qbs\modules\cpp\GenericGCC.qbs:303: error: evaluating prepare script: ReferenceError: Can't find variable: Windows@

    This error pops up upon building my project. The kit I use is MinGW 4.8.2 32bit. The platform is Windows 7.

    As I am not sure which information is relevant, I will post by request, if anyone has some bright ideas.

    1 Reply Last reply
    0
    • I Offline
      I Offline
      Ildar
      wrote on last edited by
      #2

      Hello!
      I have same error in my Qt 5.3.0 on Windows 7. Did you solved the problem?

      1 Reply Last reply
      0
      • P Offline
        P Offline
        Peter K
        wrote on last edited by
        #3

        When you double-click the error, you will be taken to the qbs file, which is GenericGCC.qbs in my case. Here I solved the error by changing "Windows" to "Gcc.Windows".

        The Gcc.Windows variable originates from a gcc.js script that is imported as "GCC" at the top.

        1 Reply Last reply
        0
        • I Offline
          I Offline
          Ildar
          wrote on last edited by
          #4

          Thank you very much for reply! I will try make this changes tomoroow.

          Update: this is working!

          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