Unable to compile under Cygwin
Hello,
I'm trying to install minipro under Cygwin on Windows 10. I have seen people say they can do it with mingw64, but I have not had any success. Here are the steps I have followed:
-Run Cygwin install -Select Install from Internet -Mirror=https://mirrors.rit.edu -Search for wget --Set All -> Web -> wget 1.21.1-1 to install -Search for libusb --Select highest version for all returned libraries under All -> Lib --(I lready have libsub Windows executable installed) -Search for gcc --Select highest non-test version for all returned libraries under All -> Devel to Install -Click next -Finish install -Open Cygwin terminal -Realize I forgot git -Run install -Search for git --Select highest version of all returned libraries under All -> Devel -Realize I forgot make -Run install -Search for make --Select highest version of all returned libraries under All -> Devel that were not already installed -Get errors related to "conflicting types for ‘usb_open’" and "conflicting types for ‘usb_close’" (see below for exact errors) -Search for libusb --Select highest version for all libraries returned under All->Devel that were not already installed
I'm not sure what I'm getting wrong. Any help would be appreciated.
Thank you
PS: I'm aware that this minipro is for Linux and Mac, but as others have successfully done this, I thought it must be possible. I reached out to David before posting asking where the best place to ask for help was, and he pointed me here. Although I didn't tell him it was Cygwin related. I apologize if this is out of turn.
In file included from /usr/include/w32api/winusb.h:57, from usb_win.c:23: /usr/include/w32api/winusbio.h:60:3: error: unknown type name ‘USBD_PIPE_TYPE’ 60 | USBD_PIPE_TYPE PipeType; | ^~~~~~~~~~~~~~ /usr/include/w32api/winusbio.h:67:3: error: unknown type name ‘USBD_PIPE_TYPE’ 67 | USBD_PIPE_TYPE PipeType; | ^~~~~~~~~~~~~~ In file included from usb_win.c:23: /usr/include/w32api/winusb.h:88:152: error: unknown type name ‘PUSBD_ISO_PACKET_DESCRIPTOR’; did you mean ‘PUSB_INTERFACE_DESCRIPTOR’? 88 | WINBOOL WINAPI WinUsb_ReadIsochPipe (WINUSB_ISOCH_BUFFER_HANDLE BufferHandle, ULONG Offset, ULONG Length, PULONG FrameNumber, ULONG NumberOfPackets, PUSBD_ISO_PACKET_DESCRIPTOR IsoPacketDescriptors, LPOVERLAPPED Overlapped); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ | PUSB_INTERFACE_DESCRIPTOR /usr/include/w32api/winusb.h:89:157: error: unknown type name ‘PUSBD_ISO_PACKET_DESCRIPTOR’; did you mean ‘PUSB_INTERFACE_DESCRIPTOR’? 89 | WINBOOL WINAPI WinUsb_ReadIsochPipeAsap (WINUSB_ISOCH_BUFFER_HANDLE BufferHandle, ULONG Offset, ULONG Length, BOOL ContinueStream, ULONG NumberOfPackets, PUSBD_ISO_PACKET_DESCRIPTOR IsoPacketDescriptors, LPOVERLAPPED Overlapped); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ | PUSB_INTERFACE_DESCRIPTOR In file included from usb_win.c:24: usb.h:23:7: error: conflicting types for ‘usb_open’ 23 | void *usb_open(uint8_t verbose); | ^~~~~~~~ In file included from /usr/include/w32api/winusbio.h:53, from /usr/include/w32api/winusb.h:57, from usb_win.c:23: /usr/include/usb.h:328:21: note: previous declaration of ‘usb_open’ was here 328 | usb_dev_handle *usb_open(struct usb_device *dev); | ^~~~~~~~ In file included from usb_win.c:24: usb.h:24:5: error: conflicting types for ‘usb_close’ 24 | int usb_close(void *usb_handle); | ^~~~~~~~~ In file included from /usr/include/w32api/winusbio.h:53, from /usr/include/w32api/winusb.h:57, from usb_win.c:23: /usr/include/usb.h:329:9: note: previous declaration of ‘usb_close’ was here 329 | int usb_close(usb_dev_handle *dev); | ^~~~~~~~~ usb_win.c:61:7: error: conflicting types for ‘usb_open’ 61 | void *usb_open(uint8_t verbose) { | ^~~~~~~~ In file included from /usr/include/w32api/winusbio.h:53, from /usr/include/w32api/winusb.h:57, from usb_win.c:23: /usr/include/usb.h:328:21: note: previous declaration of ‘usb_open’ was here 328 | usb_dev_handle *usb_open(struct usb_device *dev); | ^~~~~~~~ usb_win.c:125:5: error: conflicting types for ‘usb_close’ 125 | int usb_close(void *handle) { | ^~~~~~~~~ In file included from /usr/include/w32api/winusbio.h:53, from /usr/include/w32api/winusb.h:57, from usb_win.c:23: /usr/include/usb.h:329:9: note: previous declaration of ‘usb_close’ was here 329 | int usb_close(usb_dev_handle *dev); | ^~~~~~~~~ make: *** [: usb_win.o] Error 1