libpcap help
-
hello, I am trying to install the pcap library in Qt but I am having problems. Try to add the path with
INCLUDEPATH += C:\Users\Usuario\Desktop\Lucas Pordomingo\recibir_paquete\libpcap-1.10.1
but I get the error: :-1: error: cannot find -lpcap
I don't know how to fix this. This is the version of Npcap 1.10.1 I used:
https://npcap.com/vs-winpcap.html -
hello, I am trying to install the pcap library in Qt but I am having problems. Try to add the path with
INCLUDEPATH += C:\Users\Usuario\Desktop\Lucas Pordomingo\recibir_paquete\libpcap-1.10.1
but I get the error: :-1: error: cannot find -lpcap
I don't know how to fix this. This is the version of Npcap 1.10.1 I used:
https://npcap.com/vs-winpcap.html -
I put this:
INCLUDEPATH += C:\Users\lucas\Desktop\Nueva carpeta\recibir_paquete\WpdPack\Include
LIBS += "-LC:\Users\lucas\Desktop\Nueva carpeta\recibir_paquete\WpdPack\Lib" -lwpcap -lpacket
LIBS += -lws2_32DEFINES += WPCAP
DEFINES += HAVE_REMOTEand then:
#include <pcap.h>but I hace the error:
C:\Users\lucas\Desktop\Nueva carpeta\recibir_paquete\main.cpp:18: error: pcap.h: No such file or directory
..\recibir_paquete\main.cpp:18:10: fatal error: pcap.h: No such file or directorybut...the file pcap.h is in this path
INCLUDEPATH += C:\Users\lucas\Desktop\Nueva carpeta\recibir_paquete\WpdPack\Include -
Hi,
Did you forgot to quote the path that contains spaces ?
-
I put this:
INCLUDEPATH += C:\Users\lucas\Desktop\Nueva carpeta\recibir_paquete\WpdPack\Include
LIBS += "-LC:\Users\lucas\Desktop\Nueva carpeta\recibir_paquete\WpdPack\Lib" -lwpcap -lpacket
LIBS += -lws2_32DEFINES += WPCAP
DEFINES += HAVE_REMOTEand then:
#include <pcap.h>but I hace the error:
C:\Users\lucas\Desktop\Nueva carpeta\recibir_paquete\main.cpp:18: error: pcap.h: No such file or directory
..\recibir_paquete\main.cpp:18:10: fatal error: pcap.h: No such file or directorybut...the file pcap.h is in this path
INCLUDEPATH += C:\Users\lucas\Desktop\Nueva carpeta\recibir_paquete\WpdPack\Include -
I do not know what you mean with that exactly, the folder moved it from place but I still have the same error, now I have it in :
INCLUDEPATH += C:\Users\lucas\Desktop\paquetes\WpdPack\Include
LIBS += "-LC:\Users\lucas\Desktop\paquetes\WpdPack\Lib"-lwpcap -lpacket
LIBS += -lws2_32DEFINES += WPCAP
DEFINES += HAVE_REMOTEI do not know what is the quote I have to put
-
I do not know what you mean with that exactly, the folder moved it from place but I still have the same error, now I have it in :
INCLUDEPATH += C:\Users\lucas\Desktop\paquetes\WpdPack\Include
LIBS += "-LC:\Users\lucas\Desktop\paquetes\WpdPack\Lib"-lwpcap -lpacket
LIBS += -lws2_32DEFINES += WPCAP
DEFINES += HAVE_REMOTEI do not know what is the quote I have to put
-
It show me this error:
C:\Users\lucas\Desktop\paquete\main.cpp:16: error: pcap.h: No such file or directory
....\paquete\main.cpp:16:10: fatal error: pcap.h: No such file or directory
16 | #include <pcap.h>
| ^~~~~~~~Im using the Qt 6.3.1 MinGW 64-bit version, and for pcap the version Winpacp 4.1.2 I don't know if it has something to do with it
-
It show me this error:
C:\Users\lucas\Desktop\paquete\main.cpp:16: error: pcap.h: No such file or directory
....\paquete\main.cpp:16:10: fatal error: pcap.h: No such file or directory
16 | #include <pcap.h>
| ^~~~~~~~Im using the Qt 6.3.1 MinGW 64-bit version, and for pcap the version Winpacp 4.1.2 I don't know if it has something to do with it