Skip to main content
VLacr.1
Associate II
July 30, 2024
Solved

qt-wpe-simple-browser installation failed

  • July 30, 2024
  • 2 replies
  • 7964 views

Hello,

I am trying to set up a web browser on my STM32MP157F-DK2 board.

Following https://wiki.st.com/stm32mpu/wiki/How_to_install_a_simple_web_browser.

I tried:

root@stm32mp15-disco:~# apt-get install qt-wpe-simple-browser
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package qt-wpe-simple-browser

apt-get update was successful. 

Using apt-search doesn't locate the package.

However, source.list file seems properly configured.

Any clue would be appreciated.

Best Regards,

Vincent

 

 

 

Best answer by Jean-Marc B

Hello @VLacr.1 

Ok, I think I understand the problem. You need the meta-qt5 layer.

So, these are the steps I performed:

 

$ mkdir Distribution-Package
$ cd Distribution-Package/
$ repo init -u https://github.com/STMicroelectronics/oe-manifest.git -b refs/tags/openstlinux-6.1-yocto-mickledore-mpu-v24.06.26
$ repo sync
$ DISTRO=openstlinux-weston MACHINE=stm32mp1 source layers/meta-st/scripts/envsetup.sh
$ cd ../layers/
$ git clone https://github.com/Igalia/meta-webkit.git
$ cd meta-webkit/
$ git checkout mickledore
$ cd ..
$ git clone https://github.com/meta-qt5/meta-qt5
$ cd meta-qt5/
$ git checkout mickledore
$ cd ../../build-openstlinuxweston-stm32mp1/
$ cat >> conf/local.conf <<EOF
IMAGE_INSTALL:append = " wpewebkit cog"
PREFERRED_PROVIDER_virtual/wpebackend = "wpebackend-fdo"

BB_NUMBER_THREADS = "2"
PARALLEL_MAKE = "-j 2"
EOF
$ bitbake-layers add-layer ../layers/meta-webkit/
$ bitbake-layers add-layer ../layers/meta-qt5
$ bitbake -s | grep qt-wpe-simple-browser
qt-wpe-simple-browser :0.1-r0

 

Best regards,

--JM

edit: replace git co alias by git checkout

2 replies

Jean-Marc B
ST Employee
July 30, 2024

Hi @VLacr.1 

The wiki page you refer to doesn't refer to the OpenSTLinux ecosystem 5.1.0. Indeed, from this version, Qt packages are now brought by the X-Linux-Qt extension packages (see https://wiki.st.com/stm32mpu/wiki/X-LINUX-QT_Expansion_Package)Browsing should be described in a dedicated section within the X-Linux-Qt package documentation soon.

As you are using a MP1 board, I suggest you to stay on the ecosystem 5.0.x as the X-Linux-Qt packages are not yet available for MP1 boards.

Best regards,

--JM

VLacr.1
VLacr.1Author
Associate II
July 30, 2024

Hi @Jean-Marc B ,

Thanks for your reply.

Unfortunately, I have downloaded and flashed the started package binaries for revision 5.0 and get about the same result:

root@stm32mp1:~# apt-get update

The software package is provided AS IS, and by downloading it, you agree to be bound to the terms of the software license agreement (SLA).
The detailed content licenses can be found at https://wiki.st.com/stm32mpu/wiki/OpenSTLinux_licenses.

Get:1 http://packages.openstlinux.st.com/5.0 mickledore InRelease [3461 B]
Get:2 http://packages.openstlinux.st.com/5.0 mickledore/main armhf Packages [693 kB]
Get:3 http://packages.openstlinux.st.com/5.0 mickledore/updates armhf Packages [37.0 kB]
Get:4 http://packages.openstlinux.st.com/5.0 mickledore/untested armhf Packages [1373 kB]
Fetched 2106 kB in 3s (680 kB/s)
Reading package lists... Done
root@stm32mp1:~# apt-get install qt-wpe-simple-browser
Reading package lists... Done
Building dependency tree... Done
E: Unable to locate package qt-wpe-simple-browser
root@stm32mp1:~# uname -a
Linux stm32mp1 6.1.28 #1 SMP PREEMPT Thu May 11 14:04:52 UTC 2023 armv7l GNU/Linux

Best Regards,

Vincent

 

 

 

 

 

Jean-Marc B
ST Employee
July 31, 2024

Hi @VLacr.1 

You are correct. The qt-wpe-simple-browser package was dropped from our repository with OpenSTLinux ecosystem 4.0.0.

However, the recipe exists in the layer meta-webkit here:

https://layers.openembedded.org/layerindex/recipe/380402/
After adding the meta-webkit layer, you can build or refer to this recipe into your image by following this wiki page:

https://wiki.st.com/stm32mpu/wiki/How_to_add_a_customer_application
Best regards,

--JM

VLacr.1
VLacr.1Author
Associate II
July 31, 2024

Hello @Jean-Marc B ,

Thanks for your help.

I have successfully added the meta webkit layer and built an image with WPE and COG (which is executed successfully) following https://github.com/Igalia/meta-webkit/wiki/WPE.

Now, following your link, I locate the recipe for qt-wpe-simple-browser but the build fails with error 

ERROR: Nothing PROVIDES 'qt-wpe-simple-browser'

Did I miss something ?

I have attached the log file.

Thanks for you help,

Best Regards,

Vincent