nmap / nmap/npcap

pkg-config support

Open
#299 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
3.6k
Forks
592
PR merge metrics
No merged PRs in 30d

Description

pkg-config tool can work on Windows and libpcap upstream has libpcap.pc. Can npcap SDK provide this file on Windows? It would eliminate libpcap.a/wpcap.lib difference for cross-platform projects that use pkg-config, e.g. via meson build system.

Probably 32-bit and 64-bit folder should have their own .pc files, so that they are selected by PKG_CONFIG_PATH.
Prefix path can be set to some recommended location to install SDK, like C:\Program Files\Npcap.
(Update: on Windows, pkg-config can detect prefix if file is placed inside ${prefix}/lib/pkgconfig.)

Contributor guide

No contributing guide indexed for this repository

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 locating how the Npcap SDK produces and lays out its 32-bit and 64-bit import libraries and headers. Define the corresponding libpcap.pc metadata and verify that each file works through PKG_CONFIG_PATH, including prefix detection from the recommended SDK installation layout. Done means cross-platform projects can use pkg-config on Windows without choosing libpcap.a versus wpcap.lib manually.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
build-system
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.