Skip to content

Doesn't work on MacOS Big Sur (11.6) #11

@antivirtel

Description

@antivirtel

Hi,

I've just installed this, but I always get the below:

$ mx2000drv -v breathe off
Error: Mouse not found, is it plugged in?.

Can you please update the driver? BTW, I'm using hidapi installed from brew (v0.11.0).

Ps. I also raised PR #10

Ps2. To make this compile, I had to change the Makefile too (ref. https://apple.stackexchange.com/a/327784/332922), patch (not sure if good):

diff --git a/Makefile b/Makefile
index a2ef01c..f5f2c5c 100644
--- a/Makefile
+++ b/Makefile
@@ -18,12 +18,12 @@ INCLUDES = -I.
 SRCS = $(wildcard $(SRCDIR)/*.c)
 OBJS=$(SRCS:$(SRCDIR)/%.c=$(OBJDIR)/%.o)

-PREFIX ?= /usr
+PREFIX ?= /usr/local
 BINDIR = $(DESTDIR)$(PREFIX)/bin
 MANDIR = $(DESTDIR)$(PREFIX)/share/man/man1
 BSHDIR = $(DESTDIR)$(PREFIX)/share/bash-completion/completions
 ZSHDIR = $(DESTDIR)$(PREFIX)/share/zsh/site-functions
-UDVDIR = $(DESTDIR)/etc/udev/rules.d
+UDVDIR = /etc/udev/rules.d


 ifeq ($(OS),Windows_NT)
@@ -32,7 +32,7 @@ else
        UNAME := $(shell uname -s)
        ifeq ($(UNAME),Darwin)
                LIBS = -lhidapi
-               BSHDIR = $(DESTDIR)$(PREFIX)/etc/bash_completion.d
+               BSHDIR = /etc/bash_completion.d
        else
                LIBS = -lhidapi-libusb # or could use -lhidapi-hidraw
        endif

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions