Hey folks, I’m trying my first build of UE4.1 and after a successful build in Visual Studio Express 2013 (On Win 7 Pro x64), I get this curious message:
Installing Visual Studio distributables didn’t seem to do the trick. I understand this is some kind of DirectX error and perhaps something to do with the latest version of DirectX, but the Xinput.h file clearly has exceptions to call up 9.1 version instead.
XINPUT is definitely part of the DirectX runtime, the latest version of which you should already have installed on your system before running UE4. If, for some unknown reason, you installed the latest version and it didn’t do the trick, you can always manually obtain the file from somewhere and put it beside the rest of windows’ DLL’s.
Thanks for the link, the problem is that I’m running Windows 7 and official installations from Microsoft only install XINPUT1_4.dll into a Windows 8 installation, otherwise they install XINPUT9_1_0.
The problem here is that Unreal is supposed to be selecting XINPUT9_1_0 instead when loading. For some reason, building here, it’s requiring XINPUT1_4.
I even went into the code and changed all the references to XINPUT.lib to XINPUT9_1_0.lib and it still required XINPUT1_4.dll.
I ran that installer just in case, it didn’t install XINPUT1_4.
I had this problem and the reference was in UNREALEDITOR_AKAUDIO.DLL. I hardcoded the reference in AkAudio.Build.cs to XINPUT9_1_0.lib and the problem went away
I had a similar issue and the problem was that my dependencies were messed up. Make sure you have all dependencies downloaded including the files in UE4\Engine\Source\ThirdParty\Windows\DirectX\Lib. The XInput module links against XInput.lib and that’s what defines the actuall XInput DLL being used. If you miss xinput.lib in the folder I mentioned above then the linker might find it somewhere else (DirectX SDK).
XInput.h is not really related. It defines the DLL names but those defines are for loading it dynamically. The problem is that Core links to xinput statically via the XInput module. I’ve elaborated that a bit more in my answer below.
We ran into the same issue. The editor would load XInput1_3.dll, but the packaged game would load XInput1_4.dll, breaking Windows 7 compatibility. For us the problem turned out to be Wwise, which explicitly links against the system version of XInput.lib. The fix described here worked for us.