XhstormR


On a dark desert highway Cool wind in my hair


构建 tcpdump

Updated on 2018-10-13

gcc

cmake

npcap SDK

npcap DLL

tcpdump

Step

D:\Work\Download\tcpdump-master>

type nul > PreLoad.cmake
echo set(CMAKE_C_STANDARD 11 CACHE INTERNAL "" FORCE) > PreLoad.cmake
echo set(CMAKE_C_STANDARD_REQUIRED ON CACHE INTERNAL "" FORCE) >> PreLoad.cmake
echo set(CMAKE_C_FLAGS "-s -static -Os -Wall" CACHE INTERNAL "" FORCE) >> PreLoad.cmake
echo. >> PreLoad.cmake
echo set(CMAKE_GENERATOR "MinGW Makefiles" CACHE INTERNAL "" FORCE) >> PreLoad.cmake
echo set(CMAKE_INSTALL_PREFIX "456" CACHE PATH "" FORCE) >> PreLoad.cmake
echo set(PCAP_INCLUDE_DIR "D:/Download/npcap-sdk/Include" CACHE PATH "" FORCE) >> PreLoad.cmake
echo set(PCAP_LIBRARY "D:/Download/npcap-sdk/Lib/x64/wpcap.lib" CACHE PATH "" FORCE) >> PreLoad.cmake

md 123 && cd 123 && cmake .. && mingw32-make && mingw32-make install

Reference

TOP