pcworld / qt5-qpa-webos-plugin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Qt5 QPA webOS plugin

Build requirements

  • Linux PC
  • PalmSDK

How to build Qt

Download Qt sources (qt-everywhere-opensource-src-5.9.1.tar.xz) from official site and untar it somewhere.

mkdir /home/nizovn/webos/qt5/qt5.9
tar xvf qt-everywhere-opensource-src-5.9.1.tar.xz -C /home/nizovn/webos/qt5/qt5.9

Download and untar gcc cross toolchain (gcc-linaro-4.8-2015.06-x86_64_arm-linux-gnueabi.tar.xz) from linaro site.

tar xvf gcc-linaro-4.9-2016.02-x86_64_arm-linux-gnueabi.tar.xz -C /home/nizovn/webos/qt5/qt5.9

Copy files/linux-webos-arm-gnueabi-g++ directory to qt-everywhere-opensource-src-5.9.1/qtbase/mkspecs. Edit QT5_WEBOS_PATH variable in qmake.conf to your directory.

Copy libraries and headers required for building Qt.

cp -Rf files/device /home/nizovn/webos/qt5/qt5.9

Patch qtwebengine to disable udev support.

patch /home/nizovn/webos/qt5/qt5.9/qt-everywhere-opensource-src-5.9.1/qtwebengine/src/core/config/embedded_linux.pri files/embedded_linux.pri.patch

Copy configure script (adjust build directory path) into Qt directory and execute it.

cp files/configurePalmHD.5.9.sh /home/nizovn/webos/qt5/qt5.9/qt-everywhere-opensource-src-5.9.1
cd /home/nizovn/webos/qt5/qt5.9/qt-everywhere-opensource-src-5.9.1
./configurePalmHD.5.9.sh

Build Qt.

make -j8
make install

How to build webos plugin

cd webos
/home/nizovn/webos/qt5/qt5.9/runtime/host/bin/qmake -o Makefile webos.pro
make
make install

About


Languages

Language:C 88.1%Language:C++ 10.5%Language:Logos 0.9%Language:Batchfile 0.5%Language:Objective-C 0.0%Language:QMake 0.0%Language:Shell 0.0%