JUCE 9 Linux compile error XInput2 (Ubuntu 20.04.6)

Getting the following error when trying to compile on Linux:

i_extra.h:68:
/home/patrick/code/tal/juce/modules/juce_gui_basics/juce_gui_basics.h:393:13: fatal error: 'X11/extensions/XInput2.h' file not found
   #include <X11/extensions/XInput2.h>
            ^~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

Is this a new requirement and what can I do?

Since this commit, you need the xinput development headers installed, often provided by a package named libxi-dev:

1 Like

Thanks, installing the missing package worked