【问题标题】:Unknown module(s) in QT: qml quick?QT 中的未知模块:qml 快吗?
【发布时间】:2015-11-10 05:35:59
【问题描述】:

我正在尝试将 QT 应用程序部署到 iOS 设备中,

Step1:我从git hubhttps://github.com/qtproject/qtbase.git下载了qtbase源代码

Step2:下载 qtbase 后,我进入 qtbase 文件夹并运行命令(我使用的是 mac mini-osx 10.10.4 yosemite)

./configure -xplatform macx-ios-clang -release

Step3:然后运行

制作

进行安装

Step4 : 库在 /usr/local/QT 5.6/lib 中成功构建

第5步:现在创建一个QT快速应用程序并提到clang-iphone套件。

第 6 步:现在如果我尝试构建,它会说,ERROR: Unknown module(s) in QT: qml quick

任何帮助将不胜感激......

【问题讨论】:

  • 所以你只是编译了 qtbase,而不是 qtdeclarative?
  • 您只编译了基本 git 模块中的模块 - 所以 coresqlguiwidgets... 您需要编译其他模块你也需要。
  • @peppe:我是 qt 新手...所以你能解释一下什么是 qtdeclarative 吗??
  • 你为什么不直接使用预构建的包呢?无论如何,这是您需要克隆和编译的另一个 git 存储库(使用安装 qtbase 时拥有的 qmake)。

标签: qt qml cross-compiling toolchain


【解决方案1】:

尝试安装qtdeclarative5-dev包:

sudo apt install qtdeclarative5-dev

这对我有用

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2017-01-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-02-01
    • 2012-11-11
    • 1970-01-01
    相关资源
    最近更新 更多