Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support 4.27 & 5.0.0 #880

Open
wants to merge 66 commits into
base: master
Choose a base branch
from
Open

Support 4.27 & 5.0.0 #880

wants to merge 66 commits into from

Conversation

crazytuzi
Copy link

No description provided.

cyberbibby and others added 30 commits October 24, 2018 15:56
FRotator arguments order should be pitch, yaw, roll instead of roll, pitch, yaw
Fixed and Removed all Errors and Warnings.
Tested a few python scripts, ran editor for long time. Seems to be okay.
Fixed Version Number
…ill builds on 4.18.

Builds on 4.18 and 4.25 (only versions tested).
…ion in python.

This was used to get the blueprint node creation example scripts to work in 4.25.
…ion modules on debian/ubuntu eg ctypes/unittest.

This may make it impossible to load Epics python and UnrealEnginePython together.
…till builds on 4.18.

Builds on 4.18 and 4.25 (only versions tested).
Currently builds (4.18 and 4.25) and some examples seem to run OK.
This requires some changes to the example scripts.
Started from Support4.25 pull req but now highly modified.
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.
@crazytuzi crazytuzi changed the title Support 4.27 Support 4.27 & 5.0.0 Apr 24, 2022
crazytuzi and others added 22 commits April 25, 2022 19:38
…nrealEnginePython into cyberbibby-Add-support-for-iOS

# Conflicts:
#	Source/UnrealEnginePython/Private/PyCommandlet.cpp
#	Source/UnrealEnginePython/Private/UnrealEnginePython.cpp
#	Source/UnrealEnginePython/Private/Wrappers/UEPyFFoliageInstance.cpp
#	Source/UnrealEnginePython/UnrealEnginePython.Build.cs
# Conflicts:
#	Source/UnrealEnginePython/Private/UnrealEnginePython.cpp
@zhuqhang
Copy link

man , when i compiled successed in ue5.01, but crashed in loading on 2078(PyCFunction_New)in UEPyModule.... have same problem?

@kprimo
Copy link

kprimo commented Mar 8, 2023

Modifying pythonHome in Windows 10 UE5 is not working, it will still link to the python under [Installed Path]\Epic Games\UE_5.0\Engine\Binaries\ThirdParty\Python3\Win64
Windows10 UE5修改pythonHome编译不生效,始终会连接到[安装目录]\Epic Games\UE_5.0\Engine\Binaries\ThirdParty\Python3\Win64下的Python

refer to UnrealEnginePython.Build.cs around line#10

    // leave this string as empty for triggering auto-discovery of python installations...
    private string pythonHome = "C:/Python38";
    // otherwise specify the path of your python installation
    //private string pythonHome = "C:/Program Files/Python36";
    // this is an example for Homebrew on Mac
    //private string pythonHome = "/usr/local/Cellar/python3/3.6.0/Frameworks/Python.framework/Versions/3.6/";
    // on Linux an include;libs syntax is expected:
    //private string pythonHome = "/usr/local/include/python3.6;/usr/local/lib/libpython3.6.so";

    private string[] windowsKnownPaths =
    {
       // "C:/Program Files/Python37",
        "C:/Python38",
        "C:/Program Files/Python36",
        "C:/Program Files/Python35",
        "C:/Python27",
        "C:/IntelPython35"
    };

@ColinCoderUmich
Copy link

Can external python modules be installed and packaged for your Unreal Engine 5.0 build? Thanks!

@ColinCoderUmich
Copy link

@kprimo Did you ever find a fix for linking python home to a the non engine embedded version of Python?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants