WootingKb / wooting-analog-sdk

Native support for Analog Keyboards #WootDev
Mozilla Public License 2.0
146 stars 20 forks source link

libwooting_analog_wrapper.so No such file or directory #62

Open Karutoh opened 10 months ago

Karutoh commented 10 months ago

I've added the wooting-analog-sdk to my game engine. The problem is I get an error when someone executes a game using my engine.

error while loading shared libraries: libwooting_analog_wrapper.so: cannot open shared object file: No such file or directory

I do not want to require users to install the wooting-analog-sdk manually on Linux just so they can play my games. Especially if they do not own Wooting hardware. I've temporarily disabled this feature with preprocessor definitions due to it not being scalable.

TechDemo.zip

image

simon-wh commented 10 months ago

The architecture of the Analog SDK is designed in a way where it's intended for you to ship the wooting_analog_wrapper library with your application. It's designed to take care of the situations where the Analog SDK isn't present and give you a graceful error to handle nicely in your application.

So you should be able to link to libwooting_analog_wrapper.so and include it in your output, then at runtime you can handle if the Analog SDK is installed or not. Then your game should work completely fine for everyone, whether they have Wooting or the Analog SDK or not