Qbs: ReferenceError: Can't find variable: Windows



  • 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.



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



  • 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.



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

    Update: this is working!


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.