Skip to content

Commit 21b4ddc

Browse files
author
David
committed
Fixup for building on Ubuntu 20.04.
Without this fails with x86_64-linux-gnu/python3.8/pyconfig.h file not found. Need to create Include directory in Source/UnrealEnginePython which contains an x86_64-linux-gnu directory containing symbolic link to /usr/include/x86_64-linux-gnu/pythonx.x where x.x is appropriate python version. Directly including /usr/include/x86_64-linux-gnu/pythonx.x in linuxKnownIncludesPaths does not work.
1 parent 7f9b917 commit 21b4ddc

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Source/UnrealEnginePython/UnrealEnginePython.Build.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,7 @@ public UnrealEnginePython(TargetInfo Target)
259259
{
260260
throw new System.Exception("Unable to find Python libs, please add a search path to linuxKnownLibsPaths");
261261
}
262+
PublicIncludePaths.Add(Path.Combine(ModuleDirectory,"Include"));
262263
PublicIncludePaths.Add(includesPath);
263264
PublicAdditionalLibraries.Add(libsPath);
264265

0 commit comments

Comments
 (0)