mac-dial icon indicating copy to clipboard operation
mac-dial copied to clipboard

Cannot find 'hid_monitor' in scope

Open lzlz99 opened this issue 2 years ago • 2 comments

The cpu of my mac is Apple M1 Pro, when i debug the project:

image

I have clone the hidapi and make :

$ sudo make install Consolidate compiler generated dependencies of target hidapi_darwin [100%] Built target hidapi_darwin Install the project... -- Install configuration: "Release" -- Installing: /usr/local/lib/cmake/hidapi/libhidapi.cmake -- Installing: /usr/local/lib/cmake/hidapi/libhidapi-release.cmake -- Installing: /usr/local/lib/cmake/hidapi/hidapi-config-version.cmake -- Installing: /usr/local/lib/cmake/hidapi/hidapi-config.cmake -- Installing: /usr/local/lib/libhidapi.a -- Installing: /usr/local/include/hidapi/hidapi.h -- Installing: /usr/local/include/hidapi/hidapi_darwin.h -- Installing: /usr/local/lib/pkgconfig/hidapi.pc

lzlz99 avatar Dec 09 '22 01:12 lzlz99

I'm facing this issue too. Although I'm not good at Swift and cannot provide an alternate solution, but I've tried commenting this whole block of code and it then turned out to be compilable and runnable.

KrLite avatar Oct 27 '23 13:10 KrLite

Just as a observation: I commented out the piece of code as suggested, but experienced mac-dial lost contact with the device very frequently.

Long story short: I looked at the git commit log and noticed the semaphore timeout had been changed from 50ms to 60 seconds. Changing it back to 500ms fixed all timeout/connectivity issues.

Note: this is very much a 'hack'/workaround and not a fix of the original issue :)

eihag avatar Dec 08 '23 19:12 eihag