someone can help me with that…
actually i have this: a include file called hardware.h inside the source/thirdparty/includes, and a .lib file inside source/ThirdParty/libraries, compiled in x64, i guess with the proper options
then i have this:
//UE4CHardware.cs
using UnrealBuildTool;
using System.IO;
public class UE4CHardware : ModuleRules
{
public UE4CHardware(TargetInfo Target)
{
LoadCHardware(Target);
}
public bool LoadCHardware(TargetInfo Target)
{
bool isLibrarySupported = false;
string libraryPath = “C:\Users\JorgeCR\Documents\Unreal Projects\TestDll\Source\ThirdParty\libraries\”;
string includePath = “C:\Users\JorgeCR\Documents\Unreal Projects\TestDll\Source\ThirdParty\includes\”;
if ((Target.Platform == UnrealTargetPlatform.Win64) || (Target.Platform == UnrealTargetPlatform.Win32))
{
isLibrarySupported = true;
PublicAdditionalLibraries.Add(Path.Combine(libraryPath, "hardware." + ".lib"));
}
if (isLibrarySupported)
{
PublicIncludePaths.Add(includePath);
}
Definitions.Add(string.Format("WITH_CHWARDWARE_BINDING={0}", isLibrarySupported ? 1 : 0));
return isLibrarySupported;
}
}
at this point i compile and everything is fine, no errors!!!.
but the problem is when i try the linking with UE4
i try this for my header:
//UECHardware.h
#pragma once
#include “Engine.h”
UCLASS()
class UECHardware : public FDefaultGameModuleImpl
{
GENERATED_UCLASS_BODY()
virtual void StartupModule() OVERRIDE;
virtual void ShutdownModule();
};
and my cpp
//UECHardware.cpp
#include “UECHardware.h”
#include “UECHardware.generated.inl”
#include “hardware.h”
#pragma comment (lib,CHARDWARE_LIB_PATH)
class UECHardwareModule : public FDefaultGameModuleImpl
{
hardwareNS::VWHardware *PointerToVWHardware;
virtual void StartupModule() OVERRIDE
{
PointerToVWHardware = new hardwareNS::VWHardware();
}
virtual void ShutdownModule()
{
PointerToVWHardware->Dispose();
PointerToVWHardware = NULL;
}
};
IMPLEMENT_PRIMARY_GAME_MODULE(UECHardwareModule, UECHardware, “UECHardware”);
its compile but i dont know where is the location for this files, rama say that are inside the ThirdParty directory, i dont thick so, because VS not recognizes my #includes and of course nothing more about that.
someone pliss help me with the link!! i am lost