Community
cancel
Showing results for 
Search instead for 
Did you mean: 
SRajp1
New Contributor I
1,315 Views

How do I install packages on Yocto?

Jump to solution

I want to install a python library on my Edison. The library says to install dependencies using:

$ sudo apt-get install cmake build-essential python-dev bluetooth libbluetooth-dev libboost-python-dev libboost-thread-dev

There's no apt-get in Yocto. I know there's something called opkg, but I'm not sure how to configure it. How would I install these dependencies on Yocto?

1 Solution
idata
Community Manager
151 Views

Hello SiddRajput,

 

 

How you install packages would depend on what you'd like to install. I mean, if the package is on the opkg repos for Edison, then it the simpler procedure would be for you to set the repo if it's not set up already and install it with opkg, as you mentioned. But if the package is not on the repos, then you have two main options, build the package from source or build your own image that includes the package. Of the two options mentioned, the one that is usually simpler is to build the package from source, however, there are exceptions and in those exceptions (I can't remember any at the time, but I have definitely experienced them) it is a lot easier to build the package into the image using the BSP.

 

 

If you'd like to learn more about how to set up the repos or how to add packages into the image, then I'd suggest you read the following documents:

 

 

http://alextgalileo.altervista.org/edison-package-repo-configuration-instructions.html http://alextgalileo.altervista.org/edison-package-repo-configuration-instructions.html

 

http://www.intel.com/content/www/us/en/support/boards-and-kits/000005616.html http://www.intel.com/content/www/us/en/support/boards-and-kits/000005616.html

 

 

Peter.

View solution in original post

2 Replies
AOrlo6
Novice
151 Views

Hi.

You should install python and the rest dependencies on the host system to build target image!

idata
Community Manager
152 Views

Hello SiddRajput,

 

 

How you install packages would depend on what you'd like to install. I mean, if the package is on the opkg repos for Edison, then it the simpler procedure would be for you to set the repo if it's not set up already and install it with opkg, as you mentioned. But if the package is not on the repos, then you have two main options, build the package from source or build your own image that includes the package. Of the two options mentioned, the one that is usually simpler is to build the package from source, however, there are exceptions and in those exceptions (I can't remember any at the time, but I have definitely experienced them) it is a lot easier to build the package into the image using the BSP.

 

 

If you'd like to learn more about how to set up the repos or how to add packages into the image, then I'd suggest you read the following documents:

 

 

http://alextgalileo.altervista.org/edison-package-repo-configuration-instructions.html http://alextgalileo.altervista.org/edison-package-repo-configuration-instructions.html

 

http://www.intel.com/content/www/us/en/support/boards-and-kits/000005616.html http://www.intel.com/content/www/us/en/support/boards-and-kits/000005616.html

 

 

Peter.

View solution in original post

Reply