开发者社区> 问答> 正文

qt5.2.1安装时的qt moudle quick找不到?报错

我的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' <br /> make[2]: *** [sub-bluetooth-make_first] Error 2 <br /> 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没有安装的问题。非常感谢!

展开
收起
爱吃鱼的程序员 2020-06-22 11:11:54 809 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    一定要用源码自己编译吗?先自己用官方编译好的吧。我之前编译的时候好像最后编译时间太久,索性放弃了,看看他的官方的编译说明应该是可以的

    @这不是达子我记得他有很多依赖,按步骤把那些依赖加上,应该还是比较容易编译通过的谢谢这位朋友。我想qt独特的优势就是在于一次编写,到处编译。另外,我想通过解决源码编译的问题来了解qt中一些概念。所以一定要用源码。遇到了同样的问题 请问您解决了吗
    2020-06-22 11:12:11
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载

相关镜像