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

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 --
     [not found] <emf44812bf-3ed0-4b60-b9a9-6cff9c61eaf8@nb-mak>
2015-06-12 13:11 ` [ptxdist] Sysroots and pkg-config (Qt 5.4.2) Jürgen Borleis
2015-06-12 13:36   ` Matthias Klein
2015-06-11 10:18 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

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