Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ndpi_main.h #23

Closed
bdpreom opened this issue Sep 17, 2021 · 1 comment
Closed

ndpi_main.h #23

bdpreom opened this issue Sep 17, 2021 · 1 comment

Comments

@bdpreom
Copy link

bdpreom commented Sep 17, 2021

hi ,

for go 1.17.1 wrapper for ndpi is generating follwing issue

nDPI_wrapper.go:6: ./nDPI_wrapper_impl.h:3:10: fatal error: 'ndpi/ndpi_main.h' file not found #include <ndpi/ndpi_main.h> ^~~~~~~~~~~~~~~~~~

@dreadl0ck
Copy link
Owner

dreadl0ck commented Sep 18, 2021

Hi,

this has nothing to do with your Go version - it happens because the deep packet inspection C library libndpi is not installed on your system, you will need libprotoident as well.

You can compile the project without bindings to ndpi and libprotoident, by passing the 'nodpi' tag to the go compiler.

Eg:

go build -tags nodpi -ldflags "-s -w" -o bin/net github.com/dreadl0ck/netcap/cmd

Or just use a nodpi build from the compiled releases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants