Topics

#apt #yocto #sdk #toolchain #yocto #apt #sdk #toolchain


FooBar
 

Hi,

 

I’m having trouble adding apt to the cross-compile Qt SDK toolchain. I’m hoping someone can direct me to some resources or guide me on how to accomplish this task.

 

I have added the following to my conf/local.conf file (I believe some of these lines are not needed, but I followed several different tutorials that told me different things, and I’m not sure which is not right, if any):

 

# Additional Changes                                                                                                                                                                                               

PACKAGE_CLASSES = "package_deb"

EXTRA_IMAGE_FEATURES += " package-management "

IMAGE_FEATURES += " package-management "

IMAGE_INSTALL_append += " apt"

DISTRO_FEATURES_append = " apt cups"

CORE_IMAGE_EXTRA_INSTALL += " apt cups"

TOOLCHAIN_TARGET_TASK_append = " apt cups"

 

I expected after running

 

bitbake meta-toolchain-qt5
bitbake apt –c populate_sdk

bitbake package-index

 

And running

 

tmp/deploy/sdk/<qt5-toolchain>.sh

 

Then sourcing:

 

. /opt/<path>/4.14-sumo/environment-setup-aarch64-poky-linux

 

And using the toolchain to build… I get

 

apt-pkg/pkgcache.h: No such file or directory

 

How would I go about adding apt properly? It does not seem to be finding the headers or resources for it in the sdk toolchain.

 

Thanks,

 

FooBar


Josef Holzmayr <holzmayr@...>
 

Howdy!

On Wed, Jan 15, 2020 at 07:04:08AM -0800, FooBar wrote:
Hi,

I’m having trouble adding apt to the cross-compile Qt SDK toolchain. I’m hoping someone can direct me to some resources or guide me on how to accomplish this task.
Whats the rationale behind it? I can see apt being useful on the target
under rare/obscure cirumstances, but in the SDK, what do you want to
archieve?

Greetz

FooBar
PS: Hiding behind "FooBar" doesn't give a very good impression.

--
———————————————
Josef Holzmayr
Software Developer Embedded Systems

Tel: +49 8444 9204-48
Fax: +49 8444 9204-50

R-S-I Elektrotechnik GmbH & Co. KG
Woelkestrasse 11
D-85301 Schweitenkirchen
www.rsi-elektrotechnik.de
———————————————
Amtsgericht Ingolstadt – GmbH: HRB 191328 – KG: HRA 170393
Geschäftsführer: Dr.-Ing. Michael Sorg, Dipl.-Ing. Franz Sorg
Ust-IdNr: DE 128592548

_____________________________________________________________
Amtsgericht Ingolstadt - GmbH: HRB 191328 - KG: HRA 170363
Geschäftsführer: Dr.-Ing. Michael Sorg, Dipl.-Ing. Franz Sorg
USt-IdNr.: DE 128592548


FooBar
 

Hi, we want to set up to cross compile our software that uses QApt, for an embedded device, on our build machine. We want to automate the process. The embedded device is to be updated on occasion, and is actually migrated from a different embedded device. We have been able to build other Qt projects fine, but when it comes to including apt-pkg/pkgcache.h, we haven't had luck.

P.S. 
Oops, I replied to sender the first time I sent this message and not to group (sorry if you get a duplicate message Josef):