Libpcap-support in current sdk

Is there in easy Way to include libpcap-support (libpcap-dev) into the current SDK? With Images prior LinuxImage2.7 libpcap was included in the SDK (at leas in 2.6). I have successfully included libpcap into my target-image and successfully compiled libpcap-Apps in the yocto-buildenvironment. I bitbaked an SDK for my 64bit Ubuntu-Host with bitbake -k meta-toolchain-qt5, but with this SDK i can not build my App wich needs pcap-Lib. I compared the sysroots for both SDKs based on LinuxImage2.6 und -2.7. In the SDK based on LinuxImage2.6 i can find the include-files und lib-files for the pcap-Lib in the 2.7-SDK there are no such files anymore?
Thank You.


I guess you could add the following (e.g. in local.conf) and rebuild. (bitbake -k meta-toolchain-qt5)

TOOLCHAIN_TARGET_TASK_append = "libpcap-dev"

However the better way would be to build the SDK for your image. i.e.

'bitbake <image_name> -c populate_sdk'.  

As your image deploys libpcap, the resulting SDK will contain the developer packages of libpcap and all other packages deployed with the image.
You will have to add the following to your image recipe to get the additonal Qt 5 development tools:

inherit populate_sdk populate_sdk_qt5


Hello Max,
thank you for your quick reply, this solved my problem.