ik1xpv / ExtIO_sddc

ExtIO_sddc.dll - BreadBoard RF103 / HDSDR
Other
72 stars 26 forks source link

Conditional compilation for usbfs zerocopy mem alloc function not available on macOS #220

Closed cozycactus closed 2 years ago

howard0su commented 2 years ago

I believe this is not related to OSX but libusb version. I suggest remove linux check and also use a macro to avoid change the same thing at two places.

howard0su commented 2 years ago

btw, the current code works for me. I use brew install libusb1 which gives me the LIBUSB_API_VERSION=0x01000109

cozycactus commented 2 years ago

btw, the current code works for me. I use brew install libusb1 which gives me the LIBUSB_API_VERSION=0x01000109

As far as i know there is no official libusb1 package in homebrew on macOS. I see only libusb-compat and libusb.

howard0su commented 2 years ago

it is a typo, should be libusb, which is 1.0.26 version for now. https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/libusb.rb

cozycactus commented 2 years ago

it is a typo, should be libusb, which is 1.0.26 version for now. https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/libusb.rb

i'm using 1.0.26 version , still have this error

$ ./sddc_stream_test ../../SDDC_FX3.img 2000000 RX888 | firmware 202 RadioHandlerClass::Stop 0 RadioHandlerClass::Start frame_size = 138240, iso_packets_per_frame = 135 ERROR - libusb_dev_mem_alloc() failed in streaming_open_async at /Users/cozy/ExtIO_sddc/Core/arch/linux/streaming.c:144 started streaming .. for 3000 ms ..