Hey, I’m having some trouble trying to include the dll I made to the build process.
I followed this tutorial to the best of my ability, but its not very clear.
To recap, I included the dll and .lib at:
carGame\ThirdParty\LogitechSteeringWheel\Libraries
and the header file here:
carGame\ThirdParty\LogitechSteeringWheel\Includes
I have a build file here:
carGame\Source\LogitechSteeringWheel\LogitechSteeringWheel.Build.cs
that looks like:
(I started to comment out code sine the original stuff wasn’t working)
using System.IO;
using System;
namespace UnrealBuildTool.Rules
{
public class LogitechSteeringWheel : ModuleRules
{
private string ModulePath
{
get { return Path.GetDirectoryName( RulesCompiler.GetModuleFilename( this.GetType().Name ) ); }
}
private string ThirdPartyPath
{
get { return Path.GetFullPath( Path.Combine( ModulePath, "../../ThirdParty/" ) ); }
}
public LogitechSteeringWheel(TargetInfo Target)
{
//[Standard Module Initialization]//what is this supposed to be??????
LoadLogitechSteeringWheel(Target);
}
public bool LoadLogitechSteeringWheel(TargetInfo Target)
{
bool isLibrarySupported = false;
//if ((Target.Platform == UnrealTargetPlatform.Win64) || (Target.Platform == UnrealTargetPlatform.Win32))
{
isLibrarySupported = true;
string PlatformString = (Target.Platform == UnrealTargetPlatform.Win64) ? "x64" : "x86";
string LibrariesPath = Path.Combine(ThirdPartyPath, "LogitechSteeringWheel", "Libraries");
//TODO: get differnt versions working
//PublicAdditionalLibraries.Add(Path.Combine(LibrariesPath, "LogitechSteeringWheel." + PlatformString + ".lib"));
PublicAdditionalLibraries.Add(Path.Combine(LibrariesPath, "LogitechSteeringWheel.lib"));
Console.WriteLine("path = " + LibrariesPath);
}
if (isLibrarySupported)
{
// Include path
PublicIncludePaths.Add( Path.Combine( ThirdPartyPath, "LogitechSteeringWheel", "Includes" ) );
}
Definitions.Add(string.Format( "WITH_LOGITECH_STEERINGWHEEL_BINDING={0}", isLibrarySupported ? 1 : 0 ) );
return isLibrarySupported;
}
}
}
but, i still get linker errors. What am I missing? I can see I’m not the only one confused by the build system, so lets get this figured out once and for all
Thanks