careyjames Posted September 8, 2022 Share Posted September 8, 2022 [careybalboa@dell-xps build]$ cmake ../ CMake Deprecation Warning at CMakeLists.txt:3 (cmake_minimum_required): Compatibility with CMake < 2.8.12 will be removed from a future version of CMake. Update the VERSION argument <min> value or use a ...<max> suffix to tell CMake that the project does not need compatibility with older versions. -- The C compiler identification is GNU 11.2.1 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Looking for pthread.h -- Looking for pthread.h - found -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success -- Found Threads: TRUE -- Found PkgConfig: /usr/bin/pkg-config (found version "1.7.3") -- Checking for module 'libusb-1.0' -- Package 'libusb-1.0', required by 'virtual:world', not found CMake Warning (dev) at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:438 (message): The package name passed to `find_package_handle_standard_args` (LIBUSB) does not match the name of the calling package (USB1). This can lead to problems in calling code that expects `find_package` result variables (e.g., `_FOUND`) to follow a certain pattern. Call Stack (most recent call first): cmake/modules/FindUSB1.cmake:39 (FIND_PACKAGE_HANDLE_STANDARD_ARGS) CMakeLists.txt:41 (find_package) This warning is for project developers. Use -Wno-dev to suppress it. -- Could NOT find LIBUSB (missing: LIBUSB_LIBRARIES LIBUSB_INCLUDE_DIR) CMake Deprecation Warning at libwifiuserspace/CMakeLists.txt:3 (cmake_minimum_required): Compatibility with CMake < 2.8.12 will be removed from a future version of CMake. Update the VERSION argument <min> value or use a ...<max> suffix to tell CMake that the project does not need compatibility with older versions. -- Checking for module 'libusb-1.0' -- Package 'libusb-1.0', required by 'virtual:world', not found CMake Warning (dev) at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:438 (message): The package name passed to `find_package_handle_standard_args` (LIBUSB) does not match the name of the calling package (USB1). This can lead to problems in calling code that expects `find_package` result variables (e.g., `_FOUND`) to follow a certain pattern. Call Stack (most recent call first): cmake/modules/FindUSB1.cmake:39 (FIND_PACKAGE_HANDLE_STANDARD_ARGS) libwifiuserspace/CMakeLists.txt:27 (find_package) This warning is for project developers. Use -Wno-dev to suppress it. -- Could NOT find LIBUSB (missing: LIBUSB_LIBRARIES LIBUSB_INCLUDE_DIR) -- Configuring done CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: LIBUSB_INCLUDE_DIR (ADVANCED) used as include directory in directory /home/careybalboa/hak5-wifi-coconut used as include directory in directory /home/careybalboa/hak5-wifi-coconut used as include directory in directory /home/careybalboa/hak5-wifi-coconut used as include directory in directory /home/careybalboa/hak5-wifi-coconut used as include directory in directory /home/careybalboa/hak5-wifi-coconut used as include directory in directory /home/careybalboa/hak5-wifi-coconut used as include directory in directory /home/careybalboa/hak5-wifi-coconut used as include directory in directory /home/careybalboa/hak5-wifi-coconut used as include directory in directory /home/careybalboa/hak5-wifi-coconut/libwifiuserspace used as include directory in directory /home/careybalboa/hak5-wifi-coconut/libwifiuserspace used as include directory in directory /home/careybalboa/hak5-wifi-coconut/libwifiuserspace used as include directory in directory /home/careybalboa/hak5-wifi-coconut/libwifiuserspace used as include directory in directory /home/careybalboa/hak5-wifi-coconut/libwifiuserspace used as include directory in directory /home/careybalboa/hak5-wifi-coconut/libwifiuserspace used as include directory in directory /home/careybalboa/hak5-wifi-coconut/libwifiuserspace used as include directory in directory /home/careybalboa/hak5-wifi-coconut/libwifiuserspace used as include directory in directory /home/careybalboa/hak5-wifi-coconut/libwifiuserspace used as include directory in directory /home/careybalboa/hak5-wifi-coconut/libwifiuserspace used as include directory in directory /home/careybalboa/hak5-wifi-coconut/libwifiuserspace used as include directory in directory /home/careybalboa/hak5-wifi-coconut/libwifiuserspace used as include directory in directory /home/careybalboa/hak5-wifi-coconut/libwifiuserspace used as include directory in directory /home/careybalboa/hak5-wifi-coconut/libwifiuserspace used as include directory in directory /home/careybalboa/hak5-wifi-coconut/libwifiuserspace used as include directory in directory /home/careybalboa/hak5-wifi-coconut/libwifiuserspace LIBUSB_LIBRARIES (ADVANCED) linked by target "wifi_coconut" in directory /home/careybalboa/hak5-wifi-coconut linked by target "wifi_coconut_capture" in directory /home/careybalboa/hak5-wifi-coconut linked by target "wifiuserspace-static" in directory /home/careybalboa/hak5-wifi-coconut/libwifiuserspace linked by target "wifiuserspace" in directory /home/careybalboa/hak5-wifi-coconut/libwifiuserspace CMake Warning (dev) in CMakeLists.txt: Policy CMP0021 is not set: Fatal error on relative paths in INCLUDE_DIRECTORIES target property. Run "cmake --help-policy CMP0021" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Found relative path while evaluating include directories of "wifi_coconut": "LIBUSB_INCLUDE_DIR-NOTFOUND" This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) in CMakeLists.txt: Policy CMP0021 is not set: Fatal error on relative paths in INCLUDE_DIRECTORIES target property. Run "cmake --help-policy CMP0021" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Found relative path while evaluating include directories of "wifi_coconut_capture": "LIBUSB_INCLUDE_DIR-NOTFOUND" This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) in libwifiuserspace/CMakeLists.txt: Policy CMP0021 is not set: Fatal error on relative paths in INCLUDE_DIRECTORIES target property. Run "cmake --help-policy CMP0021" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Found relative path while evaluating include directories of "wifiuserspace-static": "LIBUSB_INCLUDE_DIR-NOTFOUND" This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) in libwifiuserspace/CMakeLists.txt: Policy CMP0021 is not set: Fatal error on relative paths in INCLUDE_DIRECTORIES target property. Run "cmake --help-policy CMP0021" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Found relative path while evaluating include directories of "wifiuserspace-static": "LIBUSB_INCLUDE_DIR-NOTFOUND" This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) in libwifiuserspace/CMakeLists.txt: Policy CMP0021 is not set: Fatal error on relative paths in INCLUDE_DIRECTORIES target property. Run "cmake --help-policy CMP0021" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Found relative path while evaluating include directories of "wifiuserspace": "LIBUSB_INCLUDE_DIR-NOTFOUND" This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) in libwifiuserspace/CMakeLists.txt: Policy CMP0021 is not set: Fatal error on relative paths in INCLUDE_DIRECTORIES target property. Run "cmake --help-policy CMP0021" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Found relative path while evaluating include directories of "wifiuserspace": "LIBUSB_INCLUDE_DIR-NOTFOUND" This warning is for project developers. Use -Wno-dev to suppress it. -- Generating done CMake Generate step failed. Build files cannot be regenerated correctly. [careybalboa@dell-xps build]$ make [ 4%] Building C object libwifiuserspace/CMakeFiles/wifiuserspace-static.dir/rt2800usb/rt2800lib.c.o In file included from /home/careybalboa/hak5-wifi-coconut/libwifiuserspace/rt2800usb/rt2800lib.c:34: /home/careybalboa/hak5-wifi-coconut/libwifiuserspace/rt2800usb/rt2x00.h:18:10: fatal error: libusb.h: No such file or directory 18 | #include <libusb.h> | ^~~~~~~~~~ compilation terminated. make[2]: *** [libwifiuserspace/CMakeFiles/wifiuserspace-static.dir/build.make:76: libwifiuserspace/CMakeFiles/wifiuserspace-static.dir/rt2800usb/rt2800lib.c.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:156: libwifiuserspace/CMakeFiles/wifiuserspace-static.dir/all] Error 2 make: *** [Makefile:136: all] Error 2 [careybalboa@dell-xps build]$ Quote Link to comment Share on other sites More sharing options...
blksun813 Posted September 12, 2022 Share Posted September 12, 2022 Assuming Kali or Debian sudo apt update sudo apt install libusb-1.0-0-dev Quote Link to comment Share on other sites More sharing options...
blksun813 Posted September 20, 2022 Share Posted September 20, 2022 RHEL should be yum install libusb-devel Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.