Hi Ziyuan!
On Wed, 19 Jun 2019 at 07:07, ziyuan <xzy.xu@rock-chips.com> wrote:
hi maintainer,
I have a question for cross compile qtbase5-dev package for debian.
You mean here src:qtbase-opensource-src
I wanna cross compile aarch64/armhf package for qtbase5-dev, due to the
GPU of Rockchip SoC can't support OpenGL desktop, they're just support
OpenGL ES.I have to revert the commit:
commit d35641e169dd5a2db4886f83a1bb558a958e3f68
Author: Lisandro Damián Nicanor Pérez Meyer <perezmeyer@gmail.com>
Date: Tue Dec 4 13:29:19 2018 -0300
Revert the arm64 switch to OpenGL ES.
See <https://lists.debian.org/debian-devel/2018/11/msg00457.html>
As we know, we should use "-xplatform" or "-device" options to configure
the qtbase5-dev. But I can't find any related 'key word' in
debian/rules, and I re-build the pakcage use 'dpkg-buildpackage -us -uc
-B' on sourcecode of qtbase5-dev. I found that all files(*.o) are run
for amd64 architecture not aarch64.
I'm afraid qtbase-opensource-src currently does not cross compiles
using normal Debian techniques because we could not fix the qmake
bootstrap in it.
I tried to 'chroot' a rootfs for aarch64, and use qemu-aarch64 tools to
cross compile, but it's too slow.
Could you provide any document for cross comiple qtbase5-dev package on
x64 architecture?
The only way I can think of is:
- Install qemu-user-static
- Create an aarch64 chroot
- Mount /proc, /sys, /dev and /dev/pts in it
- chroot into the chroot
- "natively" compile there.
Yes, it **will* be slow. And I can't warrant it will work.