• 5945阅读
  • 2回复

[提问]qt5.2.1安装时的qt moudle quick找不到 [复制链接]

上一主题 下一主题
离线sculida
 

只看楼主 倒序阅读 楼主  发表于: 2014-04-01
我的linux在virtualbox中:
Linux version 3.11.0-18-generic (buildd@orlo) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) ) #32~precise1-Ubuntu SMP Thu Feb 20 17:54:21 UTC 2014
-------------------------------------------------------------------------------------------------------------------------------------------------------
第一步:从qt官网下载qt-everywhere-opensource-src-5.2.1.tar.gz
-------------------------------------------------------------------------------------------------------------------------------------------------------
第二部:直接无脑./configure什么配置参数一概不用。选择开源版。得到下述结果(好像真的没有quick module)

Build options:
  Configuration .......... accessibility audio-backend avx c++11 clock-gettime clock-monotonic compile_examples concurrent evdev eventfd freetype full-config getaddrinfo getifaddrs iconv inotify ipv6ifname large-config largefile linuxfb medium-config minimal-config mremap nis no-harfbuzz pcre png posix_fallocate precompile_header qpa qpa reduce_exports reduce_relocations release rpath shared small-config sse2 sse3 sse4_1 sse4_2 ssse3 zlib
  Build parts ............ libs tools examples
  Mode ................... release
  Using C++11 ............ yes
  Using PCH .............. yes
  Target compiler supports:
    SSE2/SSE3/SSSE3 ...... yes/yes/yes
    SSE4.1/SSE4.2 ........ yes/yes
    AVX/AVX2 ............. yes/no

Qt modules and options:
  Qt D-Bus ............... no
  Qt Concurrent .......... yes
  Qt GUI ................. yes
  Qt Widgets ............. yes
  JavaScriptCore JIT ..... yes (To be decided by JavaScriptCore)
  QML debugging .......... yes
  Use system proxies ..... no

Support enabled for:
  Accessibility .......... yes
  ALSA ................... no
  CUPS ................... no
  FontConfig ............. no
  FreeType ............... yes
  Iconv .................. yes
  ICU .................... no
  Image formats:
    GIF .................. yes (plugin, using bundled copy)
    JPEG ................. yes (plugin, using bundled copy)
    PNG .................. yes (in QtGui, using bundled copy)
  Glib ................... no
  GTK theme .............. no
  Large File ............. yes
  mtdev .................. no
  Networking:
    getaddrinfo .......... yes
    getifaddrs ........... yes
    IPv6 ifname .......... yes
    OpenSSL .............. no
  NIS .................... yes
  OpenGL ................. no
  OpenVG ................. no
  PCRE ................... yes (bundled copy)
  pkg-config ............. yes
  PulseAudio ............. no
  QPA backends:
    DirectFB ............. no
    EGLFS ................ no
    KMS .................. no
    LinuxFB .............. yes
    XCB .................. no
  Session management ..... yes
  SQL drivers:
    DB2 .................. no
    InterBase ............ no
    MySQL ................ no
    OCI .................. no
    ODBC ................. no
    PostgreSQL ........... no
    SQLite 2 ............. no
    SQLite ............... yes (plugin, using bundled copy)
    TDS .................. no
  udev ................... no
  xkbcommon .............. no
  zlib ................... yes (bundled copy)
-------------------------------------------------------------------------------------------------------------------------------------------------------
第三步:make,得到错误提示:

cd scanner/ && ( test -e Makefile || /root/qt-everywhere-opensource-src-5.2.1/qtbase/bin/qmake /root/qt-everywhere-opensource-src-5.2.1/qtconnectivity/examples/bluetooth/scanner/scanner.pro -o Makefile ) && make -f Makefile
Project ERROR: Unknown module(s) in QT: quick
make[3]: *** [sub-scanner-make_first] Error 3
make[3]: Leaving directory `/root/qt-everywhere-opensource-src-5.2.1/qtconnectivity/examples/bluetooth'
make[2]: *** [sub-bluetooth-make_first] Error 2
make[2]: Leaving directory `/root/qt-everywhere-opensource-src-5.2.1/qtconnectivity/examples'
make[1]: *** [sub-examples-make_first] Error 2
make[1]: Leaving directory `/root/qt-everywhere-opensource-src-5.2.1/qtconnectivity'
make: *** [module-qtconnectivity-make_first] Error 2
-------------------------------------------------------------------------------------------------------------------------------------------------------
后来我参考包中自带的readme文档,输入./configure -j4 -module-quick或者./configure -j -module-qtquick,依旧报错,如下。

root@lida-VirtualBox:~/qt-everywhere-opensource-src-5.2.1# ./configure -j4 -module-quick
+ cd qtbase
+ /root/qt-everywhere-opensource-src-5.2.1/qtbase/configure -top-level -j4 -module-quick
-j4: invalid command-line switch
-module-quick: invalid command-line switch
root@lida-VirtualBox:~/qt-everywhere-opensource-src-5.2.1# ./configure -j4 -module-qtquick
+ cd qtbase
+ /root/qt-everywhere-opensource-src-5.2.1/qtbase/configure -top-level -j4 -module-qtquick
-j4: invalid command-line switch
-module-qtquick: invalid command-line switch
-------------------------------------------------------------------------------------------------------------------------------------------------------
提问:什么复杂的qt webkit,qt 帧缓冲工具我都无所谓,只要这个./configure默认参数能够编译成功就行。
请各位前辈指点指点,怎么解决这个qt moudle quick没有安装问题。非常感谢!
离线sculida

只看该作者 1楼 发表于: 2014-04-02
自己顶一个。盼前辈能指点一二
离线XChinux

只看该作者 2楼 发表于: 2014-04-21
Ubuntu里的话直接从源里安装吧,或者直接安装官方编译好的二进制包,现在Qt这么庞大,自己编译比较费劲。
二笔 openSUSE Vim N9 BB10 XChinux@163.com 网易博客 腾讯微博
承接C++/Qt、Qt UI界面、PHP及预算报销系统开发业务
快速回复
限100 字节
 
上一个 下一个