[solved] Configuring Qt Creator project for using WinPcap
-
wrote on 5 Apr 2011, 09:07 last edited by
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?
-
wrote on 5 Apr 2011, 09:10 last edited by
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.
-
wrote on 5 Apr 2011, 09:30 last edited by
See the respective docs of qmake "here":http://doc.qt.nokia.com/4.7/qmake-project-files.html#declaring-other-libraries
-
wrote on 5 Apr 2011, 13:38 last edited by
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/4