Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Error: 'QtWinExtras' is not installed (solved)



  • I downloaded two qt example, Quickplayer and Musicplayer.

    when i run both sample, error shows module "QtWinExtras" is not installed
    and QtWinExtras:No such file or directory.

    can someone direct me to the link on how to get QtWinExtra installed?
    I search and can't find this files in the internet


  • Lifetime Qt Champion

    Hi,

    How did you installed Qt ? Online installer ? Offline ? Which version are you using ? On what exact OS ?



  • i am using Qt Creator 3.1.2 (opensource) based on Qt 5.3.1
    My host platform is unix ubuntu
    distributor ID: ubuntu
    Description: Ubuntu 12.04.5 LTS
    release:12.04
    Codename: precise
    ==SDK download=====================================
    I download it from http://qt.nokia.com/downloads
    chmod u+x qt-sdk-linux-x86-opensource-2010.04.bin
    ./qt-sdk-linux-x86-opensource-2010.04.bin


  • Lifetime Qt Champion

    That won't work, you are trying to build a Windows specific example relying on a Windows specific module on linux with a 4 year old SDK



  • please guide me how to install a newest qt SDK or the link on how it can be done... i am a newbie


  • Lifetime Qt Champion

    Just grab the SDK from the "download page":http://www.qt.io/download/



  • So, i presumed the problem below is due to old version of Qtcreator.

    "/home/common/Qt5.3.1/Examples/Qt-5.3/winextras/musicplayer/musicplayer.cpp:45: error: QtWinExtras: No such file or directory"

    Sadly, i cannot change this old version of Qtcreator, because my Qtcreator version has to be in syn with Qt-everywhere for embedded.
    I think i will stop here.


  • Lifetime Qt Champion

    It has nothing to do with the version of Qt Creator.

    You are trying to build a Windows (as in Microsoft Windows ™) specific example on Linux. The winextras module is for Windows specific additional classes/helper functions etc. You have the same for OS X/iOS with the QtMacExtras module and for linux it's the QtX11Extras module.


Log in to reply