Jump to content


AlexPixelPool

Member Since 05 Feb 2019
Offline Last Active Feb 07 2019 11:16 AM
-----

Topics I've Started

LNK2035 error, wrong lib files?

05 February 2019 - 02:58 PM

Hi all,

At the moment Unreal Engine 4 uses TLSv1.0 to connect to perforce.
A client of ours requested us to only use TLSv1.2 exclusively.
I think this is because UnrealEngine 4.21 is still using the Perforce API version 2015.2

I decided to download the Unreal Engine source code and see if I can add the latest Perforce API to the engine myself.
I was able to download Perforce 2018.2 from https://www.perforce...ix-core-c/c-api
I added the lib and include files the same way as they are added for the older version and made sure Unreal compiles with the lib files from 2018.2.

Unfortunately when using the lib files I downloaded and try to compile the engine I get an error, specifically:

Error LNK2038 mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' 

I think this is because the lib files I downloaded from perforce are compiled with MT_StaticRelease as a RuntimeLibrary.
And Unreal Engine is setup to use MD_DynamicRelease...

My best guess is that Unreal uses other .lib files than the ones that you can download from the perforce website, maybe they are even generated specifically for Epic Games on request.

But maybe there is a way to download those too? Or am I maybe totally wrong about this? :huh: