How to enable eglfs plugin in Yocto setup? using yocto+meta-qt5 for Riotboard

ぃ、小莉子 提交于 2019-12-01 08:39:05

问题


Recently I just used fsl-community-bsp and meta-qt5 layer to generate the cross toolchain and the rootfs. I used "bitbake meta-toolchain-qt5" and "bitbake fsl-image-multimedia-full". Both fsl-community-bsp and meta-qt5 use jethro branch.

Following are some of my questions:

  1. In the rootfs which I put in the “riotboard”, is qt5 library already in it? Do I need to compile the source of qt5 and copy it to the board separately?---Now it's clear, the library are inside the rootfs;
  2. I have set up the qtcreator: device, kit, qt version, compiler, debugger, also ssh connection, but when I run the application, qt says “This application failed to start because it could not find or load the qt platform plugin xcb, available platform plugin are: eglfs, minimal, minimalegl, offscreen”.---It seems the error is fixed by me, modifying the PACKAGECONFIG[gles2]="-opengl es2 -eglfs -qpa eglfs,,virtual/libgles2 virtual/egl";
  3. In the Jethro branch of meta-qt5, the qtbase.inc is missing, correct? I found on the internet, that I can modify the PACKAGECONFIG[gles] value, add –qpa eglfs.---It's into the qtbase_git.bb now;
  4. I also found that in the Jethro branch, the serialport is also missing, but in our application, we need this function to handle the serial keyboard. How can we do now?---I find it now;
  5. If I need to compile the qt5 source and copy all the folder to the riotboard, how can I set the path in the qtcreator to find the relevant library?---No need to do this;

Thank you very much!


回答1:


To enable EGLFS, in local.conf add: DISTRO_FEATURES_remove = "X11 wayland"

1.You do not need to copy the qt5 library, you could follow this wandboard qt5 implementation here

  1. In your machine, you need to enable Qt to run eglfs platform, in /etc/profile, add export QT_QPA_PLATFORM=eglfs or when you run an application; you need to add -platform eglfs. ie. helloworld -platform eglfs

  2. There is no qtbase.inc; You could add PACKAGECONFIG_append_pn-qtbase = " eglfs xx xxx xxxx" to enable the configuration you need

  3. There is qtserialport_git.bb in Jethro

  4. As said, you do not copy the libraries and sources but instead tell Bitbake to do that for you. They will be moved to the corresponding places.



来源:https://stackoverflow.com/questions/36760009/how-to-enable-eglfs-plugin-in-yocto-setup-using-yoctometa-qt5-for-riotboard

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!