-
Notifications
You must be signed in to change notification settings - Fork 70
How to use this in the latest 4.12 version of UE4 #24
Comments
Hi, The code was written for 4.8, I think there was some work by @marioyc to port it to 4.10 or 4.12, lets see what he says. If you really need it on 4.12 it shouldn't be too much work to port. |
I have done some UE projects in 4.12. However, when I try to open it in UETorch 4.8, the program crashed. |
Sorry for the delay, I will put together the changes that I mentioned in #19, and hopefully the same will work for 4.12 |
Hey @marioyc, do you know what needs to be done to get the Unreal build scripts to pick up the lua includes when building? I'm trying to get UETorch to work with 4.12.
I don't have any experience with I don't even know if it's being used when I just build from the command line, without VStudio or anything. The build logs don't have anything in them relating to Lua, even thought the build script has Any idea of what could be going wrong? Edit1: I'm trying to get this working with 4.12 because I can get that to build on my machine (in isolation without the UETorch patches), but not 4.8; something about some objects having disappeared. |
I had the same errors when I tried to build it in MacOS, the change that I needed to do was change "liblua.so" in ScriptPlugin.Build.cs to "liblua.dylib" (for more detailes #13), I guess you are building it in Windows and you should check what's the right name. |
I believe 'lualib.so' is correct; I'm building it on Linux. My comment about VStudio was more to actually check if some related library was actually required to build this. [385/709] Link libUE4Editor-BlueprintCompilerCppBackend.so
In file included from ..../UnrealEngine/Engine/Plugins/ScriptPlugin/Intermediate/Build/Linux/B4D820EA/UE4Editor/Development/ScriptPlugin/Module.ScriptPlugin.cpp:3:
..../UnrealEngine/Engine/Plugins/ScriptPlugin/Source/ScriptPlugin/Private/LuaIntegration.cpp:20:2: error: use of undeclared identifier
'luaL_setfuncs'
luaL_setfuncs(LuaState, Lib, 0);
^
..../UnrealEngine/Engine/Plugins/ScriptPlugin/Source/ScriptPlugin/Private/LuaIntegration.cpp:545:2: error: use of undeclared identifier
'luaL_setfuncs'
luaL_setfuncs(LuaState, PrintOverride, 0);
^
[386/709] Link libUE4Editor-GeometryCache.so
..../UnrealEngine/Engine/Plugins/ScriptPlugin/Source/ScriptPlugin/Private/LuaIntegration.cpp:901:2: error: use of undeclared identifier
'lua_pushglobaltable'
lua_pushglobaltable(LuaState);
^ |
Oh, I guess that's because you're using Lua JIT instead of Lua 5.2. Like the instructions say replace LUAJIT21 with LUA52 in install.sh before installing Torch. |
Well, it doesn't look like that's an issue. Following the instructions from the torch installer repo, I ran install with TORCH_LUA_VERSION=LUA52 ./install.sh just be sure, but again, the only libs that are available in the installed torch directory are the following ~/torch/lib $ ls -l
total 79088
lrwxrwxrwx 1 .... .... 10 Aug 14 19:37 libTH.so -> libTH.so.0*
-rwxr-xr-x 1 .... .... 2783560 Aug 14 19:37 libTH.so.0*
-rwxr-xr-x 1 .... .... 77109512 Aug 14 19:42 libTHC.so*
lrwxrwxrwx 1 .... .... 12 Aug 14 19:37 libluaT.so -> libluaT.so.0*
-rwxr-xr-x 1 .... .... 46032 Aug 14 19:36 libluaT.so.0*
-rwxr-xr-x 1 .... .... 674080 Aug 14 19:36 libluajit.so*
-rwxr-xr-x 1 .... .... 144624 Aug 14 19:43 libqlua.so*
-rwxr-xr-x 1 .... .... 198880 Aug 14 19:43 libqtlua.so*
-rwxr-xr-x 1 .... .... 7800 Aug 14 19:43 libthreadsmain.so*
drwxr-xr-x 3 .... .... 4096 Aug 14 19:36 lua/
drwxr-xr-x 3 .... .... 4096 Aug 14 19:36 luarocks/ Building the UnrealEngine code works if I symlink I had to start the editor with the Using jemalloc.
Increasing per-process limit of core file size to infinity.
setrlimit() failed with error 22 (Invalid argument)
- Max per-process value allowed is 0 (we wanted infinity).
Could not adjust core file size, consider changing "core" in /etc/security/limits.conf and relogin.
error(22): Invalid argument
Alternatively, pass -nocore if you are unable or unwilling to do that.
Could not set desired per-process limits, consider changing system limits.
Exiting abnormally (error code: 1) I'm not certain, but I think running with |
It seems you need to run clean.sh before rerunning install.sh (http://torch.ch/docs/getting-started.html) |
I don't believe that is required if you both delete the installation entirely ( |
+1 would love to see support for this for 4.12 or 4.13 |
Fixed in #32 |
No description provided.
The text was updated successfully, but these errors were encountered: