Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wooting Analog SDK failed to initialize when attempting to run app on Mac #26

Open
ananthsuresh opened this issue Nov 3, 2022 · 2 comments

Comments

@ananthsuresh
Copy link

ananthsuresh commented Nov 3, 2022

Screen Shot 2022-11-02 at 8 17 13 PM

I have already installed the SDK with Homebrew (followed the instructions here)

Using the latest version v0.2.2

Running on apple silicon mac with macOS Monterey version 12.3

@ananthsuresh ananthsuresh changed the title Cannot find SDK when attempting to run app on Mac Wooting Analog SDK failed to initialize when attempting to run app on Mac Nov 3, 2022
@ananthsuresh
Copy link
Author

ananth@Ananths-MBP 0.7.0 % RUST_LOG="debug" /Applications/wooting-analog-midi.app/Contents/MacOS/wooting-analog-midi
[2022-11-03T00:30:17Z INFO  wooting_analog_midi_core] Starting Wooting Analog SDK!
Unable to load library: libwooting_analog_sdk.dylib
Err: dlopen(libwooting_analog_sdk.dylib, 0x0002): tried: 'libwooting_analog_sdk.dylib' (no such file), '/usr/local/lib/libwooting_analog_sdk.dylib' (no such file), '/usr/lib/libwooting_analog_sdk.dylib' (no such file), '/opt/homebrew/Cellar/wooting-analog-sdk/0.7.0/libwooting_analog_sdk.dylib' (no such file)
[2022-11-03T00:30:17Z ERROR wooting_analog_midi] Wooting Analog SDK Failed to initialise.
    
    Please make sure you have all the dependencies installed correctly including the Analog SDK!
thread 'main' panicked at 'Wooting Analog SDK Failed to initialise', src/main.rs:428:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

It looks like the path it's looking for the dylib file is /opt/homebrew/Cellar/wooting-analog-sdk/0.7.0/libwooting_analog_sdk.dylib but Homebrew seems to have installed it for me in /opt/homebrew/Cellar/wooting-analog-sdk/0.7.0/lib/libwooting_analog_sdk.dylib

@ananthsuresh
Copy link
Author

I copied both the lib and share directories that were in /opt/homebrew/Cellar/wooting-analog-sdk/0.7.0/ into usr/local and that seemed to do the trick.

Feels like this should work out of the box - is there perhaps a step I missed with the homebrew installation to set an environment variable or something like that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant