Giter Site home page Giter Site logo

Comments (8)

rdeioris avatar rdeioris commented on July 22, 2024

Just add a new "if block" here for linux:

https://github.com/20tab/UnrealEnginePython/blob/master/Source/UnrealEnginePython/UnrealEnginePython.Build.cs#L79

the procedure should be the same of osx

from unrealenginepython.

rdeioris avatar rdeioris commented on July 22, 2024

Oh and if you manage to run it, make a pull request ;)

from unrealenginepython.

daeilkim avatar daeilkim commented on July 22, 2024

Thanks so much for that suggestion. I've tried putting what I thought was the equivalent here, but it seemed to still crash, saying that there is an invalid plugin.

else if (Target.Platform == UnrealTargetPlatform.Linux)
    {
            if (pythonHome == "python35")
            {
                string linux_python = "/usr/lib/python3.5/config-3.5m-x86_64-linux-gnu/";
                PublicIncludePaths.Add("/usr/include/python3.5/");
                PublicAdditionalLibraries.Add(Path.Combine(linux_python, "libpython3.5m.so"));
                Definitions.Add(string.Format("UNREAL_ENGINE_PYTHON_ON_LINUX=3"));
            }
            else if (pythonHome == "python27") {
                string linux_python = "/usr/lib/python2.7/config-x86_64-linux-gnu/";
                PublicIncludePaths.Add("/usr/include/python2.7/");
                PublicAdditionalLibraries.Add(Path.Combine(linux_python, "libpython2.7.so"));
                Definitions.Add(string.Format("UNREAL_ENGINE_PYTHON_ON_LINUX=2"));
            }
    }

Apologies in advance if this seems obvious. I've tried to include in a similar fashion the python development headers and linux equivalent of the dylib file in mac.

from unrealenginepython.

daeilkim avatar daeilkim commented on July 22, 2024

screenshot from 2016-09-22 00-39-28

from unrealenginepython.

daeilkim avatar daeilkim commented on July 22, 2024

screenshot from 2016-09-22 00-41-29

from unrealenginepython.

rdeioris avatar rdeioris commented on July 22, 2024

Can't you enable logging of the build phase ?

By the way, check the UnrealEnginePythonPCH.h file as you need to se the right includes

from unrealenginepython.

daeilkim avatar daeilkim commented on July 22, 2024

Thanks, here's what I find in my logfile that I think is relevant:

[2016.09.22-13.43.37:737][ 0]LogModuleManager:Warning: No filename provided for module UnrealEnginePython
[2016.09.22-13.43.37:737][ 0]LogModuleManager:Warning: ModuleManager: Unable to load module 'UnrealEnginePython' because the file '/home/daeil/Programs/UnrealEngine/Engine/Binaries/Linux/' was not found.

By UnrealEnginePythonPCH.h, i couldn't find that, but found UnrealEnginePythonPrivatePCH.h which I think you were referring to. Modified it to include this:

#elif UNREAL_ENGINE_PYTHON_ON_LINUX == 2
#include <python2.7/Python.h>

which still resulted in the same error. Given the error message above, I'm wondering if I should set the flag to MAC and fool it into using those binaries.

from unrealenginepython.

rdeioris avatar rdeioris commented on July 22, 2024

Linux is now officially supported:

https://github.com/20tab/UnrealEnginePython#installation-on-linux-64-bit

from unrealenginepython.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.