ntop / ntop/nDPI

Truble with win32

Open
#1,908 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

question
Dominant language
C
Stars
4.6k
Forks
1k
Avg merge
1d 12h
Merged PRs (30d)
18

Description

I'm having a problem building the WIN32 version of ndpi-reader for WIN10 (the 64-bit version is fine, thanks developers.). I tried all the ways that are described in the documentation. Question №1: Does nDPI support win32?
And question №2: When I build a project in MS VisualStudio 2023, the following errors occur when linking:
Error LNK2019 reference to an unresolved external symbol ___popcnt64 in the _hamming function.
Error LNK2019 reference to unresolved external symbol _inet_ntop@20 in _processCertificateElements function.
Error LNK2019 reference to unresolved external symbol _pcap_open_live in function _openPcapFileOrDevice.
Error LNK2019 reference to an unresolved external symbol _pcap_open_dead in the _extcap_capture function.
Error LNK2019 reference to unresolved external symbol _pcap_open_offline in function _openPcapFileOrDevice.
Error LNK2019 reference to unresolved external symbol _pcap_close in _test_lib function.
Error LNK2019 reference to unresolved external _pcap_loop symbol in _runPcapLoop function.
Error LNK2019 reference to an unresolved external symbol _pcap_breakloop in the _breakPcapLoop function.
Error LNK2019 reference to an unresolved external symbol _pcap_setfilter in the _configurePcapHandle function.
Error LNK2019 reference to an unresolved external symbol _pcap_geterr in the _configurePcapHandle function.
Error LNK2019 reference to unresolved external _pcap_compile symbol in _configurePcapHandle function.
Error LNK2019 reference to unresolved external symbol _pcap_freecode in _processing_thread function.
Error LNK2019 unresolved external symbol _pcap_datalink in _runPcapLoop function.
Error LNK2019 reference to an unresolved external symbol _pcap_dump_open in the _extcap_capture function.
Error LNK2019 reference to unresolved external symbol _pcap_dump_flush in _ndpi_process_packet function.
Error LNK2019 reference to unresolved external symbol _pcap_dump_close in _main function.
Error LNK2019 reference to unresolved external _pcap_dump symbol in _ndpi_process_packet function.
Error LNK2019 reference to unresolved external symbol _pthread_create in _test_lib function.
Error LNK2019 reference to unresolved external _pthread_join symbol in _test_lib function.
Error LNK2019 reference to unresolved external symbol __BitScanForward64 in function ___builtin_ctzll.
Error LNK2019 reference to unresolved external symbol __BitScanReverse64 in function ___builtin_clzll.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the WIN32 build of ndpi-reader with Visual Studio 2023 and review the documented Windows build steps. Investigate the listed unresolved symbols, including libpcap, pthread, and 64-bit intrinsic references; done means the WIN32 build links successfully or the supported configuration is documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
build-system, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.