Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved pcap.h on a raspberry using qt with cross compil

    Mobile and Embedded
    qtcreator raspberry pcap pcap.h cross compile
    2
    4
    1679
    Loading More Posts
    • 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.
    • jackyPITCH
      jackyPITCH last edited by

      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 Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        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 Reply Quote 0
        • jackyPITCH
          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 
          
          1 Reply Last reply Reply Quote 0
          • SGaist
            SGaist Lifetime Qt Champion last edited by

            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 Reply Quote 0
            • First post
              Last post