Тема: Компіляція Qt
Розваги із багом у блютусі продовжуються. Розробники скинули мені патч, але я не можу його протестувати, бо Qt ніфіга не компілюється!
Всі мануали дуже красиві і складаються із трьох пунтків:
./configure
make
make install
Але воно ніфіга не працює!
Пробував качати сорси qt-everywhere-opensource-src-5.6.0 — помилка на кроці ./configure (толком не каже що хоче)
Пробувати компілювати сорси, які йдуть у комплекті зі бінарниками — конфігурація проходить:
▼Прихований текст
adr@adr-laptop:~/.Qt/5.6/Src$ ./configure -prefix ../x64
+ cd qtbase
+ /home/adr/.Qt/5.6/Src/qtbase/configure -top-level -prefix ../x64
Which edition of Qt do you want to use ?
Type 'c' if you want to use the Commercial Edition.
Type 'o' if you want to use the Open Source Edition.
o
This is the Qt Open Source Edition.
You are licensed to use this software under the terms of
the Lesser GNU General Public License (LGPL) versions 2.1.
You are also licensed to use this software under the terms of
the GNU Lesser General Public License (LGPL) versions 3.
Type '3' to view the GNU Lesser General Public License version 3.
Type 'L' to view the Lesser GNU General Public License version 2.1.
Type 'yes' to accept this license offer.
Type 'no' to decline this license offer.
Do you accept the terms of either license? yes
Running configuration tests (phase 1)...
Done running configuration tests.
Creating qmake...
.Done.
Running configuration tests (phase 2)...
Done running configuration tests.
Configure summary
Build type: linux-g++ (x86_64, CPU features: mmx sse sse2)
Platform notes:
- Also available for Linux: linux-clang linux-kcc linux-icc linux-cxx
Build options:
Configuration .......... accessibility accessibility-atspi-bridge audio-backend avx avx2 c++11 clock-gettime clock-monotonic compile_examples concurrent dbus dbus-linked egl eglfs egl_x11 enable_new_dtags evdev eventfd fontconfig full-config getaddrinfo getifaddrs harfbuzz iconv inotify ipv6ifname large-config largefile linuxfb medium-config minimal-config mremap nis opengl openssl pcre png posix_fallocate precompile_header qpa qpa reduce_exports reduce_relocations release rpath shared small-config sse2 sse3 sse4_1 sse4_2 ssse3 system-freetype system-png system-zlib threadsafe-cloexec use_gold_linker xcb xcb-glx xcb-plugin xcb-render xcb-sm xcb-xlib xkbcommon-qt xlib xrender
Build parts ............ libs tools examples
Mode ................... release
Using sanitizer(s)...... none
Using C++ standard ..... c++11
Using gold linker....... yes
Using new DTAGS ........ yes
Using PCH .............. yes
Using LTCG ............. no
Target compiler supports:
SSE2/SSE3/SSSE3 ...... yes/yes/yes
SSE4.1/SSE4.2 ........ yes/yes
AVX/AVX2 ............. yes/yes
Qt modules and options:
Qt D-Bus ............... yes (linked to dbus-1)
Qt Concurrent .......... yes
Qt GUI ................. yes
Qt Widgets ............. yes
Large File ............. yes
QML debugging .......... yes
Use system proxies ..... no
Support enabled for:
Accessibility .......... yes
ALSA ................... no
CUPS ................... no
Evdev .................. yes
FontConfig ............. yes
FreeType ............... yes (system library)
Glib ................... no
GStreamer .............. no
GTK theme .............. no
HarfBuzz ............... yes (bundled copy)
Iconv .................. yes
ICU .................... no
Image formats:
GIF .................. yes (plugin, using bundled copy)
JPEG ................. yes (plugin, using bundled copy)
PNG .................. yes (in QtGui, using system library)
libinput................ no
Logging backends:
journald ............... no
syslog ............... no
mtdev .................. no
Networking:
getaddrinfo .......... yes
getifaddrs ........... yes
IPv6 ifname .......... yes
libproxy.............. no
OpenSSL .............. yes (loading libraries at run-time)
NIS .................... yes
OpenGL / OpenVG:
EGL .................. yes
OpenGL ............... desktop
OpenVG ............... no
PCRE ................... yes (bundled copy)
pkg-config ............. yes
PulseAudio ............. no
QPA backends:
DirectFB ............. no
EGLFS ................ yes
EGLFS i.MX6 ........ no
EGLFS i.MX6 Wayland. no
EGLFS EGLDevice .... no
EGLFS GBM .......... no
EGLFS Mali ......... no
EGLFS Raspberry Pi . no
EGLFS X11 .......... yes
LinuxFB .............. yes
Mir client............ no
XCB .................. yes (system library)
EGL on X ........... yes
GLX ................ yes
MIT-SHM ............ yes
Xcb-Xlib ........... yes
Xcursor ............ yes (loaded at runtime)
Xfixes ............. yes (loaded at runtime)
Xi ................. yes (loaded at runtime)
Xi2 ................ no
Xinerama ........... yes (loaded at runtime)
Xrandr ............. yes (loaded at runtime)
Xrender ............ yes
XKB ................ yes
XShape ............. yes
XSync .............. yes
XVideo ............. yes
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
tslib .................. no
udev ................... no
xkbcommon-x11........... yes (bundled copy, XKB config root: /usr/share/X11/xkb)
xkbcommon-evdev......... no
zlib ................... yes (system library)
Qt is now configured for building. Just run 'make'.
Once everything is built, you must run 'make install'.
Qt will be installed into /home/adr/.Qt/5.6/Src/x64
Prior to reconfiguration, make sure you remove any leftovers from
the previous build.
І воно мені каже:
Qt is now configured for building. Just run 'make'.
Ага! Фігушки!
▼Прихований текст
adr@adr-laptop:~/.Qt/5.6/Src$ make
cd qtbase/ && ( test -e Makefile || /home/adr/.Qt/5.6/Src/qtbase/bin/qmake /home/adr/.Qt/5.6/Src/qtbase/qtbase.pro -o Makefile ) && make -f Makefile
make[1]: Вхожу у каталог "/home/adr/.Qt/5.6/Src/qtbase"
/home/adr/.Qt/5.6/Src/qtbase/bin/qmake -o Makefile qtbase.pro
make[1]: Залишаю каталог "/home/adr/.Qt/5.6/Src/qtbase"
make[1]: Вхожу у каталог "/home/adr/.Qt/5.6/Src/qtbase"
cd src/ && ( test -e Makefile || /home/adr/.Qt/5.6/Src/qtbase/bin/qmake /home/adr/.Qt/5.6/Src/qtbase/src/src.pro -o Makefile ) && make -f Makefile
make[2]: Вхожу у каталог "/home/adr/.Qt/5.6/Src/qtbase/src"
/home/adr/.Qt/5.6/Src/qtbase/bin/qmake -o Makefile src.pro
make[2]: Залишаю каталог "/home/adr/.Qt/5.6/Src/qtbase/src"
make[2]: Вхожу у каталог "/home/adr/.Qt/5.6/Src/qtbase/src"
cd tools/bootstrap/ && ( test -e Makefile || /home/adr/.Qt/5.6/Src/qtbase/bin/qmake /home/adr/.Qt/5.6/Src/qtbase/src/tools/bootstrap/bootstrap.pro -o Makefile ) && make -f Makefile
make[3]: Вхожу у каталог "/home/adr/.Qt/5.6/Src/qtbase/src/tools/bootstrap"
/home/adr/.Qt/5.6/Src/qtbase/bin/qmake -o Makefile bootstrap.pro
make[3]: Залишаю каталог "/home/adr/.Qt/5.6/Src/qtbase/src/tools/bootstrap"
make[3]: Вхожу у каталог "/home/adr/.Qt/5.6/Src/qtbase/src/tools/bootstrap"
make[3]: Ціль "first" не вимагає виконання команд.
make[3]: Залишаю каталог "/home/adr/.Qt/5.6/Src/qtbase/src/tools/bootstrap"
cd tools/moc/ && ( test -e Makefile || /home/adr/.Qt/5.6/Src/qtbase/bin/qmake /home/adr/.Qt/5.6/Src/qtbase/src/tools/moc/moc.pro -o Makefile ) && make -f Makefile
make[3]: Вхожу у каталог "/home/adr/.Qt/5.6/Src/qtbase/src/tools/moc"
/home/adr/.Qt/5.6/Src/qtbase/bin/qmake -o Makefile moc.pro
make[3]: Залишаю каталог "/home/adr/.Qt/5.6/Src/qtbase/src/tools/moc"
make[3]: Вхожу у каталог "/home/adr/.Qt/5.6/Src/qtbase/src/tools/moc"
make[3]: Ціль "first" не вимагає виконання команд.
make[3]: Залишаю каталог "/home/adr/.Qt/5.6/Src/qtbase/src/tools/moc"
cd tools/rcc/ && ( test -e Makefile || /home/adr/.Qt/5.6/Src/qtbase/bin/qmake /home/adr/.Qt/5.6/Src/qtbase/src/tools/rcc/rcc.pro -o Makefile ) && make -f Makefile
make[3]: Вхожу у каталог "/home/adr/.Qt/5.6/Src/qtbase/src/tools/rcc"
/home/adr/.Qt/5.6/Src/qtbase/bin/qmake -o Makefile rcc.pro
make[3]: Залишаю каталог "/home/adr/.Qt/5.6/Src/qtbase/src/tools/rcc"
make[3]: Вхожу у каталог "/home/adr/.Qt/5.6/Src/qtbase/src/tools/rcc"
make[3]: Ціль "first" не вимагає виконання команд.
make[3]: Залишаю каталог "/home/adr/.Qt/5.6/Src/qtbase/src/tools/rcc"
cd 3rdparty/pcre/ && ( test -e Makefile || /home/adr/.Qt/5.6/Src/qtbase/bin/qmake /home/adr/.Qt/5.6/Src/qtbase/src/3rdparty/pcre/pcre.pro -o Makefile ) && make -f Makefile
make[3]: Вхожу у каталог "/home/adr/.Qt/5.6/Src/qtbase/src/3rdparty/pcre"
/home/adr/.Qt/5.6/Src/qtbase/bin/qmake -o Makefile pcre.pro
make[3]: Залишаю каталог "/home/adr/.Qt/5.6/Src/qtbase/src/3rdparty/pcre"
make[3]: Вхожу у каталог "/home/adr/.Qt/5.6/Src/qtbase/src/3rdparty/pcre"
make[3]: Ціль "first" не вимагає виконання команд.
make[3]: Залишаю каталог "/home/adr/.Qt/5.6/Src/qtbase/src/3rdparty/pcre"
cd corelib/ && ( test -e Makefile || /home/adr/.Qt/5.6/Src/qtbase/bin/qmake /home/adr/.Qt/5.6/Src/qtbase/src/corelib/corelib.pro -o Makefile ) && make -f Makefile
make[3]: Вхожу у каталог "/home/adr/.Qt/5.6/Src/qtbase/src/corelib"
/home/adr/.Qt/5.6/Src/qtbase/bin/qmake -o Makefile corelib.pro
make[3]: Залишаю каталог "/home/adr/.Qt/5.6/Src/qtbase/src/corelib"
make[3]: Вхожу у каталог "/home/adr/.Qt/5.6/Src/qtbase/src/corelib"
make[3]: Ціль "first" не вимагає виконання команд.
make[3]: Залишаю каталог "/home/adr/.Qt/5.6/Src/qtbase/src/corelib"
cd tools/qlalr/ && ( test -e Makefile || /home/adr/.Qt/5.6/Src/qtbase/bin/qmake /home/adr/.Qt/5.6/Src/qtbase/src/tools/qlalr/qlalr.pro -o Makefile ) && make -f Makefile
make[3]: Вхожу у каталог "/home/adr/.Qt/5.6/Src/qtbase/src/tools/qlalr"
/home/adr/.Qt/5.6/Src/qtbase/bin/qmake -o Makefile qlalr.pro
make[3]: Залишаю каталог "/home/adr/.Qt/5.6/Src/qtbase/src/tools/qlalr"
make[3]: Вхожу у каталог "/home/adr/.Qt/5.6/Src/qtbase/src/tools/qlalr"
make[3]: Ціль "first" не вимагає виконання команд.
make[3]: Залишаю каталог "/home/adr/.Qt/5.6/Src/qtbase/src/tools/qlalr"
cd network/ && ( test -e Makefile || /home/adr/.Qt/5.6/Src/qtbase/bin/qmake /home/adr/.Qt/5.6/Src/qtbase/src/network/network.pro -o Makefile ) && make -f Makefile
make[3]: Вхожу у каталог "/home/adr/.Qt/5.6/Src/qtbase/src/network"
/home/adr/.Qt/5.6/Src/qtbase/bin/qmake -o Makefile network.pro
make[3]: Залишаю каталог "/home/adr/.Qt/5.6/Src/qtbase/src/network"
make[3]: Вхожу у каталог "/home/adr/.Qt/5.6/Src/qtbase/src/network"
g++ -c -include .pch/Qt5Network -pipe -O2 -std=c++0x -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -Wall -W -D_REENTRANT -fPIC -DQT_NO_MTDEV -DQT_NO_LIBUDEV -DQT_NO_TSLIB -DQT_NO_LIBINPUT -DQT_NO_USING_NAMESPACE -DQT_BUILD_NETWORK_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_CORE_LIB -I. -I../../include -I../../include/QtNetwork -I../../include/QtNetwork/5.6.0 -I../../include/QtNetwork/5.6.0/QtNetwork -Ikernel -I/home/adr/.Qt/5.6/Src/x64/include/QtCore/5.6.0 -I/home/adr/.Qt/5.6/Src/x64/include/QtCore/5.6.0/QtCore -I../../include/QtCore -I.moc -I../../mkspecs/linux-g++ -o .obj/qftp.o access/qftp.cpp
access/qftp.cpp:1258:31: fatal error: private/qobject_p.h: Немає такого файла або каталогу
#include <private/qobject_p.h>
^
compilation terminated.
make[3]: *** [.obj/qftp.o] Помилка 1
make[3]: Залишаю каталог "/home/adr/.Qt/5.6/Src/qtbase/src/network"
make[2]: *** [sub-network-make_first] Помилка 2
make[2]: Залишаю каталог "/home/adr/.Qt/5.6/Src/qtbase/src"
make[1]: *** [sub-src-make_first] Помилка 2
make[1]: Залишаю каталог "/home/adr/.Qt/5.6/Src/qtbase"
make: *** [module-qtbase-make_first] Помилка 2
Що я роблю не так?