Commit Graph

36 Commits

Author SHA1 Message Date
Javier Viguera 64010754d0 qtsmarthome: move desktop launcher from qt5-demo-extrafiles recipe
Instead of having a recipe to add launchers for a bunch of applications
(most of them are not available anymore) move the qtsmarthome launcher
to the recipe that installs the package.

https://jira.digi.com/browse/DEL-3912

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-08-10 11:32:44 +02:00
Javier Viguera 48ff14dc78 qtsmarthome: fix missing runtime dependence
The demo application uses 'svg' images, so at runtime it depends on
'qtsvg-plugins' package.

Also add a patch to fix a runtime warning:

  Both point size and pixel size set. Using pixel size

https://jira.digi.com/browse/DEL-3912

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-08-10 11:32:11 +02:00
Javier Viguera e623c365ff qt: add support for Qt Quick 2D Renderer in the CC6UL
This is an alternative software based renderer for QtQuick2
applications for hardware that doesn't have a GPU.

This is the case of the CC6UL. It does not have a GPU, so the only way
to run QML applications is using this software renderer.

https://jira.digi.com/browse/DEL-3912

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-08-09 18:31:12 +02:00
Javier Viguera c62d5e1e42 qtbase: optimize libraries for size on CC6UL
This patch makes smaller libQt libraries saving some space in the CC6UL
rootfs.

Libraries size before the patch:

root@ccimx6ulsbc:~# ls -l /usr/lib/libQt*5.7.1
     22448 Aug  /usr/lib/libQt5Concurrent.so.5.7.1
   5347036 Aug  /usr/lib/libQt5Core.so.5.7.1
    508464 Aug  /usr/lib/libQt5DBus.so.5.7.1
   4419712 Aug  /usr/lib/libQt5Gui.so.5.7.1
   1367776 Aug  /usr/lib/libQt5Network.so.5.7.1
    275900 Aug  /usr/lib/libQt5OpenGL.so.5.7.1
    341688 Aug  /usr/lib/libQt5PrintSupport.so.5.7.1
     88628 Aug  /usr/lib/libQt5SerialPort.so.5.7.1
    290960 Aug  /usr/lib/libQt5Sql.so.5.7.1
    212432 Aug  /usr/lib/libQt5Test.so.5.7.1
   5306588 Aug  /usr/lib/libQt5Widgets.so.5.7.1
    894928 Aug  /usr/lib/libQt5XcbQpa.so.5.7.1
    191404 Aug  /usr/lib/libQt5Xml.so.5.7.1

Libraries size after the patch:

root@ccimx6ulsbc:~# ls -l /usr/lib/libQt*5.7.1
     18352 Aug  /usr/lib/libQt5Concurrent.so.5.7.1
   4032380 Aug  /usr/lib/libQt5Core.so.5.7.1
    303684 Aug  /usr/lib/libQt5DBus.so.5.7.1
   2867436 Aug  /usr/lib/libQt5Gui.so.5.7.1
    839428 Aug  /usr/lib/libQt5Network.so.5.7.1
    239044 Aug  /usr/lib/libQt5OpenGL.so.5.7.1
    267976 Aug  /usr/lib/libQt5PrintSupport.so.5.7.1
     59960 Aug  /usr/lib/libQt5SerialPort.so.5.7.1
    172192 Aug  /usr/lib/libQt5Sql.so.5.7.1
    171500 Aug  /usr/lib/libQt5Test.so.5.7.1
   4282740 Aug  /usr/lib/libQt5Widgets.so.5.7.1
    616420 Aug  /usr/lib/libQt5XcbQpa.so.5.7.1
    154556 Aug  /usr/lib/libQt5Xml.so.5.7.1

https://jira.digi.com/browse/DEL-4644

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-08-03 18:54:48 +02:00
Javier Viguera ae6aa1ee25 meta-digi-dey: cosmetic, add missing newlines at end of file
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-07-25 18:25:34 +02:00
Mike Engel e27257c53f meta-digi: Include package required for QT creator target debugging.
This commit includes the Python3-Json package that is required now
by QT creator python scripts when debugging an application with GDB
on the target.

Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2017-07-24 18:05:08 +02:00
Javier Viguera ca1ba7b784 morty migration: update QT5 recipes
As of Yocto 2.2, the shipped QT5 version is 5.7.1 which does not include
'qtbase-fonts' anymore, so remove that package and enable 'fontconfig'
package configuration so the system fontconfig support is used.

Also remove PACKAGECONFIG_GL overrides for CC6UL as they have been added
to upstream 'meta-freescale'.

https://jira.digi.com/browse/DEL-3451

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-02-28 19:12:01 +01:00
Isaac Hermida dabb7b02a7 meta-digi: qtbase: optimize recipe
Including ICU increases the rootfs too much and is not needed unless we want
to build qtwebkit, so only include it for platforms with enough size.
Additionally, linuxfb support is not needed for ccimx6.

