Can you help with compiling libtins library using CPM?
#545
Replies: 1 comment
-
|
The error is generated from a call to You can build winflex separately before proceeding with your project. Alternatively, you can add an CPMAddPackage(
NAME winflexbison
...
)
execute_process( <configure winflex project> )
execute_process( <build_command> )
CPMAddPackage(
NAME libpcap
...
)In either case, you may have to tell cmake where it can find the executable. This may further assist you or guide you on the right track: StackOverflow link (it uses ExternalProject_Add with a helper subproject, but essentially is the same thing). Hope I could help at least a little. 😄 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to use CPM to compile the
libtinslibrary as a dependency for my application. The following is what I wrote, but it keeps failing, the OS is Windows 11.CPMAddPackage( NAME winflexbison GIT_TAG v2.5.25 GITHUB_REPOSITORY lexxmark/winflexbison SYSTEM OPTIONS "BUILD_SHARED_LIBS ${BUILD_SHARED_LIBS}" ) CPMAddPackage( NAME libpcap GIT_TAG libpcap-1.10.4 GITHUB_REPOSITORY the-tcpdump-group/libpcap SYSTEM OPTIONS "BUILD_SHARED_LIBS ${BUILD_SHARED_LIBS}" "DISABLE_BLUETOOTH TRUE" "DISABLE_DBUS TRUE" "DISABLE_DPDK TRUE" "DISABLE_RDMA TRUE" "DISABLE_DAG TRUE" "DISABLE_SEPTEL TRUE" "DISABLE_TC TRUE" "ENABLE_REMOTE FALSE" ) CPMAddPackage( NAME libtins GIT_TAG v4.5 GITHUB_REPOSITORY mfontanini/libtins SYSTEM OPTIONS "BUILD_SHARED_LIBS ${BUILD_SHARED_LIBS}" "LIBTINS_ENABLE_CXX11 TRUE" "LIBTINS_ENABLE_ACK_TRACKER FALSE" "LIBTINS_ENABLE_WPA2 FALSE" "LIBTINS_ENABLE_DOT11 FALSE" )Beta Was this translation helpful? Give feedback.
All reactions