cancel
Showing results for 
Search instead for 
Did you mean: 

qt-wpe-simple-browser installation failed

VLacr.1
Associate II

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

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

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

View solution in original post

14 REPLIES 14
Jean-Marc B
ST Employee

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
Associate II

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

 

 

 

 

 

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

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

 

 

 

 

 

Hi @VLacr.1 

I think you should modify your configuration file and add these lines:

BBFILES_DYNAMIC += " \
    qt5-layer:${LAYERDIR}/dynamic-layers/qt5-layer/*/*/*.bb \
    qt5-layer:${LAYERDIR}/dynamic-layers/qt5-layer/*/*/*.bbappend \
    "

Best regards

--JM 

Hi @Jean-Marc B ,

Thanks for the reply.

I have added these layers in file bblayers.conf and executed again the build command but get the same result:

$ bitbake qt-wpe-simple-browser
NOTE: Started PRServer with DBfile: /home/vincent/Documents/03_DEV/Distribution_package/build-openstlinuxweston-stm32mp15-disco/cache/prserv.sqlite3, Address: 127.0.0.1:45643, PID: 129213
Loading cache: 100% |#####################################################################################################################################################| Time: 0:00:00
Loaded 4635 entries from dependency cache.
ERROR: Nothing PROVIDES 'qt-wpe-simple-browser'

Summary: There was 1 ERROR message, returning a non-zero exit code.

 

However, these lines make perfect sense, having read the documentation of BBFILES_DYNAMIC variable.

I have also checked that the path and regex are correct and even tried to replace absolute path by relative one but with no clue.

$ find . -type f -iname "qt-wpe*.bb"
./meta-webkit/dynamic-layers/qt5-layer/recipes-qt/qt-wpe-simple-browser/qt-wpe-simple-browser_0.1.bb

I have probably missed something else regarding Yocto.

 

 

Hi @VLacr.1 

I think the layer meta-webkit is not available in your BBLAYERS variable from your configuration file. Could you add it please?

Best regards,

--JM

 

Hi @Jean-Marc B ,

I have previously added the meta webkit to the BBLAYERS and successfully compiled it.

I have attached my configuration files for information.

Best regards,

Vincent

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