Comments (8)
Just add a new "if block" here for linux:
the procedure should be the same of osx
from unrealenginepython.
Oh and if you manage to run it, make a pull request ;)
from unrealenginepython.
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.
from unrealenginepython.
from unrealenginepython.
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.
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.
Linux is now officially supported:
https://github.com/20tab/UnrealEnginePython#installation-on-linux-64-bit
from unrealenginepython.
Related Issues (20)
- upgrade python console to IPython or other alternatives?
- Error with module h5py
- 4.26.2 Python 3.7 Crash When call bind_event in uep HOT 2
- How to add force to pyactor HOT 1
- keyboard input HOT 2
- Where are the python modules? HOT 1
- Build Failed: Cannot open include file 'UEPyModule.h'
- seems not work at 4.27?
- How can I redirect a python class so that the engine can recognize him?(请问如何重定向一个python类,然后引擎能够识别他?)
- Spawn a pyactor in begin_play doesn't works fine.
- First demo in docs/Http_API.md cause the editor crashed in 4.27.2
- Great content! It might be possible to create an updated version (ue5) HOT 1
- How to call Python automation code from a UI button? HOT 4
- How do I get text from a UEditableTextBox?
- How to run a simple python function, with inputs & outputs, from blueprints? HOT 5
- I am using multithreading to Spawn a Blueprint Actor and Unreal Engine is crashing suddenly when the spawn function gets called.
- consider archiving the repo in github
- how can I change my python env in my own source(python3.8),rather then the give source(python3.6 in UnrealEnginePython/)
- a
- Issues about the HouseKeeper
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from unrealenginepython.