3

I've seen a lot of topics about this problem but none can actually solve my problem. When I create a new Qt Quick application with QtQuick 2.4 I have the error:

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

If I import QtQuick 1.1 I have:

Project ERROR: Unknown module(s) in QT: declarative

Is there any way to create a Qt Quick applications with static libraries using Qt 5.4?

Kjuly
  • 34,476
  • 22
  • 104
  • 118
  • How did you build your static Qt? (assuming that you did, because i'm not aware of pre-packageed static builds other than for iOS). It looks like the qtdeclarative or qtquick1 modules weren't included in the build. Add more information about the Qt you use and the .pro file of your project. – Frank Osterfeld Apr 08 '15 at 21:08
  • Frank Osterfeld, hello. I built my static version according to this instruction (scroll down to read in english). – Dmitriy Baranov Apr 09 '15 at 13:58
  • https://bhf.su/threads/40764/?attempt=1 – Dmitriy Baranov Apr 09 '15 at 18:15
  • 2
    By building static Qt You loose plugins (QML system consists of multiple plug-in DLLs), which means that these plug-ins have to be compiled into static Qt build in order to work. Build guide that You've provided link to does not compile static Qt with plug-ins. Looking at configuration string used, it looks like pretty much standard Qt configuration which, as You've already understood, does not include QML plug-ins. – Maz T Apr 09 '15 at 20:59
  • 2
    @Mažvydas Tadaravičius thanks for reply. Can u give me correct configuration string please? – Dmitriy Baranov Apr 10 '15 at 11:05

0 Answers0