How can I use qt with npu

Hello:
I can olny install and run qtcreator use apt install on this rom
https://dl.khadas.com/Firmware/VIM3/Ubuntu/SD_USB/VIM3_Ubuntu-xfce-bionic_Linux-5.5-rc2_arm64_SD-USB_V0.8.2-20200103.7z
but I can’t run NPU on this rom.
My question:How can I use qt and NPU at the same time on emmc version rom.
Thanks!

The image you use is mainline kernel. Only linux 4.9 support NPU.

Thank for response.
Yes I run the NPU on the linux 4.9rom.
But I Cant use qt on these roms.
I usually use apt-get install install qt5-default qttools5-dev-tools qtcreator to get the qt env. on other Arm system.
But the Vim3 cannot work.
Hope you can solve this bug.
thanks!

@jugglerchn Do you mean that the command about install qt is invalid in VIM3 ?

@Frank Please confirm about this

@numbqq I will check it .

@jugglerchn I install it success.

This my setps

$ sudo apt update
$ sudo apt upgrade
$ sudo apt-get install qt5-default qttools5-dev-tools qtcreator

Please run qtcreator.
Thanks

Also cmake-gui will output the same result:
QStandardPaths: wrong ownership on runtime directory /run/user/1000, 1000 instead of 0

Qt: Session management error: Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed

Segmentation fault

@jugglerchn I try to run it . And it appeared the segmentation fault . I am not sure what cause it. Some people say that there is a problem with the official Ubuntu installation package and they need to download the source code to compile one. Maybe you can try. Or you can choose to wait for us to solve, but it need sometimes, I am not sure specific time . Because of some epidemics, we are full of plans.

OK,Thanks for your work.
Wait for your good news.

It appears to me that nothing Qt-based works on VIM3. I got segmentation fault all the time.
Even simple app like qstardict doesn’t work.

Hello @jugglerchn @Eurus

In order to use qtcreator you need to remove the current GPU packge which is for fbdev not for X11.

After install QT packages on V20191231 image. Please try the following steps to fix QTCreator issues.

khadas@Khadas:~$ sudo apt-get update
khadas@Khadas:~$ sudo apt-get -y remove linux-gpu-mali-fbdev
khadas@Khadas:~$ sudo apt-get -y install --reinstall libegl1-mesa libegl1 libgles2 libgles2-mesa libegl1-mesa-dev libgles2-mesa-dev libglvnd-dev libgles1 libwayland-dev mesa-common-dev
khadas@Khadas:~$ sudo apt-get -y install qt5-default qttools5-dev-tools qtcreator
khadas@Khadas:~$ sync

It works for me with image V20191231.

7 Likes

Thanks a ton!
Finally I got all my needed apps working.
PS: I was on ubuntu V190830.

1 Like

Thanks,This works.
Great Job!

I installed success Qt on VIM3_Ubuntu-gnome-focal_Linux-5.12_arm64_SD-USB_V1.0.5-210430.

$ sudo apt-get update
$ sudo apt-get -y remove linux-gpu-mali-fbdev
$ sudo apt-get -y install --reinstall libegl1-mesa libegl1 libgles2 libgles2-mesa libegl1-mesa-dev libgles2-mesa-dev libglvnd-dev libgles1 libwayland-dev mesa-common-dev
$ sudo apt-get -y install qt5-default qttools5-dev-tools qtcreator
$ sync

But I can not run QtCreator with some errors.

Qt on embed devices very important, please don’t create anything which can not run Qt.

@Kevin-Nguyen the given steps were for the 4.9 kernel image
NOT 5.x Mainline!

please install the latest 4.9 image, it should work :slightly_smiling_face:

Because I can not use the 4.9 kernel so I use 5.12

VIM3 not boot with the image VIM3_Ubuntu-gnome-focal_Linux-4.9_arm64_SD-USB_V1.0.5-210430.img.xz

Burn the image success.

Remove SD card.

But it can not boot.

Video: https://youtu.be/BZ2u7LU5sV0

seems like a bootloop issue, please inform @numbqq

@Electr1

Back to Qt thread, I install VIM3_Ubuntu-gnome-focal_Linux-4.9_arm64_EMMC_V1.0.2-210207.raw.img.xz

And run

$ sudo apt-get update
$ sudo apt-get -y remove linux-gpu-mali-fbdev
$ sudo apt-get -y install --reinstall libegl1-mesa libegl1 libgles2 libgles2-mesa libegl1-mesa-dev libgles2-mesa-dev libglvnd-dev libgles1 libwayland-dev mesa-common-dev
$ sudo apt-get -y install qt5-default qttools5-dev-tools qtcreator
$ sync

On the 4.9 kernel, but it still errors when I start Qt Creator.