pcap.h on a raspberry using qt with cross compil
jackyPITCH last edited by
I want to know what can i do to use pcap.h on a raspberry with qt. I'm developping on a windows machine, using cross compilation to make it readable by the raspberry.
any ideas ? thanks
Hi and welcome to devnet,
Did you install the dev package matching that library on the RPi ?
jackyPITCH last edited by jackyPITCH
Hi, thanks ! : )
Yep i did it with
sudo apt-get install libpcap-dev
But when i include my pcap.h file in my qtproject, it is not recognized as known :
pcap.h : No such file or directory
It seems to be normal because it is not installed on the machine i'm developping with, but i dont know how to do.
Also i read somewhere that i have to add this line to my .pro :
LIBS += -lpcap
but an other error pops :
cannot find -lpcap
Did you do that on your Desktop machine ?