1. 27 Jul, 2021 1 commit
    • Jan Beich's avatar
      cmake: don't use pkg-config directly with non-reference libusb · a24224e2
      Jan Beich authored
      CMake Error at externals/libusb/CMakeLists.txt:120 (add_library):
        Cannot find source file:
      
          libusb/libusb/core.c
      
        Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .h .hh .h++
        .hm .hpp .hxx .in .txx .f .F .for .f77 .f90 .f95 .f03 .ispc
      
      CMake Error at externals/libusb/CMakeLists.txt:120 (add_library):
        No SOURCES given to target: usb
      
      ld: error: undefined symbol: libusb_interrupt_transfer
      >>> referenced by gc_adapter.cpp
      >>>               gc_adapter.cpp.o:(GCAdapter::Adapter::SendVibrations()) in archive src/input_common/libinput_common.a
      >>> referenced by gc_adapter.cpp
      >>>               gc_adapter.cpp.o:(GCAdapter::Adapter::GetGCEndpoint(libusb_device*)) in archive src/input_common/libinput_common.a
      >>> referenced by gc_adapter.cpp
      >>>               gc_adapter.cpp.o:(GCAdapter::Adapter::AdapterInputThread()) in archive src/input_common/libinput_common.a
      
      ld: error: undefined symbol: libusb_error_name
      >>> referenced by gc_adapter.cpp
      >>>               gc_adapter.cpp.o:(GCAdapter::Adapter::SendVibrations()) in archive src/input_common/libinput_common.a
      
      ld: error: undefined symbol: libusb_control_transfer
      >>> referenced by gc_adapter.cpp
      >>>               gc_adapter.cpp.o:(GCAdapter::Adapter::CheckDeviceAccess()) in archive src/input_common/libinput_common.a
      
      ld: error: undefined symbol: libusb_kernel_driver_active
      >>> referenced by gc_adapter.cpp
      >>>               gc_adapter.cpp.o:(GCAdapter::Adapter::CheckDeviceAccess()) in archive src/input_common/libinput_common.a
      
      ld: error: undefined symbol: libusb_close
      >>> referenced by gc_adapter.cpp
      >>>               gc_adapter.cpp.o:(GCAdapter::Adapter::CheckDeviceAccess()) in archive src/input_common/libinput_common.a
      >>> referenced by gc_adapter.cpp
      >>>               gc_adapter.cpp.o:(GCAdapter::Adapter::ClearLibusbHandle()) in archive src/input_common/libinput_common.a
      >>> referenced by gc_adapter.cpp
      >>>               gc_adapter.cpp.o:(GCAdapter::Adapter::Reset()) in archive src/input_common/libinput_common.a
      >>> referenced by gc_adapter.cpp
      >>>               gc_adapter.cpp.o:(GCAdapter::Adapter::Setup()) in archive src/input_common/libinput_common.a
      >>> referenced by gc_adapter.cpp
      >>>               gc_adapter.cpp.o:(GCAdapter::Adapter::AdapterScanThread()) in archive src/input_common/libinput_common.a
      
      ld: error: undefined symbol: libusb_detach_kernel_driver
      >>> referenced by gc_adapter.cpp
      >>>               gc_adapter.cpp.o:(GCAdapter::Adapter::CheckDeviceAccess()) in archive src/input_common/libinput_common.a
      
      ld: error: undefined symbol: libusb_claim_interface
      >>> referenced by gc_adapter.cpp
      >>>               gc_adapter.cpp.o:(GCAdapter::Adapter::CheckDeviceAccess()) in archive src/input_common/libinput_common.a
      
      ld: error: undefined symbol: libusb_get_config_descriptor
      >>> referenced by gc_adapter.cpp
      >>>               gc_adapter.cpp.o:(GCAdapter::Adapter::GetGCEndpoint(libusb_device*)) in archive src/input_common/libinput_common.a
      
      ld: error: undefined symbol: libusb_release_interface
      >>> referenced by gc_adapter.cpp
      >>>               gc_adapter.cpp.o:(GCAdapter::Adapter::ClearLibusbHandle()) in archive src/input_common/libinput_common.a
      >>> referenced by gc_adapter.cpp
      >>>               gc_adapter.cpp.o:(GCAdapter::Adapter::Reset()) in archive src/input_common/libinput_common.a
      >>> referenced by gc_adapter.cpp
      >>>               gc_adapter.cpp.o:(GCAdapter::Adapter::Setup()) in archive src/input_common/libinput_common.a
      >>> referenced by gc_adapter.cpp
      >>>               gc_adapter.cpp.o:(GCAdapter::Adapter::AdapterScanThread()) in archive src/input_common/libinput_common.a
      
      ld: error: undefined symbol: libusb_init
      >>> referenced by gc_adapter.cpp
      >>>               gc_adapter.cpp.o:(GCAdapter::Adapter::Adapter()) in archive src/input_common/libinput_common.a
      
      ld: error: undefined symbol: libusb_open_device_with_vid_pid
      >>> referenced by gc_adapter.cpp
      >>>               gc_adapter.cpp.o:(GCAdapter::Adapter::Setup()) in archive src/input_common/libinput_common.a
      
      ld: error: undefined symbol: libusb_get_device
      >>> referenced by gc_adapter.cpp
      >>>               gc_adapter.cpp.o:(GCAdapter::Adapter::Setup()) in archive src/input_common/libinput_common.a
      
      ld: error: undefined symbol: libusb_exit
      >>> referenced by gc_adapter.cpp
      >>>               gc_adapter.cpp.o:(GCAdapter::Adapter::Reset()) in archive src/input_common/libinput_common.a
      a24224e2
  2. 18 Jun, 2021 4 commits
  3. 17 Jun, 2021 2 commits
  4. 16 Jun, 2021 9 commits
  5. 15 Jun, 2021 3 commits
  6. 14 Jun, 2021 2 commits
  7. 13 Jun, 2021 7 commits
  8. 12 Jun, 2021 1 commit
    • Morph's avatar
      common: fs: Use the normal directory iterator in *Recursively functions · c978f314
      Morph authored
      MSVC's implementation of recursive_directory_iterator throws an exception on an error despite a std::error_code being passed into its constructor. This is most likely a bug in MSVC's implementation since directory_iterator does not throw an exception on an error.
      
      We can replace the usage of recursive_directory_iterator for now until MSVC fixes their implementation of it.
      c978f314
  9. 11 Jun, 2021 11 commits