Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [solved] Configuring Qt Creator project for using WinPcap

[solved] Configuring Qt Creator project for using WinPcap

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 6.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.
  • U Offline
    U Offline
    usamytch
    wrote on 5 Apr 2011, 09:07 last edited by
    #1

    Good day, colleagues!

    I've just downloaded WinPcap developer kit and want use it in my QT Creator project. What should I add to .pro file to enable WinPcap?

    Google find rather old thread: "http://www.qtcentre.org/threads/2074-Problem-to-compile-with-MinGW-Qt-4-winpcap":http://www.qtcentre.org/threads/2074-Problem-to-compile-with-MinGW-Qt-4-winpcap

    Is information in thread above is actual or there are some other ways?

    1 Reply Last reply
    0
    • G Offline
      G Offline
      giesbert
      wrote on 5 Apr 2011, 09:10 last edited by
      #2

      I have no Idea, what WinPCap is and how it works. But in general, you must have a build with the same compiler as your Qt version (don't mix mingw dlls and MSVS dll), set include paths in the pro file, add the linker path and the lib in pro, that's it.

      Nokia Certified Qt Specialist.
      Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

      1 Reply Last reply
      0
      • G Offline
        G Offline
        goetz
        wrote on 5 Apr 2011, 09:30 last edited by
        #3

        See the respective docs of qmake "here":http://doc.qt.nokia.com/4.7/qmake-project-files.html#declaring-other-libraries

        http://www.catb.org/~esr/faqs/smart-questions.html

        1 Reply Last reply
        0
        • U Offline
          U Offline
          usamytch
          wrote on 5 Apr 2011, 13:38 last edited by
          #4

          Thank you very much, I added:

          @INCLUDEPATH += D:/Distr/Network/WpdPack/Include
          LIBS += -L D:/Distr/Network/WpdPack/Lib -lwpcap - lpacket@

          and it solved the problem.

          1 Reply Last reply
          0

          1/4

          5 Apr 2011, 09:07

          • Login

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