Why am i getting error in make install in libsub?

0
Amirul Akmal@ASZK ~/libusb-master

$ make install
Making install in libusb
make[1]: Entering directory `/home/Amirul Akmal/libusb-master/libusb'
  CC     core.lo
  CC     descriptor.lo
  CC     hotplug.lo
  CC     io.lo
  CC     strerror.lo
  CC     sync.lo
  CC     os/events_windows.lo
  CC     os/threads_windows.lo
  RC       libusb-1.0.lo
  CC     os/windows_common.lo
os/windows_common.c: In function 'windows_error_str':
os/windows_common.c:68:30: error: 'FACILITY_SETUPAPI' undeclared (first use in this function)
   error_code = 0x80000000 | (FACILITY_SETUPAPI << 16) | (error_code & 0x0000FFFF);
                              ^~~~~~~~~~~~~~~~~
os/windows_common.c:68:30: note: each undeclared identifier is reported only once for each function it appears in
os/windows_common.c: In function 'windows_cancel_transfer':
os/windows_common.c:748:6: error: implicit declaration of function 'CancelIoEx' [-Werror=implicit-function-declaration]
  if (CancelIoEx(transfer_priv->handle, &transfer_priv->overlapped))
      ^~~~~~~~~~
cc1.exe: some warnings being treated as errors
make[1]: *** [os/windows_common.lo] Error 1
make[1]: Leaving directory `/home/Amirul Akmal/libusb-master/libusb'
make: *** [install-recursive] Error 1

I've tried to lookup at How to install libusb? but seem like it have nothing to do with my problem.

Is it my libusb version is the problem or the make itself error? ( I think this is impossible but who knows? )

My Spec :
OS : Win 10 Home
Console im running this : MinGW Shell

makefile
mingw
libusb
asked on Stack Overflow Jan 12, 2021 by Amirul Akmal

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0