Commit Graph

884 Commits

Author SHA1 Message Date
Khem Raj
d0cd7a7a70 qtbase: Fix errors due to -isystem
empty out QMAKE_CFLAGS_ISYSTEM this will ensure that -isystem is not
used instead it will use -I to include internal QT headers

Dont hardcode QMAKE_DEFAULT_INCDIRS when cross compile

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2018-09-25 09:50:40 +00:00
Lei Maohui
81239229df qtbase: Fix build error for armv8BE multilib.
* MJ: modified to apply correctly and to be included in native and
  nativesdk builds as the comment above SRC_URI says.

Signed-off-by: Lei Maohui <leimaohui@cn.fujitsu.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2018-09-25 09:34:49 +00:00
Martin Jansa
f9e80edff0 qt5: update to latest revision in 5.11 branch
* drop nobranch=1 again
* update the branches and tags on meta-qt5/qt* forks and the tag name
  in recipes
* use latest revision in 5.11 branch instead of 5.11.2 which might be
  removed again

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2018-09-25 09:34:49 +00:00
Samuli Piippo
3e7da25564 qt5: update to Qt 5.11.2
Update The-Qt-Company-Commercial license to the actual commercial
license which also replaces preview license in qtbase. Remove old
licenses that are no longer used in any module.

Signed-off-by: Samuli Piippo <samuli.piippo@qt.io>
2018-09-25 09:34:49 +00:00
Martin Jansa
cd0da4e483 libqofono: include /qt5/mkspecs in ${PN}-dev
* libqofono doesn't respect the install variables and mkspecs end in
  ${datadir}/qt5/mkspecs even when QT_DIR_NAME is empty and
  OE_QMAKE_PATH_ARCHDATA is just ${datadir}/mkspecs

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2018-09-25 09:22:19 +00:00
Khem Raj
db45ea6ad8 qtwebkit-examples: Fix build with QT 5.11
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-09-25 09:22:19 +00:00
Khem Raj
d498eb6075 qtwebkit: Use relative paths for pri files when cross compile
This helps in compiling examples etc. without hardcoded headers

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-09-25 09:22:19 +00:00
Martin Jansa
b716195f60 qmake5_paths: change the default QT_DIR_NAME to be empty
* there aren't many people using qt4 and qt5 in the same
  image anymore, it's time to stop using this work around
  and to follow default packaging rules

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2018-09-25 09:22:18 +00:00
Martin Jansa
3224b028e7 nativesdk-qtbase: use default PACKAGES
* don't append -tools to all packages
* fixes automatic packaging of .debug files in ${PN}-dbg

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2018-09-20 13:16:22 +00:00
Martin Jansa
66c49f8a1d qt5-creator: strip few more useless rpaths
* fixes:
ERROR: qt5-creator-4.5.1-r0 do_package_qa: QA Issue:
qt5-creator: /work/core2-64-oe-linux/qt5-creator/4.5.1-r0/packages-split/qt5-creator/usr/lib/qt5/qtcreator/plugins/qmldesigner/libcomponentsplugin.so contains probably-redundant RPATH /usr/lib
qt5-creator: /work/core2-64-oe-linux/qt5-creator/4.5.1-r0/packages-split/qt5-creator/usr/lib/qt5/qtcreator/plugins/qmldesigner/libqtquickplugin.so contains probably-redundant RPATH /usr/lib
[useless-rpaths]

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2018-09-19 22:47:16 +00:00
Martin Jansa
03b4c7b669 qt: remove unnecessary FILES.*-dbg variables for packaging .debug files
* package.bbclass can do it automatically since:
  commit da5ec06814e105451cca11cce76b5c5231110524
  Author: Richard Purdie <richard.purdie@linuxfoundation.org>
  Date:   Tue Dec 15 15:38:54 2015 +0000

    package: Add auto package splitting of .debug files

* .debug files for examples were incorrectly picked by qtbase-qmlplugins-dbg
  causing following QE error, because unlike qtbase-examples-dbg we don't
  have libdir in INSANE_SKIP.

  ERROR: qtbase-5.11.2+gitAUTOINC+49efea26a5-r0 do_package_qa: QA Issue: qtbase-qmlplugins-dbg: found library in wrong location: /usr/share/qt5/examples/widgets/tools/plugandpaint/plugins/.debug/libpnp_extrafilters.so
  qtbase-qmlplugins-dbg: found library in wrong location: /usr/share/qt5/examples/widgets/tools/styleplugin/styles/.debug/libsimplestyleplugin.so
  qtbase-qmlplugins-dbg: found library in wrong location: /usr/share/qt5/examples/widgets/tools/echoplugin/plugins/.debug/libechoplugin.so [libdir]
  ERROR: qtbase-5.11.2+gitAUTOINC+49efea26a5-r0 do_package_qa: QA run found fatal errors. Please consider fixing them.

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2018-09-19 16:36:36 +00:00
Khem Raj
5164f84bd6 qt3d-runtime: Fix compile errors as seen with mips/musl
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2018-09-19 09:55:38 +00:00
Martin Jansa
08aaba003f qt3d-runtime: upgrade to latest revision in 2.0 branch
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2018-09-19 09:55:38 +00:00
Lei Maohui
a8832a7f4f qtwebkit: Make qtwebkit support arm32 BE.
* It can work on arm32 BE.
* MJ: modified to apply correctly

Signed-off-by: Lei Maohui <leimaohui@cn.fujitsu.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2018-09-19 09:55:38 +00:00
Martin Jansa
215e81d285 qtscript: add patches to meta-qt5 fork
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2018-09-19 09:55:34 +00:00
Khem Raj
66a9704223 qtscript: Fix build on musl
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-09-19 09:55:34 +00:00
Martin Jansa
edf1e43494 qtwebkit: add patches to meta-qt5 fork
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2018-09-19 09:55:34 +00:00
Khem Raj
a307eb0ede qtwebkit: Fix conflicts with -I and -isystem
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-09-19 09:55:34 +00:00
Khem Raj
3e4141cfbb qtwebkit: Fix build with musl
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-09-19 09:55:34 +00:00
Khem Raj
c977d68f3a qt5-creator: Strip out redundant RPATH
Fixes

ERROR: QA Issue: qt5-creator: /work/mips32r2-bec-linux-musl/qt5-creator/4.5.1-r0/packages-split/qt5-creator/usr/libexec/qtcreator/qbs_processlauncher contains probably-redundant RPATH /usr/lib
qt5-creator: /work/mips32r2-bec-linux-musl/qt5-creator/4.5.1-r0/packages-split/qt5-creator/usr/libexec/qtcreator/qtcreator_process_stub contains probably-redundant RPATH /usr/lib
qt5-creator: /work/mips32r2-bec-linux-musl/qt5-creator/4.5.1-r0/packages-split/qt5-creator/usr/lib/qt5/qtcreator/libqbscore.so.1.10.1 contains probably-redundant RPATH /usr/lib [useless-rpaths]

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-09-19 09:55:34 +00:00
Khem Raj
189dd8ab10 qt5-creator: Fix building botan for all non-x86 arches
The original fix was just for x86/x86_64

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-09-19 09:55:34 +00:00
Martin Jansa
85e665b158 qtwebengine: use nasm-native instead of yasm-native
* yasm-native was removed in:
  http://git.openembedded.org/openembedded-core/commit/?id=b7f3f7ecfdf26129c5df2d3ee14e73c4633ea5a3

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2018-09-19 09:55:34 +00:00
Samuli Piippo
75bc4403cc qtbase: fix install locations used in static builds
Both qml and plugin paths need to be adjusted for static builds,
so that they point to the recipe-sysroot instead of the native one.
Similar change is already applied to host bins. These changes do
not affect regular dynamic builds, as the sections are only used in
static builds.

Signed-off-by: Samuli Piippo <samuli.piippo@qt.io>
2018-09-14 08:24:06 +00:00
Samuli Piippo
823fa380c5 qtwebengine: enable debug info for webengine
Enable debug info for webengine builds. The mkspec needed fixing,
otherwise CFLAGS were fed incorrectly to Ninja.

Signed-off-by: Samuli Piippo <samuli.piippo@qt.io>
2018-09-14 08:24:06 +00:00
Alistair Francis
9ffdd55c7c qtscript: Update the custom patch from mainline
Update the custom qtscript patch to use a backported patch instead.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2018-08-31 13:30:31 -03:00
Andreas Müller
95d64ea67e qtbase: remove renameat2 PACKAGECONFIG
* since glibc 2.28 it is not necessary that Qt implements it
* reduce PACKAGECONFIG mania a bit

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
2018-08-22 16:19:06 +02:00
Andreas Müller
2d1d807815 qtbase: fix build with glibc-2.28 - for non-readers like me
539e4f09f7 fixed bootstrapped build.

At least cross builds are not done bootstrapped. Fix them too by copying
statx/renameat2 macros - non-bootsrapped conditional - to
qfilesystemengine_unix.cpp - it is fortunately the only source using
QT_FEATURE_renameat2 / QT_FEATURE_statx (or QT_CONFIG(renameat2) /
QT_CONFIG(statx)).

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
2018-08-22 16:19:06 +02:00
Jens Rehsack
e4abbdef81 qtwebengine: Fix optonal glib-2.0 dependency
The corresponding recipe in poky is named "glib-2.0_XXX.bb",
not "glib_XXX.bb" which causes parser errors when enabling
'glib' in PACKAGECONFIG.

Signed-off-by: Jens Rehsack <sno@netbsd.org>
2018-08-22 16:17:47 +02:00
Manjukumar Matha
1fb8affa94 qtwebkit_git.bb: Fix configure failure on bison
Fix the following error during do_configure

| CMake Error at
|   Could NOT find BISON (missing: BISON_EXECUTABLE) (Required is at
least
|   version "2.1")
| Call Stack (most recent call first):

Add dependency to bison-native to fix the above error

Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
2018-08-17 21:11:55 +02:00
Martin Jansa
cb7dfcc53a qtwebengine: Add PACKAGECONFIG for pepper-plugins printing-and-pdf spellchecker
* also add libpci runtime dependency for x86 targets (imported from meta-luneui)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2018-08-15 16:03:28 +00:00
Alban Bedel
70b090a504 qtwebengine: add a package config to enable proprietary codecs
Add a package config that allow to enable proprietary codecs for h264
support.

Signed-off-by: Alban Bedel <alban.bedel@avionic-design.de>
2018-08-15 15:56:46 +00:00
Samuli Piippo
bb38f64f43 qt3d-runtime: add recipe for Qt 3D Studio runtime library
The Qt 3D Studio Runtime provides C++ and QML APIs for integrating
Qt 3D Studio scenes into Qt applications, as well as the viewer
application that is used in combination with the Qt 3D Studio
application during the design phase

Signed-off-by: Samuli Piippo <samuli.piippo@qt.io>
2018-08-14 13:49:51 +02:00
Martin Jansa
75e2d3a2e3 qtbase: update the dependency for gbm PACKAGECONFIG
* mesa* conditionally provides virtual/libgbm when gbm is enabled there
  so it's better than depending on just virtual/mesa

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2018-08-14 13:49:18 +02:00
Martin Jansa
539e4f09f7 qtbase: fix build with glibc-2.28
Fixes:
qtbase/5.11.1+gitAUTOINC+74305ba470-r0/git/src/corelib/io/qfilesystemengine_unix.cpp:94:
qtbase/5.11.1+gitAUTOINC+74305ba470-r0/recipe-sysroot/usr/include/linux/stat.h:56:8:
error: redefinition of 'struct statx_timestamp'
 struct statx_timestamp {
        ^~~~~~~~~~~~~~~

qtbase/5.11.1+gitAUTOINC+74305ba470-r0/recipe-sysroot/usr/include/bits/statx.h:25:8:
note: previous definition of 'struct statx_timestamp'
 struct statx_timestamp
        ^~~~~~~~~~~~~~~

You might encounter another error:
qtbase/5.11.1+gitAUTOINC+74305ba470-r0/git/src/corelib/io/qfilesystemengine_unix.cpp:109:12:
error: 'int renameat2(int, const char*, int, const char*, unsigned int)'
was declared 'extern' and later 'static' [-fpermissive]
 static int renameat2(int oldfd, const char *oldpath, int newfd, const char *newpath, unsigned flags)
            ^~~~~~~~~

qtbase/5.11.1+gitAUTOINC+74305ba470-r0/recipe-sysroot/usr/include/stdio.h:164:12:
note: previous declaration of 'int renameat2(int, const char*, int, const char*, unsigned int)'
 extern int renameat2 (int __oldfd, const char *__old, int __newfd,
            ^~~~~~~~~

In that case enable renameat2 in your PACKAGECONFIG.

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2018-08-14 13:49:18 +02:00
Seokha Ko
c2e4ec603b nativesdk-packagegroup-qt5-toolchain-host: Add perl modules
perl modules are needed for syncqt.pl
2018-08-14 13:49:02 +02:00
Martin Jansa
4587cc3b2b qtchooser: drop useless patch, set PV
* set PV to something better than just 'git'
* drop 0001-Makefile-install-the-man-dir.patch, the change was already applied long before
  the currently used SRCREV, do_patch WARNING: was correctly complaining:

WARNING: qtchooser-git-r0 do_patch:
Some of the context lines in patches were ignored. This can lead to
incorrectly applied patches.
The context lines in the patches can be updated with devtool:

    devtool modify <recipe>
    devtool finish --force-patch-refresh <recipe> <layer_path>

Then the updated patches and the source tree (in devtool's workspace)
should be reviewed to make sure the patches apply in the correct place
and don't introduce duplicate lines (which can, and does happen
when some of the context is ignored). Further information:
http://lists.openembedded.org/pipermail/openembedded-core/2018-March/148675.html
https://bugzilla.yoctoproject.org/show_bug.cgi?id=10450
Details:
Applying patch 0001-Makefile-install-the-man-dir.patch
patching file Makefile
Hunk #1 succeeded at 2 with fuzz 1 (offset 1 line).
Hunk #2 succeeded at 79 with fuzz 2 (offset 22 lines).

Now at patch 0001-Makefile-install-the-man-dir.patch

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2018-07-27 15:11:26 +02:00
Khem Raj
3a4ad5408a packagegroup-qt5-toolchain-target: Remove non-existing qttranslations-qt from rdeps
Fixes
ERROR: Nothing RPROVIDES 'qttranslations-qt' (but /home/jenkins/oe/world/oe-build/sources/meta-qt5/recipes-qt/packagegroups/packagegroup-qt5-toolchain-target.bb RDEPENDS on or otherwise requires it)
NOTE: Runtime target 'qttranslations-qt' is unbuildable, removing...

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-07-27 15:09:55 +02:00
Alistair Francis
2736dcf9ac qtbase: Add a kde PACKAGECONFIG
If trying to build KDE there are extra package config options required.
This patch adds a KDE DISTRO_CONFIG that enables the extra
PACKAGECONFIG options required.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2018-07-10 15:43:56 -03:00
Samuli Piippo
0263af75c0 qt5: add option to build Qt5 statically
Add PACKAGECONFIG that enables static build for qtbase and consequently
to all Qt recipes. This can be enabled with DISTRO_FEATURE 'qt5-static',
which also adds qtdeclarative-native dependency to all recipes that
depend on qtdeclarative as it's required for qmlimportscannertool.

Building examples and tests with static build can take excessive amounts
of time and disk space, so disabling DISTRO_FEATURE 'ptest' and
PACKAGECONFIGs 'examples' from qtbase is advised.

Not all recipes support static builds and those are not fixed here.

Change-Id: Ia0e2a2467cd42d4395ed5292a645fd1d89ad521a
Signed-off-by: Samuli Piippo <samuli.piippo@qt.io>
2018-07-04 17:12:38 -03:00
Samuli Piippo
a4f88b6b5f qtbase: fix install locations used in static builds
Both qml and plugin paths need to be adjusted for static builds,
so that they point to the recipe-sysroot instead of the native one.
Similar change is already applied to host bins. These changes do
not affect regular dynamic builds, as the sections are only used in
static builds.

Signed-off-by: Samuli Piippo <samuli.piippo@qt.io>
2018-07-04 17:12:38 -03:00
Samuli Piippo
2b01a6d8b8 qttranslations: do not use qt meta catalog translation package
The qt_xx packages are meta catalogs that have dependencies to
qtquick1 which is not available anymore, which then breaks loading
of the translation file.

Signed-off-by: Samuli Piippo <samuli.piippo@qt.io>
2018-07-04 10:06:48 -03:00
Otavio Salvador
0ea31eaf6a qttools: Disable clang support
If host has clang installed, the qdoc is enabled doing host
contamination. For now, we disable this completely.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2018-07-03 21:33:08 +02:00
Samuli Piippo
c3cc11bc28 qtbase: add PACKAGECONFIG for Link Time Optimization
qtbase configure option -ltcg enables Link Time Code Generation
using GCC's LTO feature. Enable it by default if the selected
optimization is for size.

Signed-off-by: Samuli Piippo <samuli.piippo@qt.io>
2018-07-03 15:47:03 -03:00
Samuli Piippo
7faa5d8f39 qt5: remove all references to qtquick1 import path
Since qtquick1 recipes have been removed, there is no need to have
OE_QMAKE_PATH_IMPORTS anymore.

Signed-off-by: Samuli Piippo <samuli.piippo@qt.io>
2018-07-03 15:00:57 -03:00
Alistair Francis
65c85d3640 qt5/qtscript: Fix qtscript cross compile error
Fix errors like this:
error: cast from 'QTJSC::JSCell*' to 'int32_t' {aka 'int'} loses precision
when cross compiling for RISC-V.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2018-06-29 13:42:13 -03:00
Otavio Salvador
1452ed3db4 README: Add Yocto Project Compatible badge and fix formatting
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2018-06-26 18:11:28 -03:00
Alistair Francis
40054db1de qt5: qtbase: Upgrade Double-Conversion
Backport the Double-Conversion upgrade from the dev branch
(https://codereview.qt-project.org/#/c/227718/) to the current release.
This fixes the RISC-V compile of QTBase.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2018-06-25 14:30:57 +00:00
Otavio Salvador
dd1ce3c95c README: Rework to start using GitHub for development
This changes the content so we start sending people to GitHub and
deprecate the OpenEmbedded-Devel mailing list as the place for patch
submission.

The content has been reworked so it renders better inside GitHub and
provide a more structured content.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2018-06-24 07:36:34 +02:00
Martin Jansa
ef5f5d912d qt5: upgrade to 5.11.1
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2018-06-22 14:35:29 +00:00
Samuli Piippo
820f3ef827 qt5: add common PACKAGECONFIG for QtQuickCompiler
The previously commercial-only QtQuickCompiler is now merged into
qtdeclarative. Add common PACKECONFIG which can be used to enable
it, and by default enable it for Qt Charts and Qt VirtualKeyboard.

https://doc-snapshots.qt.io/qt5-5.11/qtquick-deployment.html#compiling-qml-ahead-of-time

Signed-off-by: Samuli Piippo <samuli.piippo@qt.io>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2018-06-21 18:37:25 +00:00