How to link Linux libraries like udev?
I'm writing some C++ code that uses udev library available on Ubuntu 16.04. If I was writing standalone executable I can link my code by ether specifying
How do I do this in Unreal build system? The problem is that I can't use
Background info: The reason I'm using udev is to get joystick vendor ID which seems to be the only viable way in Linux. The reason I'm getting in to this at all is because Unreal doesn't support DirectInput based joysticks like flight RCs :(.
You should be able to use PublicAdditionalLibraries.Add("udev") as this will pass -ludev to the linker in the UBT toolchain. This is how Core.Build.cs links in dlopen for example.
Also as a note to your reasoning for using udev directly; UE4 uses SDL for the input backend (which uses udev and evdev internally) and therefore it should be able to be updated to support your joystick without needing to use udev in the engine code. There are essentially two ways you can do this:
Follow this question
Once you sign in you will be able to subscribe for any updates here