[solved] Configuring Qt Creator project for using WinPcap
-
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?
-
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.
-
See the respective docs of qmake "here":http://doc.qt.nokia.com/4.7/qmake-project-files.html#declaring-other-libraries
-
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.