Can someone help with compiling PcapPlusPlus?
#565
Unanswered
IsaacsLab42
asked this question in
Q&A
Replies: 1 comment 1 reply
-
|
Have you tried running your cmake command with the You might be able to understand better what's causing the error with that output. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to use CPM to compile and statically link both
libpcapandPcapPlusPlus, but I'm having problems. MyCMakeLists.txtfile looks like this:CPMAddPackage( NAME libpcap GITHUB_REPOSITORY the-tcpdump-group/libpcap GIT_TAG libpcap-1.10.4 OPTIONS "BUILD_SHARED_LIBS OFF" "BUILD_WITH_LIBNL OFf" "DISABLE_BLUETOOTH ON" "DISABLE_DAG OFF" "DISABLE_DBUS ON" "DISABLE_LINUX_USBMON ON" "DISABLE_NETMAP ON" "DISABLE_RDMA ON" ) CPMAddPackage( NAME pcapplusplus GITHUB_REPOSITORY seladb/PcapPlusPlus GIT_TAG v23.09 OPTIONS "BUILD_SHARED_LIBS OFF" "PCAPPP_USE_PF_RING OFF" "PCAPPP_USE_DPDK OFF" "PCAPPP_ENABLE_PCAP_IMMEDIATE_MODE ON" "PCAPPP_ENABLE_PCAP_SET_DIRECTION ON" )The error I get while PcapPlusPlus is configuring is:
So, I tried adding this to the
CMakeLists.txtfile in-between the twoCPMAddPackageblocks:Now, the error changes to:
I finally managed to track down the cause of the error, as logged in the
CMakeConfigureLog.yamlfile:Makes sense, since this is still the configure stage and
libpcap.ahas not been built yet. Is there any way to get around this problem? I'm totally onboard with adding aPATCH_COMMANDto munge one of the CMake files in either project, if that's what it takes. It just seems like there should be some other non-invasive solution though.Beta Was this translation helpful? Give feedback.
All reactions