General Yocto Build Question

Hi buddies.

I can see “python3-dev-3.8.2-r0.aarch64.rpm” in deploy/rpm folder, but I want to put it into a final build image at bitbake running time. What package name should be added to IMAGE_INSTALL += section in .bb file? Further, is there any matching algorithm between package name and RPM file name?

Thanks in advance.

Hi @toddhwang I think using just python-dev should work. Please try that and let us know.

As for the general answer, I think it’s everything before the version number in the package name.

Drew

Thanks Drew for your advise.

I met always an error message “Python.h does not exist” when I tried “pip3 install scikit-learn” … It take very long while ^^. Then it was cleanly resolved after doing “rpm -ivh python3-dev-3.8.2-r0.aarch64.rpm” on the target. So I would like to set it up at compilation time without keyboard job to move RPM file and hang out with “rpm -ivh” ^^ "IMAGE_INSTALL += … python_dev " works for that?

Dear Drew.

Let me share with you the result of “python-dev” …


Loading cache: 100% |#################################################################################################################################################| Time: 0:00:00
Loaded 3912 entries from dependency cache.
Parsing recipes: 100% |###############################################################################################################################################| Time: 0:00:01
Parsing of 2745 .bb files complete (2744 cached, 1 parsed). 3912 targets, 231 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
ERROR: Nothing RPROVIDES ‘python-dev’ (but /home/infot/karma/yocto/oe-core/build/meta-facedemo/recipes-images/facedemo-image/facedemo-image_1.0.bb RDEPENDS on or otherwise requires it)
NOTE: Runtime target ‘python-dev’ is unbuildable, removing…
Missing or unbuildable dependency chain was: [‘python-dev’]
ERROR: Required build target ‘facedemo-image’ has no buildable providers.
Missing or unbuildable dependency chain was: [‘facedemo-image’, ‘python-dev’]

Summary: There were 2 ERROR messages shown, returning a non-zero exit code.

The following is the snapshot of phase of IMAGE_INSTALL for my image. Was it wrong?

IMAGE_INSTALL += "
packagegroup-sdk-target
git
flex bison
m4 libtool automake cmake
libffi-dev
python3 python3-numpy
python-dev
libxcb freetype
gtk+3
apt dpkg
libgcrypt libxcrypt
"

Yes, that’s exactly what is supposed to happen
Drew

That’s good news. Please let me know when you are able to verify it fully.
Drew

Come on ~ Drew… We got almost there. ^^ With “pyhthon3-dev” not “python-dev” everything went fine. I need to check it was listed on pn_buildlist . ^^ Thanks