AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Cmake include directories syntax9/10/2023 ![]() "C:\Program Files\CMake\bin\cmake.exe" -E rm -f CMakeFiles\systemx_protocol.dir/objects.a "C:\Program Files\CMake\bin\cmake.exe" -E cmake_link_script CMakeFiles\systemx_protocol.dir\link.txt -verbose=1 Linking CXX executable systemx_protocol.exe C:/msys64/mingw64/bin/mingw32-make.exe -f CMakeFiles\systemx_protocol.dir\build.make CMakeFiles/systemx_protocol.dir/build mingw32-make: Leaving directory '/build' "C:\Program Files\CMake\bin\cmake.exe" -E cmake_depends "MinGW Makefiles" "" "" "\build" "\build" "\build\CMakeFiles\systemx_protocol.dir\DependInfo.cmake" -color= C:/msys64/mingw64/bin/mingw32-make.exe -f CMakeFiles\systemx_protocol.dir\build.make CMakeFiles/systemx_protocol.dir/depend mingw32-make: Entering directory '/build' C:/msys64/mingw64/bin/mingw32-make.exe -f CMakeFiles\Makefile2 all "C:\Program Files\CMake\bin\cmake.exe" -E cmake_progress_start "\build\CMakeFiles" "\build\\CMakeFiles\progress.marks" "C:\Program Files\CMake\bin\cmake.exe" -S"" -B"\build" -check-build-system CMakeFiles\Makefile.cmake 0 Executing command: "C:\Program Files\CMake\bin\cmake.EXE" -build "/build" -config Debug -target all -j 18. It seems like CMake isn't properly linking libtins, but I'm not sure where the linking is failing. The following is the full output from clicking "Build" in Visual Studio Code. DPCAP_ROOT_DIR="/npcap-sdk-1.13" -DLIBTINS_ENABLE_WPA2=0 -DLIBTINS_BUILD_SHARED=0 -DLIBTINS_ENABLE_CXX11=1 -DLIBTINS_ENABLE_DOT11=0 My main.cpp file (from libtins's tutorial page with slight modifications): #define TINS_STATICĬmake. Target_link_libraries(systemx_protocol tins Packet Ws2_32 Iphlpapi wpcap) ![]() Link_directories(libtins/build/lib/Debug npcap-sdk-1.13/Lib/圆4)Īdd_executable(systemx_protocol main.cpp) Include_directories(libtins/include npcap-sdk-1.13/Include) My CMakeLists.txt file: cmake_minimum_required(VERSION 3.0.0) I have CMake downloaded and configured in Visual Studio Code by following this guide (it translates to Windows very easily). I am not familiar with CMake so my configurations are pulled from other places on StackOverflow and the CMake documentation. I followed the main guide located on libtin's github.io page (located here) and another guide from StackOverflow (located here) that uses Visual Studio, but I am using CMake so those instructions are not one-to-one for my situation. I am trying to compile a project using Visual Studio Code on Windows that uses the libtins library but I am having trouble getting CMake to link the library.
0 Comments
Read More
Leave a Reply. |