Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. pcap.h on a raspberry using qt with cross compil
QtWS25 Last Chance

pcap.h on a raspberry using qt with cross compil

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
qtcreatorraspberrypcappcap.hcross compile
4 Posts 2 Posters 2.0k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • jackyPITCHJ Offline
    jackyPITCHJ Offline
    jackyPITCH
    wrote on last edited by
    #1

    Hello !

    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

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Did you install the dev package matching that library on the RPi ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • jackyPITCHJ Offline
        jackyPITCHJ Offline
        jackyPITCH
        wrote on last edited by jackyPITCH
        #3

        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 
        
        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Did you do that on your Desktop machine ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved