-
Notifications
You must be signed in to change notification settings - Fork 20
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
Improve logging when plugin loading fails #8
Comments
Check Simon's answer below |
Hmmm, this is an unusual issue.
The locations you placed the SDK components look about right. |
Hey Simon and Pasta, • Yes, running v0.4.0
• Running High Sierra, 10.13.6 |
Aha! Turns out, that wasn't a critical error you were getting. As you can see from the log, it attempts to load I'll add some additional info to those error messages so it's more clear the source of the problem |
Okay, that makes sense, I think it's working now. Thank you! |
The approach we've been taking so far is that the wrapper should be bundled with your application, not be systemwide. As it's effectively a 'loader' which allows you to safely interact with the SDK and get nice errors even when a user does not have the SDK installed. So for a 'system-wide' installation it's really up to you, I would only do it if you want to be able to have small Dev applications using the SDK without having to copy the wrapper everywhere. Otherwise, I'd suggest just keeping it alongside your project. Hope you have fun using the SDK! Any feedback would be greatly appreciated! Note: keeping this issue open for tracking the improvement of the error logging with plugin loading |
Hey there, trying to build just a basic command line app that utilizes the SDK. Builds okay, but I get the following errors when calling
wooting_analog_initialize()
:ERROR wooting_analog_sdk::cplugin] dlsym(0x100059d90, _name): symbol not found
ERROR wooting_analog_sdk::sdk] Load Plugin failed: Error(Msg("Plugin isn\'t a valid plugin, name function not found"), State { next_error: None, backtrace: InternalBacktrace { backtrace: None } })
As far as I can tell, I've set everything up correctly according to the instructions in the read me, with
libwooting_analog_sdk.dylib
in/usr/local/lib
andlibwooting_analog_plugin.dylib
in/Library/WootingAnalogPlugins/wooting-analog-plugin
.Is there something I'm missing here?
Thanks,
-M.
The text was updated successfully, but these errors were encountered: