Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Project ERROR: Unknown module(s) in QT: script -- using prebuilt Qt with Qt Script module installed
Qt 6.11 is out! See what's new in the release blog

Project ERROR: Unknown module(s) in QT: script -- using prebuilt Qt with Qt Script module installed

Scheduled Pinned Locked Moved Solved Installation and Deployment
2 Posts 2 Posters 426 Views 1 Watching
  • 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.
  • J Offline
    J Offline
    JW16
    wrote on last edited by JW16
    #1

    Hello,
    After following the advice I received from @SGaist in this thread, I have installed a prebuilt Qt 5.15.2 using the online installer.

    Now, when I point at my prebuilt Qt directory and try to build a fresh checkout of my application source, I am met with the qmake error: "Project ERROR: Unknown module(s) in QT: script"

    However, I ensured I had selected Qt Script as one of the components to install in the online installer, and using the maintenance tool now, I can see that it is in fact installed. Was there an additional step I need to take that the online installer neglected to mention?

    The .bat file I ran to set up my environment before attempting this looks like:

    call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" amd64
    
    echo Setting up a Qt environment...
    set QTVER=5.15.2
    set MSVER=2015
    set QTDIR=C:\Qt\prebuilt\5.15.2\winrt_x64_msvc2015
    echo -- QTDIR set to %QTDIR%
    set PATH=%QTDIR%\bin;%PATH%
    echo -- Added %QTDIR%\bin to PATH
    set QMAKESPEC=winrt-x64-msvc2015
    echo -- QMAKESPEC set to %QMAKESPEC%
    

    maintenancetool.png

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

      Hi,

      You selected the winrt mkspec, I have a doubt that the QtScript module is available for that variant. Can you check 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

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved