mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] Sysroots and pkg-config (Qt 5.4.2)
@ 2015-06-11 10:18 Dennis Miller
  2015-06-12  6:33 ` Markus Niebel
  0 siblings, 1 reply; 7+ messages in thread
From: Dennis Miller @ 2015-06-11 10:18 UTC (permalink / raw)
  To: ptxdist

Hi,

I am using PTXdist 2014.11.0 and a BSP provided by TQ for a Freescale i.MX6q
CPU.
This CPU has binary-only drivers for Open-GL/ES.

I downloaded just the new qt5.in/.make as well as all patches and custom
qmake-spec 
for Qt 5.4.2 and I am trying to get it to compile using the Freescale
(VIVANTE) egl 
drivers.

The drivers install some samples to /opt as well as libs to /usr/lib and
matching 
headers to /usr/include.
The default rule file was to just package everything together and install it
on the 
target. This was enough to verify that the GPU is working.

Which sysroot is the right one? sysroot-host seems like the right choice. I can 
add pkgconfig files to sysroot-host/lib/pkgconfig (e.g. egl.pc) and these
seem to 
work as expected.

Building Qt is a totally different beast ...
I had to add a patch to the configure script to disable the gold linker 
"CFG_USE_GOLD_LINKER=no". Turns out configure is using sysroot-cross ...
sysroot-cross has a wierd pkg-config (arm-v7a-linux-gnueabihf-pkg-config in my 
case) which does not seem to work:

      $> ./p bash
      [ptx] $> which pkg-config
      ..../platform-dzm/sysroot-host/bin/pkg-config
      [ptx] $> ./platform-dzm/sysroot-cross/bin/pkg-config --debug --list-all

Now I get a list of all packages from my Ubuntu 14.04 ... 
(and maybe some embedded ones as well). So I tried "fixing" this setup by
calling
the right pkg-config by updating the first few line like:

       #PKG_CONFIG="${PKG_CONFIG_ARRAY[1]}"
       PKG_CONFIG="../../sysroot-host/bin/pkg-config"

But lets keep moving here - pkg-config rules for egl are in place (I took them
from Yocto's meta-fsl-arm layer) and configure continues past the EGL checks.
However now I'm stuck with an error about d-bus.
dbus-1.8.8 is compiled and installed using the default rules. But the pkg-config
rule file is not installed (again: which sysroot?) - why?

The next obvious question would be: what else is "missing"? and why?
Or were there some bugfixes between PTXdist 2014.11.0 and the latest that affect
pkg-config or any library install?

A lot of the things I did *feel* wrong. I would assume that PTXdist should
do these
for me - e.g. make sure pkg-config is updated with every library.
Also, sysroot-target seems like the most obvious "sysroot" choice since the
documentation
for PTXdist specifically mentions  "sysroot-target : Contains everything
target architecture
dependend (libraries, header files and so on)." but this one is not used at all.

One last thing: Is the gold linker used in newer versions of PTXdist?

How do I continue building the latest Qt library?


Dennis



-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [ptxdist] Sysroots and pkg-config (Qt 5.4.2)
  2015-06-11 10:18 [ptxdist] Sysroots and pkg-config (Qt 5.4.2) Dennis Miller
@ 2015-06-12  6:33 ` Markus Niebel
  2015-06-12 11:53   ` Matthias Klein
  2015-06-15  6:31   ` Dennis Miller
  0 siblings, 2 replies; 7+ messages in thread
From: Markus Niebel @ 2015-06-12  6:33 UTC (permalink / raw)
  To: dennis.z.miller, ptxdist; +Cc: TQ-Support

Hi,

Am 11.06.2015 um 12:18 schrieb Dennis Miller:
> Hi,
> 
> I am using PTXdist 2014.11.0 and a BSP provided by TQ for a Freescale i.MX6q
> CPU.
> This CPU has binary-only drivers for Open-GL/ES.
> 
> I downloaded just the new qt5.in/.make as well as all patches and custom
> qmake-spec 
> for Qt 5.4.2 and I am trying to get it to compile using the Freescale
> (VIVANTE) egl 
> drivers.
> 
> The drivers install some samples to /opt as well as libs to /usr/lib and
> matching 
> headers to /usr/include.
> The default rule file was to just package everything together and install it
> on the 
> target. This was enough to verify that the GPU is working.
> 

OK

> Which sysroot is the right one? sysroot-host seems like the right choice. I can 
> add pkgconfig files to sysroot-host/lib/pkgconfig (e.g. egl.pc) and these
> seem to 
> work as expected.
> 
> Building Qt is a totally different beast ...
> I had to add a patch to the configure script to disable the gold linker 
> "CFG_USE_GOLD_LINKER=no". Turns out configure is using sysroot-cross ...
> sysroot-cross has a wierd pkg-config (arm-v7a-linux-gnueabihf-pkg-config in my 
> case) which does not seem to work:
> 

Qt 5.3 is in our BSP which is implemented different than the current mainline Qt 5.4.
Mixing things is not expected to work.

>       $> ./p bash
>       [ptx] $> which pkg-config
>       ..../platform-dzm/sysroot-host/bin/pkg-config
>       [ptx] $> ./platform-dzm/sysroot-cross/bin/pkg-config --debug --list-all
> 
> Now I get a list of all packages from my Ubuntu 14.04 ... 
> (and maybe some embedded ones as well). So I tried "fixing" this setup by
> calling
> the right pkg-config by updating the first few line like:
> 
>        #PKG_CONFIG="${PKG_CONFIG_ARRAY[1]}"
>        PKG_CONFIG="../../sysroot-host/bin/pkg-config"
> 
> But lets keep moving here - pkg-config rules for egl are in place (I took them
> from Yocto's meta-fsl-arm layer) and configure continues past the EGL checks.
> However now I'm stuck with an error about d-bus.
> dbus-1.8.8 is compiled and installed using the default rules. But the pkg-config
> rule file is not installed (again: which sysroot?) - why?
> 
> The next obvious question would be: what else is "missing"? and why?
> Or were there some bugfixes between PTXdist 2014.11.0 and the latest that affect
> pkg-config or any library install?
> 
> A lot of the things I did *feel* wrong. I would assume that PTXdist should
> do these
> for me - e.g. make sure pkg-config is updated with every library.
> Also, sysroot-target seems like the most obvious "sysroot" choice since the
> documentation
> for PTXdist specifically mentions  "sysroot-target : Contains everything
> target architecture
> dependend (libraries, header files and so on)." but this one is not used at all.
> 
> One last thing: Is the gold linker used in newer versions of PTXdist?
> 
> How do I continue building the latest Qt library?
> 

You can do 

- ptxdist migrate to bring the BSP to the current PTXdist version
- the you can remove the qt5 related rules from BSP
- reconfigure to build with Qt 5.4 from mainline PTXdist
- adopt Qt 5.4 mkspecs to find the correct EGL stuff
- Feel free to contact TQ systems support


Note: when migrating to a new ptxdist version, you need to build from scratch.

Markus

> 
> Dennis
> 
> 
> 


-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [ptxdist] Sysroots and pkg-config (Qt 5.4.2)
  2015-06-12  6:33 ` Markus Niebel
@ 2015-06-12 11:53   ` Matthias Klein
  2015-06-12 12:01     ` Jürgen Borleis
  2015-06-15  6:31   ` Dennis Miller
  1 sibling, 1 reply; 7+ messages in thread
From: Matthias Klein @ 2015-06-12 11:53 UTC (permalink / raw)
  To: ptxdist

  Hello Markus,

------ Originalnachricht ------
Von: "Markus Niebel" <list-09_ptxdist@tqsc.de>
An: dennis.z.miller@outlook.com; ptxdist@pengutronix.de
Cc: "TQ-Support" <Support@tq-group.com>
Gesendet: 12.06.2015 08:33:33
Betreff: Re: [ptxdist] Sysroots and pkg-config (Qt 5.4.2)

>
>
>You can do
>
>- ptxdist migrate to bring the BSP to the current PTXdist version
>- the you can remove the qt5 related rules from BSP
>- reconfigure to build with Qt 5.4 from mainline PTXdist
Where can I find "Qt 5.4 from mainline PTXdist" ?


Best regards,
Matthias


-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [ptxdist] Sysroots and pkg-config (Qt 5.4.2)
  2015-06-12 11:53   ` Matthias Klein
@ 2015-06-12 12:01     ` Jürgen Borleis
  0 siblings, 0 replies; 7+ messages in thread
From: Jürgen Borleis @ 2015-06-12 12:01 UTC (permalink / raw)
  To: ptxdist, Matthias Klein

Hi Matthias,

On Friday 12 June 2015 13:53:52 Matthias Klein wrote:
> ------ Originalnachricht ------
> Von: "Markus Niebel" <list-09_ptxdist@tqsc.de>
> An: dennis.z.miller@outlook.com; ptxdist@pengutronix.de
> Cc: "TQ-Support" <Support@tq-group.com>
> Gesendet: 12.06.2015 08:33:33
> Betreff: Re: [ptxdist] Sysroots and pkg-config (Qt 5.4.2)
>
> >You can do
> >
> >- ptxdist migrate to bring the BSP to the current PTXdist version
> >- the you can remove the qt5 related rules from BSP
> >- reconfigure to build with Qt 5.4 from mainline PTXdist
>
> Where can I find "Qt 5.4 from mainline PTXdist" ?

git://git.pengutronix.de/git/ptxdist.git

That is the meaning of "mainline".

Regards
Juergen

-- 
Pengutronix e.K.                              | Juergen Borleis             |
Industrial Linux Solutions                    | http://www.pengutronix.de/  |

-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [ptxdist] Sysroots and pkg-config (Qt 5.4.2)
  2015-06-12  6:33 ` Markus Niebel
  2015-06-12 11:53   ` Matthias Klein
@ 2015-06-15  6:31   ` Dennis Miller
  1 sibling, 0 replies; 7+ messages in thread
From: Dennis Miller @ 2015-06-15  6:31 UTC (permalink / raw)
  To: ptxdist

> > Building Qt is a totally different beast ...
> > I had to add a patch to the configure script to disable the gold linker 
> > "CFG_USE_GOLD_LINKER=no". Turns out configure is using sysroot-cross ...
> > sysroot-cross has a wierd pkg-config (arm-v7a-linux-gnueabihf-pkg-config
in my 
> > case) which does not seem to work:
> 
> Qt 5.3 is in our BSP which is implemented different than the current
mainline Qt 5.4.
> Mixing things is not expected to work.

First, instead of fixing the configure script, I figured I could pass
"-no-use-gold-linker"
to configure, that worked just as well.

Could you elaborate as to how "Qt 5.3 is [...] implemented different than
the current 
mainline Qt 5.4."?


> > How do I continue building the latest Qt library?
> 
> You can do 
> 
> - ptxdist migrate to bring the BSP to the current PTXdist version

Not an option as PTXdist 2015.05 (current version) does not feature Qt 5.4 ...
Besides, why migrate and risk errors? 
I just want to upgrade Qt - I should be able to just drop-in the qt5.* rules
files, right?
Of course while doing so I should update dependencies as needed.


> - the you can remove the qt5 related rules from BSP
> - reconfigure to build with Qt 5.4 from mainline PTXdist

Which is exactly what I did:
- ran menuconfig to deselect Qt 5.3
- replaced the Qt 5.3 rules with the Qt 5.4 rules
- ran menuconfig to select Qt 5.4 (and options ...)


> - adopt Qt 5.4 mkspecs to find the correct EGL stuff

Is this the right way? 
The configure script is told to use pkgconfig - Just getting the *.pc files
in the right spot
should be enough (and of course making sure all paths within those .pc files
are correct ...).
As a bonus, all other packages that use pkgconfig should work as well.


> - Feel free to contact TQ systems support

Judging from your email address, TQ systems is already aware of this!


Dennis


-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [ptxdist] Sysroots and pkg-config (Qt 5.4.2)
  2015-06-12 13:11 ` Jürgen Borleis
@ 2015-06-12 13:36   ` Matthias Klein
  0 siblings, 0 replies; 7+ messages in thread
From: Matthias Klein @ 2015-06-12 13:36 UTC (permalink / raw)
  To: Jürgen Borleis, ptxdist

Hello Jürgen,


------ Originalnachricht ------
Von: "Jürgen Borleis" <jbe@pengutronix.de>
An: ptxdist@pengutronix.de
Cc: "Matthias Klein" <matthias.klein@optimeas.de>
Gesendet: 12.06.2015 15:11:02
Betreff: Re: [ptxdist] Sysroots and pkg-config (Qt 5.4.2)

>
>
>I'm not a QT expert, but a simple duck test makes me feel it's
>qt-5.4.2 related...
>
>
Last time I looked for QT5 was some weeks ago.
Thanks a lot for the pointer !


Best regards,
Matthias


-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [ptxdist] Sysroots and pkg-config (Qt 5.4.2)
       [not found] <emf44812bf-3ed0-4b60-b9a9-6cff9c61eaf8@nb-mak>
@ 2015-06-12 13:11 ` Jürgen Borleis
  2015-06-12 13:36   ` Matthias Klein
  0 siblings, 1 reply; 7+ messages in thread
From: Jürgen Borleis @ 2015-06-12 13:11 UTC (permalink / raw)
  To: ptxdist; +Cc: Matthias Klein

Hi Matthias,

please keep the mailing list on CC.

On Friday 12 June 2015 14:07:57 Matthias Klein wrote:
> ------ Originalnachricht ------
> Von: "Jürgen Borleis" <jbe@pengutronix.de>
> An: ptxdist@pengutronix.de; "Matthias Klein"
> <matthias.klein@optimeas.de>
> Gesendet: 12.06.2015 14:01:00
> Betreff: Re: [ptxdist] Sysroots and pkg-config (Qt 5.4.2)
>
> >Hi Matthias,
> >
> >On Friday 12 June 2015 13:53:52 Matthias Klein wrote:
> >>  ------ Originalnachricht ------
> >>  Von: "Markus Niebel" <list-09_ptxdist@tqsc.de>
> >>  An: dennis.z.miller@outlook.com; ptxdist@pengutronix.de
> >>  Cc: "TQ-Support" <Support@tq-group.com>
> >>  Gesendet: 12.06.2015 08:33:33
> >>  Betreff: Re: [ptxdist] Sysroots and pkg-config (Qt 5.4.2)
> >>
> >>  >You can do
> >>  >
> >>  >- ptxdist migrate to bring the BSP to the current PTXdist version
> >>  >- the you can remove the qt5 related rules from BSP
> >>  >- reconfigure to build with Qt 5.4 from mainline PTXdist
> >>
> >>  Where can I find "Qt 5.4 from mainline PTXdist" ?
> >
> >git://git.pengutronix.de/git/ptxdist.git
> >
> >That is the meaning of "mainline".
>
> But I do not find Qt 5.4 rules ...

Hmm.

$ cd ptxdist.git
$ git pull
Already up-to-date.
$ ls -l rules/qt5*
-rw-r--r-- 1 jbe ptx   9763 May 26 11:46 rules/qt5.in
-rw-r--r-- 1 jbe ptx  19140 Jun 12 13:56 rules/qt5.make
-rw-r--r-- 1 jbe ptx  97101 Jun  8 09:08 rules/qt5examples.in
-rw-r--r-- 1 jbe ptx 377965 Jun  8 09:08 rules/qt5examples.make
$ head -n30 rules/qt5.make
# -*-makefile-*-
#
# Copyright (C) 2012 by Michael Olbrich <m.olbrich@pengutronix.de>
#
# See CREDITS for details about who has contributed to this project.
#
# For further information about the PTXdist project and license conditions
# see the README file.
#

#
# We provide this package
#
PACKAGES-$(PTXCONF_QT5) += qt5

#
# Paths and names
#
QT5_VERSION     := 5.4.2
QT5_MD5         := c23bd0f14d66e7901d24906a1edce9b0
QT5             := qt-everywhere-opensource-src-$(QT5_VERSION)
QT5_SUFFIX      := tar.xz
QT5_URL         := \
        http://download.qt-project.org/official_releases/qt/$(basename $(QT5_VERSION))/$(QT5_VERSION)/single/$(QT5).$(QT5_SUFFIX) \
        http://download.qt-project.org/development_releases/qt/$(basename $(QT5_VERSION))/$(shell echo $(QT5_VERSION) | tr 'A-Z' 'a-z')/single/$(QT5).
$(QT5_SUFFIX)
QT5_SOURCE      := $(SRCDIR)/$(QT5).$(QT5_SUFFIX)
QT5_DIR         := $(BUILDDIR)/$(QT5)
QT5_BUILD_OOT   := YES
QT5_LICENSE     := LGPLv2.1
QT5_MKSPECS     := $(shell ptxd_get_alternative config/qt5 linux-ptx-g++ && echo $$ptxd_reply)

I'm not a QT expert, but a simple duck test makes me feel it's
qt-5.4.2 related...

Regards,
Juergen

-- 
Pengutronix e.K.                              | Juergen Borleis             |
Industrial Linux Solutions                    | http://www.pengutronix.de/  |

-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-06-15  6:31 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-11 10:18 [ptxdist] Sysroots and pkg-config (Qt 5.4.2) Dennis Miller
2015-06-12  6:33 ` Markus Niebel
2015-06-12 11:53   ` Matthias Klein
2015-06-12 12:01     ` Jürgen Borleis
2015-06-15  6:31   ` Dennis Miller
     [not found] <emf44812bf-3ed0-4b60-b9a9-6cff9c61eaf8@nb-mak>
2015-06-12 13:11 ` Jürgen Borleis
2015-06-12 13:36   ` Matthias Klein

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox