我的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没有安装的问题。非常感谢!