intel-aero / meta-intel-aero

Yocto layer to support Intel Aero platform
https://github.com/intel-aero/meta-intel-aero
GNU General Public License v2.0
217 stars 119 forks source link

Can not install zbar with pip install - Python.h is missing in Yocto 1.6.1 #359

Open trgiman opened 6 years ago

trgiman commented 6 years ago

Hi all. I need to install zbar lib. But can not install it since there is no python-dev package. Any workaround suggestions appreciated - installing with sudo dnf --nogpgcheck uninstall python-devel-2.7.13-25.3.1.x86_64.rpm failed due to

Error: conflicting requests

zehortigoza commented 6 years ago

Easiest way to solve that is add the packages you need to Yocto build it, then you can copy the rpms to Aero and install.

trgiman commented 6 years ago

hi @zehortigoza thanks. The problem, that I have is that USB port of Aeroboard is mechanically broken (pins are no longer soldered - somehow it just happened) So I was hoping to do it other-way. I installed dronekit with pip without problems (locally no Internet connection), since it it is distributed as bin, but can not find zbar beeing distributed as wheel format. Anyway I will progress with what you suggested

trgiman commented 6 years ago

@zehortigoza I solved it other-way.Following approach is not good for production, but for tests and fast fix works well:

  1. used zbar python pkg from my x86 ubuntu and copied to python 2.7 pkg location on Yocto Aero (location can be found by using pip show --some python pkg--) 2.copied zbar.so and jpeg.so and libs that zbar requested when used in Python program (location same like in point 1) 3.zbar in Python program is set to run without X11 server

it can save some time especially in my situation. but yocto solution mentioned above is much more systematic of-course. Thanks.