Load Engine Source into Perforce - Unable to add Engine\Source\Runtime\SymsLib/lib/x64/Release/SymsLib.lib

I am trying to setup version control locally for the Unreal Engine 5.0 Source code. When trying to run GenerateProjectFiles.bat on a new Perforce workspace where I am testing the code in Perforce version control to make sure I have all of the files in place in version control I get the following warning…

I have added the following to my .p4ignore file…

!Engine\Source\Runtime\SymsLib\lib

Which if I understand things in the .p4ignore file correctly should allow me to add the *.lib files to Perforce. But when trying to add them with P4V it tells me that these files will not be added because they are ignored.

Here is my entire .p4ignore file

Can someone help on why this is not allowing me to add these files to Perforce?

I have found while searching for a similar issue that there’s an additional .p4ignore at the root of the SymsLib folder that excludes the bin/ and /lib folder along with other Visual Studio files for some reason.

Not sure yet what the cleanest solution is to fix this issue.

1 Like

I fixed it by commenting out the obj/ and lib/ lines from that .p4ignore in Engine/Source/Runtime/SymsLib/

.vs/
*.vxproj.user
*.vcxproj.user
# this is a comment
#obj/
#lib/

You can run the ...\Engine\Source\Runtime\SymsLib\SymsLib.sln and set it to Release , x64 and build it (F7).
It will create SymsLib.lib in ...\SymsLib\lib\x64\Release.

Also, worth looking at this recommendation for p4ignore.