You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import unrealEnginePython and generate xcode project in mac,and then compile it.At first, report error at
UnrealEnginePython. #if PLATFORM_MAC #include <Headers/Python.h> #include <Headers/structmember.h>.Then I redownloaded The 2.7.15 version of python.and then report error in UEPyEngine.cpp
PyObject *py_unreal_engine_unload_package(PyObject * self, PyObject * args)
{
PyObject *obj;
if (!PyArg_ParseTuple(args, "O:unload_package", &obj))
{
return NULL;
}
UPackage* packageToUnload = ue_py_check_type<UPackage>(obj);
if (!packageToUnload)
{
return PyErr_Format(PyExc_Exception, "argument is not a UPackage");
}
FText outErrorMsg;
if (!PackageTools::UnloadPackages({ packageToUnload }, outErrorMsg))
{
return PyErr_Format(PyExc_Exception, TCHAR_TO_UTF8(*outErrorMsg.ToString()));
}
Py_RETURN_NONE;
}
I cannot reproduce your error on my system. Which clang version are you using ? Even the errors you get about headers are pretty weird, which python version are you using ? Have you tried with unreal 4.20 ?
Python 2.7.15 (v2.7.15:ca079a3ea3, Apr 29 2018, 20:59:26)
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.57)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
Activity
rdeioris commentedon Aug 15, 2018
Which unreal version ?
dengzibiao commentedon Aug 15, 2018
ue4.19.2
rdeioris commentedon Aug 15, 2018
The fix should be pretty easy:
I am away from my mac now, let me know if it works for you
dengzibiao commentedon Aug 16, 2018
ok!It works.I didn't see it in the latest code, is this just valid for python27
[-]Can not compile in macOs[/-][+]Can not package in macOs[/+]dengzibiao commentedon Aug 16, 2018
If I Change UnrealEnginePython.uplugin#L20 set as "Editor" instead of "Runtime",Then I Package in ios
JoshEngebretson commentedon Aug 16, 2018
@dengzibiao "Currently only Windows, MacOSX, Linux and Android are supported."
dengzibiao commentedon Aug 17, 2018
macOs High Sierra is not Ok
rdeioris commentedon Aug 17, 2018
I cannot reproduce your error on my system. Which clang version are you using ? Even the errors you get about headers are pretty weird, which python version are you using ? Have you tried with unreal 4.20 ?
dengzibiao commentedon Aug 17, 2018
the .uproject content is
in command line
I do not try ue4.20.You want me to try it?
fixed typo, check #507
rdeioris commentedon Aug 17, 2018
Better to try with python3, regarding clang i was meaning the one used by xcode, not by python