添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
  • Knowledge Bases
  • This doc includes two parts:
    1)How to enable qt5 in LDP
    2)How to enable qt5 in Yocto Linux 6.1.22
    How to use qt5 in LDP(Linux Distribution Poc):
    The gcc and glibc is diffrent from Yocto Linux and Linux Distribution Poc. To cross compile the file between Linux and Ubuntu, we need to care about that.
    To full enable the GPU usage of QT lib, please use "-gles" libs by apt-get command. Qt source code is not suggested, for it has not been tested.
    Building Qt5, for example:
    sudo apt-get update
    sudo apt-get -y install libqt5gui5-gles
    sudo apt-get -y install libqt5quick5-gles
    sudo apt-get -y install qtbase5-gles-dev
    opengles test case glmark:
    sudo apt-get -y install glmark2-es2-wayland
    How to find the missing lib for apt-get:
    sudo apt-get install apt-file
    apt-file search xx
    open wifi if needed NXP internal internet has limitation:
    sudo modprobe moal mod_para=nxp/wifi_mod_para.conf
    and add "nameserver 8.8.8.8" in vi /etc/resolv.conf.
    You can also try:
    echo "nameserver 8.8.8.8" | sudo tee /etc/resolv.conf > /dev/null
    some times system time is not automatically update, and that cause apt-get update fail
    User and choose manually configure it by:
    sudo date -s "2023-08-31 14:00:00"
    For Chinese support for ubuntu, please use:
    sudo apt-get install ttf-wqy-microhei ttf-wqy-zenhei xfonts-wqy
    possible env path you need to export:
    XDG_RUNTIME_DIR="/run/user/1000"
    export QT_QPA_PLATFORM=wayland
    User can choose root login by command like:
    user@imx8mpevk:~$ sudo passwd
    New password:
    Retype new password:
    please use qmake to build qt project:
    1)qmake -o Makefile HelloWorld.pro
    2)make
    some other qt libs:
    sudo apt-get install -y qtwayland5
    sudo apt-get install -y qml-module-qtquick-controls
    sudo apt-get install -y qml-module-qtquick-controls2
    sudo apt-get install -y qml-module-qtcharts
    sudo apt-get install -y libqt5multimedia5 
    sudo apt-get install -y libqt5serialport5 
    sudo apt-get install -y libqt5script5
    sudo apt-get install -y qml-module-qt-labs-settings
    sudo apt-get install -y qml-module-qt-labs-platform
    sudo apt-get install -y qml-module-qtmultimedia
    sudo apt-get install -y libqt5webengine5
    sudo apt-get install -y qml-module-qtwebengine
    sudo apt-get install -y qml-module-qtquick-dialogs
    
    How to enable qt5 in Yocto 6.1.22:
    1.download meta-qt5
    git clone https://github.com/meta-qt5/meta-qt5.git
    git checkout origin/mickledore
    copy Yocto version 5.10.72_2.2.0 sources\meta-imx\meta-sdk\dynamic-layers\qt5-layer to the same path of Yocto 6.1.22
    2.apply two patches
    qt5-1.patch: modify the path from qt6 to qt5
    qt5-2.patch: modify the qt5 related in meta-imx, including:
    1)Yocto grammer update,from "_" to ":"; 
    2)NXP grammer,from mx8 to mx8-nxp-sdk; 
    3)remove gstreamer1.0-plugins-good-qt, for qt5 has been natively added into gst-plugin-good-1.22(which is not in 1.18)
    3.after input command like "DISTRO=fsl-imx-xwayland MACHINE=imx8mp-lpddr4-evk source imx-setup-release.sh -b build-xwayland", comment the "meta-nxp-demo-experience"
    # i.MX Yocto Project Release layers
    BBLAYERS += "${BSPDIR}/sources/meta-imx/meta-bsp"
    BBLAYERS += "${BSPDIR}/sources/meta-imx/meta-sdk"
    BBLAYERS += "${BSPDIR}/sources/meta-imx/meta-ml"
    BBLAYERS += "${BSPDIR}/sources/meta-imx/meta-v2x"
    #BBLAYERS += "${BSPDIR}/sources/meta-nxp-demo-experience"