What Pi are you using and which OS? If you installed the 64 bit version of Raspberry Pi OS, that could cause problems with xboxdrv. You can check with uname -m
@@D.E.Hammer I am using Raspbien 64bit. Turns out I don't need xboxdrv at all. I just had to connect my controller to a pc and update the firmware on my controller. Now it connects perfectly to the pi