‎2022-06-02 11:36 AM
I have a STM32MP157F-DK2 board.
I have installed the distribution package from the tutorials from st.com. I want to install the lxml package which seems to need the libxml2 and libxslt development packages as dependencies, but these packages are not available in the apt manager.
How do I install them with the present distribution package. I am very much newbie in this field, so providing step-by-step methods or reference to an easily understandable documentation is appreciated :)
Solved! Go to Solution.
‎2022-06-05 05:32 AM
Hi @Jaison M​
Again my apologies: I made a typo. The filename should be python3-zeep_4.1.0.bb (an underscore between zeep and 4.1.0). That will download the correct archive as Yocto detects the recipe version (here 4.1.0) after the underscore in the filename.
About your questions related to dependencies between C code and dev packages, this is managed by Yocto which build binaries and libraries by cross-compilation. That means all dependencies should be met on your host PC while the target (i.e. your board) only needs binaries and libraries without building them.
Best regards,
--JM
‎2022-06-05 06:38 AM
@Jaison M​
I just checked this recipe:
DESCRIPTION = "A modern/fast Python SOAP client based on lxml / requests."
HOMEPAGE = "https://docs.python-zeep.org/en/master/"
SECTION = "devel/python"
AUTHOR = "Michael van Tellingen"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=8c4f352744f3f0b50054eef4215eeb95"
SRC_URI[md5sum] = "f689cc06cefb6ee95b2254b80d0ebd30"
SRC_URI[sha256sum] = "5867f2eadd6b028d9751f4155af590d3aaf9280e3a0ed5e15a53343921c956e5"
PYPI_PACKAGE = "zeep"
inherit pypi setuptools3
BBCLASSEXTEND += "native nativesdk"
RDEPENDS_${PN} += " ${PYTHON_PN}-lxml"
It builds and I have successfully installed the package on my board (stm32mp157c-dk2):
root@stm32mp1:~# apt-cache policy python3-zeep
python3-zeep:
Installed: (none)
Candidate: 4.1.0-r0.1
Version table:
4.1.0-r0.1 500
500 http://XXXXX Packages
root@stm32mp1:~# apt-get install --assume-yes python3-zeep
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
libxslt python3-lxml
The following NEW packages will be installed:
libxslt python3-lxml python3-zeep
0 upgraded, 3 newly installed, 0 to remove and 746 not upgraded.
Need to get 1236 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://XXXXX libxslt 1.1.35-r0.0 [96.4 kB]
Get:2 http://XXXXX python3-lxml 4.8.0-r0.0 [997 kB]
Get:3 http://XXXXX python3-zeep 4.1.0-r0.1 [143 kB]
Fetched 1236 kB in 1s (1544 kB/s)
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.
Selecting previously unselected package libxslt.
(Reading database ... 14853 files and directories currently installed.)
Preparing to unpack .../libxslt_1.1.35-r0.0_armhf.deb ...
Unpacking libxslt (1.1.35-r0.0) ...
Selecting previously unselected package python3-lxml.
Preparing to unpack .../python3-lxml_4.8.0-r0.0_armhf.deb ...
Unpacking python3-lxml (4.8.0-r0.0) ...
Selecting previously unselected package python3-zeep.
Preparing to unpack .../python3-zeep_4.1.0-r0.1_armhf.deb ...
Unpacking python3-zeep (4.1.0-r0.1) ...
Setting up libxslt (1.1.35-r0.0) ...
Setting up python3-lxml (4.8.0-r0.0) ...
Setting up python3-zeep (4.1.0-r0.1) ...
Best regards,
--JM
In order to give better visibility on the answered topics, please click on 'Select as Best' on the reply which solved your issue or answered your question. See also 'Best Answers'.
‎2022-06-05 06:57 AM
It compiled successfully with the new recipe that you have provided! Thank you so much for your help ( and especially the quick responses :) ).