sudo apt-get install python sudo apt-get install libicu-dev:armhf libfontconfig1-dev:armhf libfreetype6-dev:armhf libudev-dev:armhf sudo apt-get install libx11-dev:armhf \ libgl2-mesa-dev:armhf \ libfontconfig1-dev:armhf \ libfreetype6-dev:armhf \ libx11-dev:armhf \ libxext-dev:armhf \ libxfixes-dev:armhf \ libxi-dev:armhf \ libxrender-dev:armhf \ libxcb1-dev:armhf \ libx11-xcb-dev:armhf \ libxcb-glx0-dev:armhf
git clone https://gitorious.org/qt/qt5.git cd qt5 ./init-repository
Create
directory; copy files from qtbase/mkspecs/linux-arm-gnueabihf-g++
qtbaase/mkspecs/linux-arm-gnueabi-g++/*
; and then edit qmake.conf
for tool names.
./configure -xplatform linux-arm-gnueabihf-g++ -opensource -confirm-license -optimized-qmake -reduce-exports -release -qt-xcb -nomake tests -prefix /opt/local/arm-linux-gnueabihf/usr/local/qt5 -no-pch
make -j4
This end up with an error: x11 development package not found while building WebKit. I've tried -no-webkit for configuration option but configure return unknown option error for it. According to following post:
https://forum.qt.io/topic/22960/solved-lubuntu-12-10-package-x11-not-found-qt5
I've commented out PKG_CONFIG += x11 lines from three qmake files, and then went through make process and built them all.
$ cd qt5/qtwebkit; git diff -c diff --git a/Source/WebKit/WebKit1.pri b/Source/WebKit/WebKit1.pri index 6fc1829..c64b412 100644 --- a/Source/WebKit/WebKit1.pri +++ b/Source/WebKit/WebKit1.pri @@ -18,7 +18,7 @@ have?(qtpositioning):enable?(GEOLOCATION): QT += positioning contains(CONFIG, texmap): DEFINES += WTF_USE_TEXTURE_MAPPER=1 -use?(PLUGIN_BACKEND_XLIB): PKGCONFIG += x11 +#use?(PLUGIN_BACKEND_XLIB): PKGCONFIG += x11 QT += network diff --git a/Source/WebKit2/Target.pri b/Source/WebKit2/Target.pri index a9179d9..984baa4 100644 --- a/Source/WebKit2/Target.pri +++ b/Source/WebKit2/Target.pri @@ -951,10 +951,10 @@ have?(qtpositioning):enable?(GEOLOCATION): QT += positioning use?(3D_GRAPHICS): WEBKIT += angle -use?(PLUGIN_BACKEND_XLIB) { - DEFINES += XP_UNIX - PKGCONFIG += x11 - DEFINES += MOZ_X11 -} +#use?(PLUGIN_BACKEND_XLIB) { +# DEFINES += XP_UNIX +# PKGCONFIG += x11 +# DEFINES += MOZ_X11 +#} include(DerivedSources.pri) diff --git a/Source/widgetsapi.pri b/Source/widgetsapi.pri index 5c0ad57..8173650 100644 --- a/Source/widgetsapi.pri +++ b/Source/widgetsapi.pri @@ -33,7 +33,7 @@ use?(QT_MULTIMEDIA): QT *= multimediawidgets contains(CONFIG, texmap): DEFINES += WTF_USE_TEXTURE_MAPPER=1 -use?(PLUGIN_BACKEND_XLIB): PKGCONFIG += x11 +#use?(PLUGIN_BACKEND_XLIB): PKGCONFIG += x11 QT += network widgets widgets-private have?(QTPRINTSUPPORT): QT += printsupport