Skip to content

A possible solution to fix building on Linux #5

Description

@DKingAlpha

Here is a quick fix to solve issues compiling HIDUE on linux.

Source/HIDUE/HIDUE.Build.cs

using System.IO;


        if (Target.Platform == UnrealTargetPlatform.Linux) {
            File.Copy("/usr/include/libudev.h", ModuleDirectory + "/Private/libudev.h", true);
            PublicSystemLibraries.Add("udev");
            PublicSystemLibraryPaths.AddRange(new [] {
                "/usr/lib"     // only this is needed for linking udev
            });
        }

Consider adding this to Linux.md or HIDUE.Build.cs :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions