[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: cross compile qtbase5-dev for aarch64 question



hi  Lisandro,

Thanks for your reply.

On 2019/6/19 下午7:42, Lisandro Damián Nicanor Pérez Meyer wrote:
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


Yup, I need to build the package from source code.



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.


From the point of now, I have to cross compile via qemu+chroot. :-(


And, I mentioned earlier, rockchip SoCs can't support OpenGL desktop feature, so we have to revert commit(d35641e169dd5a2db4886f83a1bb558a958e3f68), is possible that the latest qtbase5-dev:arm64 support opengl es?


Cheers, Lisandro.

--
产品三部   许自缘/Ziyuan Xu
Best Regards

福州瑞芯微电子有限公司 Fuzhou Rockchip Electronics Co.Ltd
地址:福建省福州市铜盘路软件大道89号软件园A区20号楼
邮编:350003
电话:(86-0591)83991906-8519




Reply to: