Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Qt 5.3 qml static linking
Qt 6.11 is out! See what's new in the release blog

Qt 5.3 qml static linking

Scheduled Pinned Locked Moved Installation and Deployment
2 Posts 2 Posters 2.5k 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.
  • M Offline
    M Offline
    mib383
    wrote on last edited by
    #1

    Hi all.
    Help please.
    I am a beginner of Qt. I want to build a qml ui statically . I read the artical how to build qt statically . Every thing is ok if i donot use qml in the sourse file .

    When i build my source file statically using qml that does not work !! shows errors !! what should i do now !! This is my code bellow.
    @
    #include <QApplication>
    #include <QQmlApplicationEngine>

    int main(int argc, char *argv[])
    {
    QApplication app(argc, argv);

    QQmlApplicationEngine engine;
    engine.load(QUrl(QStringLiteral("qrc:///main.qml")));
    
    return app.exec();
    

    }
    @
    And .pro file:
    @
    TEMPLATE = app

    QT += qml quick widgets

    SOURCES += main.cpp

    RESOURCES += qml.qrc

    Additional import path used to resolve QML modules in Qt Creator's code model

    QML_IMPORT_PATH =

    Default rules for deployment.

    include(deployment.pri)
    @

    The error is:
    Project ERROR: Unknown module(s) in QT: quick qml

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      I had the same problem a while ago, but with Qt 5.2.1

      I managed to solve it by installing Python and adding a reference to it in the PATH variable, since I've read somewhere that those modules require Python to be built.

      You can find my follow up post here:
      "http://qt-project.org/forums/viewthread/42559/":http://qt-project.org/forums/viewthread/42559/

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