无法在Amazon Centos上编译QT 5.5.1:项目错误:QT中的未知模块:快速

时间:2015-12-06 14:34:19

标签: linux qt amazon-ec2

我正在尝试在Amazon AMI 2015.09上编译QT 5.5.1,它看起来很像Centos 6.5。

我一直收到这个错误:

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

但是,我找不到quick模块,也没有明显的方法可以禁用它来查看./configure脚本。

我的程序:

  1. 我下载了qt-everywhere-opensource-src-5.5.1.tar.gz
  2. 我打开包装。
  3. 我跑了./configure
  4. 确认我需要开源许可并同意LGPL。
  5. Ran gmake -j4(但我对gmake的行为与<{1}}相同。
  6. 有趣的是,make distclean给了我这个错误:

    Project ERROR: Unknown module(s) in QT: quick-private
    

    以下是发送到STDERR的所有错误:

    Checking for openal... Checking for bluez... no
    Checking for bluez_le... no
    Checking for btapi10_2_1... no
    /home/ec2-user/qt-everywhere-opensource-src-5.5.1/qtmultimedia/qtmultimedia.pro:28: Variable GST_VERSION is not defined.
    Checking for resourcepolicy... no
    Checking for gpu_vivante... no
    Checking for libbb2... no
    no
    Project MESSAGE: Unsupported Bluetooth platform, will not build a working QtBluetooth library.
    Project MESSAGE: Either no Qt D-Bus found or no BlueZ headers.
    qbluetoothdevicediscoveryagent_p.h:0: Note: No relevant classes found. No output generated.
    qbluetoothservicediscoveryagent_p.h:0: Note: No relevant classes found. No output generated.
    qbluetoothserver_p.h:0: Note: No relevant classes found. No output generated.
    qbluetoothlocaldevice_p.h:0: Note: No relevant classes found. No output generated.
    Checking for assimp... no
    Project ERROR: Unknown module(s) in QT: quick
    gmake[4]: *** [sub-textureandlight-make_first] Error 3
    gmake[3]: *** [sub-canvas3d-make_first] Error 2
    gmake[2]: *** [sub-canvas3d-make_first] Error 2
    gmake[1]: *** [sub-examples-make_first] Error 2
    gmake: *** [module-qtcanvas3d-make_first] Error 2
    gmake: *** Waiting for unfinished jobs....
    

    在另一张海报的建议下,我尝试了./configure -skip qtquick,但这不起作用:

    $ ./configure -skip qtquick
    + cd qtbase
    + /home/ec2-user/qt-everywhere-opensource-src-5.5.1/qtbase/configure -top-level -skip qtquick
    Attempting to skip non-existent module qtquick.
    $ 
    

1 个答案:

答案 0 :(得分:1)

我认为这将解决您的问题:

  1. 您使用`make confclean &#39;而不是使用distclean来删除以前的配置。
  2. 以详细模式配置 - 将提供更多信息,抱歉,我不记得确切的标记,如果我没有弄错,它是 -v
  3. 如果您不需要快速,请在配置中添加 - 跳过qtquick