Skip to contentSkip to conversation

cmake is not getting installed

OE-core Quentin Schulz 2 participants 2 messages Jul 13, 2020 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Hi Pankaj,

Quoted 9 lines · Pankaj Vinadrao Joshi

[Edited Message Follows]

Hi,
i have built a minimal-image for RPI4 and i want cmake to be present on my image i have added following line for cmake

IMAGE_INSTALL += "libc6-dev virtual-libc-dev cmake"

but on image still i am getting an error like -sh cmake:commang not found

I'm not sure you're going the right way now. It's pretty unusual I think to use Yocto to build an image that is going to be used to build stuff. Why don't you build whatever you want to build on the RPI, but with Yocto on your build machine?

I think your line should be enough, depending on where you set it.

oe-pkgdata-util find-path "*/cmake" might help you find which package is installing the cmake binary and where. But cmake looks correct at first glance.

Quoted 6 lines

Also now i am facing same issue for ssh as well i have tried to add openssh and dropbear

CORE_IMAGE_EXTRA_INSTALL += "bash e2fsprogs mtd-utils-ubifs openssh ssh-server-dropbear ssh-server-openssh"

but for this also i am getting error like *ssh command not found*

I suspect you're doing something wrong because ssh-server-dropbear and ssh-server-openssh are incompatible so your image can *NOT* compile with both enabled.

Your CORE_IMAGE_EXTRA_INSTALL is probably not used because you put it in the wrong place, or it's being overriden later.

You can use bitbake -e <your_imaeg_recipe> and look for the line starting with IMAGE_INSTALL (or CORE_IMAGE_EXTRA_INSTALL) and check it's correctly set. If not, look the few lines above to understand how the variable is constructed.

Quentin

#2 lore raw

Hi,
Thank you.Quentin i have one more question in /usr/src i am able to see debug directory but not src how i can get that kernel source directory??do i need to install anything for it???

Thanks!