pok3r-custom / pok3r_re_firmware

Reverse engineering project for the POK3R and related keyboards.
219 stars 17 forks source link

HID openAll not supported on OSX yet #14

Open monorkin opened 6 years ago

monorkin commented 6 years ago

Hi!

I've tried to compile this repo on a Mac today, and managed to do it, but every time I run pok3rtool i get the following output:

➜  build (master) ✗ ./pok3rtool list
[00:00:00:000] N List Devices...
[00:00:00:001] E HID openAll not supported on OSX yet
[00:00:00:001] E HID openAll not supported on OSX yet
[00:00:00:001] E HID openAll not supported on OSX yet
[00:00:00:002] E HID openAll not supported on OSX yet
[00:00:00:002] E HID openAll not supported on OSX yet
[00:00:00:002] E HID openAll not supported on OSX yet
[00:00:00:002] E HID openAll not supported on OSX yet
[00:00:00:002] E HID openAll not supported on OSX yet
[00:00:00:003] E HID openAll not supported on OSX yet
[00:00:00:003] E HID openAll not supported on OSX yet
[00:00:00:003] E HID openAll not supported on OSX yet
[00:00:00:003] E HID openAll not supported on OSX yet
[00:00:00:003] E HID openAll not supported on OSX yet
[00:00:00:004] E HID openAll not supported on OSX yet

Steps taken to compile the repo:

git clone git@github.com:ChaoticConundrum/pok3r_re_firmware.git
cd pok3r_re_firmware
git submodule update --init
mkdir build
cd build
CMAKE_PREFIX_PATH=/usr/local/Cellar/openssl/1.0.2m/ cmake ../pok3rtool
make all

Any pointers as to what is wrong or how I can resolve this issue?

EDIT: Forgot to mention: macOS 10.12.6 cmake version 3.9.4 GNU Make 3.81 OpenSSL 1.0.2m

monorkin commented 6 years ago

I get the same output with sudo

monorkin commented 6 years ago

I didn't run it under the root user but under my user stanko. As you suggested, I tried running it with sudo but I got the same output.

ChaoticEnigma commented 6 years ago

As the error message implies, that function isn't supported on OSX. (I think it was just an implementation headache, so I might get back to it). openAll is only used by the list command, so you can still use all the other commands, as long as you know the type of your keyboard. If you have a Pok3r, you would specify pok3rtool version -t pok3r (and sudo if necessary)

monorkin commented 6 years ago

Thanks, it works with the -t pok3r option. I just came back from work and saw that openAll isn't supported in rawHID. Hope that gets fixed in the future.

I'm not sure if I should close this issue or if you want to keep it as a reminder, so I'll leave the closing to you.