https://jira.digi.com/browse/DEL-3058

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-10-05 11:55:45 +02:00
Javier Viguera 11ce6f30b7 qtbase: enable 'linuxfb' platform plugin
This plugin uses directly the framebuffer, so it can be used in non
X11-based systems, but it oly supports software rendered content,
no opengl/es.

https://jira.digi.com/browse/DEL-2607

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-09-27 11:27:50 +02:00
Javier Viguera 6e96f4ac7e qtbase: add i.MX6UL overrides
This allows to build 'qtbase' for the CC6UL.

It only fixes the broken build, as any QT application that uses OpenGL/ES
will fail because there is no support for QT/OpenGL in modules without
a GPU.

Fix:

arm-dey-linux-gnueabi-g++  -march=armv7-a -mfloat-abi=softfp -mfpu=neon
--sysroot=/ssd/dey/jethro/fb/ccimx6ulsbc/tmp/sysroots/ccimx6ulsbc
-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -Wl,-O1 -o opengldesktop
opengldesktop.o   -lGL

.../arm-dey-linux-gnueabi/5.2.0/ld: cannot find -lGL

A similar commit was done in meta-fsl-arm.git (branch Krogoth).

https://jira.digi.com/browse/DEL-2607

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-09-27 11:27:49 +02:00
Javier Viguera 2a9b0b73b0 qt5everywheredemo: add 'qtsvg' build-time dependence
Otherwise building the demo application fails with:

| DEBUG: Executing shell function do_configure
| Project ERROR: Unknown module(s) in QT: svg

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-03-23 16:34:14 +01:00
Javier Viguera 8260fb9226 Revert "qtconnectivity, qtsystems: fix bluetooth support"
A patch sent upstream has been finally merged so this commit is not
needed anymore.

This reverts commit 6a66656161.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-03-01 12:19:51 +01:00
Javier Viguera 58219a5cb3 demo-extrafiles: remove desktop launcher of hellogl_es2 application
There is another OpenGL demo application QT5 Hello Windows for testing
purposes.

https://jira.digi.com/browse/DEL-2184

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-02-10 19:07:03 +01:00
Javier Viguera 6a66656161 qtconnectivity, qtsystems: fix bluetooth support
Generalize bluetooth support so it can be used not only with bluez4 but
with bluez5 as well. Use EXTRA_QMAKEVARS_PRE to pass the packageconfig
options to the do_configure task.

https://jira.digi.com/browse/DEL-2147

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-01-25 16:17:21 +01:00
Javier Viguera e3b4c006f5 qt5: configure EGLFS platform automatically for non-X11 images
By default QT5 applications use 'xcb' platform plugin but this can be
changed using the QT_QPA_PLATFORM environment variable. On non-X11
images the 'xcb' platform plugin obviously does not work, so just
configure 'eglfs' for non-X11 images.

https://jira.digi.com/browse/DEL-2017

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-12-22 14:35:04 +01:00
Javier Viguera 4ca14779ca qt5: qt5everywheredemo: update to latest from upstream
It has been adapted to work with more recent versions of QT5.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-12-21 19:05:56 +01:00
Javier Viguera 616b933e7b qt5: qtbase: enable sqlite build-time configuration
There are some demo apps that otherwise fail with:
  QSqlDatabase: QSQLITE driver not loaded
  QSqlDatabase: available drivers:

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-12-21 19:05:24 +01:00
Javier Viguera 9248b31956 Revert "meta-digi-dey: add desktop shortcut for camera demo app"
This demo app is very generic and does not play well with FSL gstreamer
plugin, so using it just crashes in different ways (doing a camera zoom,
recording a video, etc)

This reverts commit 2776dcd654.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-12-16 18:50:04 +01:00
Javier Viguera 2776dcd654 meta-digi-dey: add desktop shortcut for camera demo app
https://jira.digi.com/browse/DEL-2015

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-12-14 17:48:06 +01:00
Javier Viguera 449008366f meta-digi-dey: configure default video source for qtmultimedia apps
https://jira.digi.com/browse/DEL-2015

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-12-14 17:40:02 +01:00
Javier Viguera 0f4606386c meta-digi-dey: add desktop shortcut for qmlvideo player
We will use 'qmlvideo' application for QT5 media player demo, so just
create a desktop launcher.

https://jira.digi.com/browse/DEL-2007

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-12-14 17:24:37 +01:00
Javier Viguera fef0cd8da3 qt5: remove desktop launchers of some not-provided applications
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-12-14 14:33:46 +01:00
Javier Viguera 6dc6cadb72 meta-digi-dey: remove FSL QT5 camera and media player demo apps
These demo applications are only distributed in binary form. We don't
have the source code as an example for customers, so just remove them.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-12-14 12:07:20 +01:00
Javier Viguera 0e1bf79e56 qt5: qtwebengine: reduce parallel make jobs
The aim is to reduce even more the memory used by the host at build time
to avoid the OOM killer killing the linker.

Otherwise it can fail in machines with few memory even though the linker
is configured with '--no-keep-memory'.

Notice that we also reduce the parallel jobs expanded by 'ninja' build
system configuring and exporting NINJAFLAGS variable. Otherwise this
build system does not honor PARALLEL_MAKE variable.

Fix:
  arm-dey-linux-gnueabi-g++: internal compiler error: Killed (program cc1plus)
  ninja: build stopped: subcommand failed.

https://jira.digi.com/browse/DEL-1973

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-12-10 10:30:31 +01:00
Javier Viguera f608985ed5 qt5: add FSL QT camera and media player demo apps
This is copied verbatim from the 'meta-fsl-bsp-release' layer. FSL
distributes these applications in binary-only form.

https://jira.digi.com/browse/DEL-1972

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-11-30 19:29:12 +01:00
Javier Viguera c98cd2dde1 qt5: qtmultimedia: enable gstreamer backend at build time
Otherwise at run time there is no service available that is able to
manage the multimedia files and there is a failure:

requestService(): no service found for - "org.qt-project.qt.camera"
requestService(): no service found for - "org.qt-project.qt.mediaplayer"

https://jira.digi.com/browse/DEL-1972

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-11-30 19:27:04 +01:00
Javier Viguera c3c2410aee qt5: qtbase: add more build-time configuration options
Otherwise the package fails to build with:

error: 'QAccessible' has not been declared

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-11-30 19:27:04 +01:00
Javier Viguera eaa2fdb9d4 qt5: qtwebengine: decrease memory used by the linker
This is a build-time option, nothing to do with runtime. Decrease the
memory used by the linker to avoid being killed due to out-of-memory.

https://jira.digi.com/browse/DEL-1972

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-11-30 19:27:04 +01:00
Javier Viguera 1240e259c1 meta-digi-dey: remove QT4 support
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-11-30 19:27:04 +01:00
Javier Viguera 8e22cd80a9 meta-digi: remove gstreamer 0.10 support
Also remove QT4 phonon patches and qtmediaplayer demo as they depend on
gstreamer-0.10.

https://jira.digi.com/browse/DEL-1890

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-11-05 14:02:29 +01:00
Javier Viguera d35ac42dd0 meta-digi: remove support for MX5X platforms
ccimx51js and ccimx53js are not supported in this version of DEY.
Support for those platforms is in previous versions of DEY.

https://jira.digi.com/browse/DEL-1890

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-11-05 13:56:38 +01:00
Javier Viguera 2b53d7ffe7 meta-digi-dey: fix video sink in qt4 phonon patches
The FSL gstreamer-0.10 plugin has renamed the video sink from
'mfw_v4lsink' to 'imxv4l2sink' so the phonon patches need to be updated
accordingly.

https://jira.digi.com/browse/DEL-1850

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-10-23 12:38:38 +02:00
Javier Viguera 43bd3f4e4e meta-digi: use recommended BP and BPN variables for FILESEXTRAPATHS
Also move files from generic 'files' folders to a more specific '${BP}'
or '${BPN}' folders. This is recommended to speed up the fetch of files
from the local machine, as the search is done in a certain order: ${BP},
${BPN}, and 'files'.

More info:
http://thread.gmane.org/gmane.linux.embedded.yocto.general/23550/focus=23576

https://jira.digi.com/browse/DEL-1558

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-03-13 18:43:12 +01:00
Javier Viguera 8d4656a978 qt4: integrate deprecated fsl-gui-extrafiles package
This package was used in 'meta-fsl-demos' layer, but was deprecated and
removed. It includes desktop launchers for QT4 demo/example apps. We
still show those demo apps, so integrate the launchers directly into a
qt4 bbappend.

https://jira.digi.com/browse/DEL-1164

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-09-18 09:49:59 +02:00
Javier Viguera 6b7f1b2492 Revert "qt4-x11: workaround QT/EGL mismatch for MX6"
Similar patch sent upstream (meta-fsl-arm) was accepted.

This reverts commit b29a00fea6.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-03-11 15:43:56 +01:00
Javier Viguera b29a00fea6 qt4-x11: workaround QT/EGL mismatch for MX6
Fix following error:

Warning: EGL suggested using X Visual ID 33 (ARGB0888) for EGL config 28 (ARGB0444), but this is incompatable
Unable to find an X11 visual which matches EGL config 28

https://jira.digi.com/browse/DEL-964

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-03-06 10:30:18 +01:00