Engine V2 - compile fails on Linux

   2659   3   3
User Avatar
Member
7046 posts
Joined: 7月 2005
Offline
Hi,

I'm no C++ guru but when I follow Dan's tutorial on compiling, all goes well until I actually try to compile it

Performing 22 actions (64 in parallel)
[1/22] Compile PCH.HoudiniEngine.h
[3/22] Compile PCH.HoudiniEngineEditor.h
[2/22] Compile PCH.HoudiniEngineRuntime.h
[4/22] Compile Module.HoudiniEngineRuntime.gen.4_of_4.cpp
[5/22] Compile Module.HoudiniEngineRuntime.gen.3_of_4.cpp
[6/22] Compile Module.HoudiniEngineRuntime.gen.2_of_4.cpp
[7/22] Compile Module.HoudiniEngineRuntime.gen.1_of_4.cpp
[8/22] Compile Module.HoudiniEngineRuntime.cpp
[9/22] Compile Module.HoudiniEngine.1_of_5.cpp
[10/22] Compile Module.HoudiniEngine.2_of_5.cpp
[11/22] Compile Module.HoudiniEngine.3_of_5.cpp
[12/22] Compile Module.HoudiniEngine.5_of_5.cpp
[13/22] Compile Module.HoudiniEngine.gen.cpp
[14/22] Compile Module.HoudiniEngine.4_of_5.cpp
In file included from /mnt/sg4tb/unreal/source/UnrealEngine/Engine/Plugins/Runtime/HoudiniEngine/Intermediate/Build/Linux/B4D820EA/UE4Editor/Development/HoudiniEngine/Module.HoudiniEngine.3_of_5.cpp:2:
In file included from /mnt/sg4tb/unreal/source/UnrealEngine/Engine/Plugins/Runtime/HoudiniEngine/Source/HoudiniEngine/Private/HoudiniMaterialTranslator.cpp:28:
/mnt/sg4tb/unreal/source/UnrealEngine/Engine/Plugins/Runtime/HoudiniEngine/Source/HoudiniEngine/Private/HoudiniMaterialTranslator.h:48:6: error: ISO C++ forbids forward references to 'enum' types
enum TextureGroup;
^
[15/22] Compile Module.HoudiniEngineEditor.gen.cpp
[16/22] Compile Module.HoudiniEngineEditor.2_of_3.cpp
[17/22] Compile Module.HoudiniEngineEditor.3_of_3.cpp
[18/22] Compile Module.HoudiniEngineEditor.1_of_3.cpp
1 error generated.
[19/22] Link (lld) libUE4Editor-HoudiniEngineRuntime.so
make: *** [Makefile:928: UE4Editor] Error 6


Houdini 18.5.375
gcc 10.2.1
UE 4.25.4

FWIW UE4 compiles and runs fine.

Cheers,
Peter B
Cheers,

Peter Bowmar
____________
Houdini 20.5.262 Win 10 Py 3.11
User Avatar
Member
509 posts
Joined: 7月 2005
Offline
same here
Can't get it to compile, no V1 or V2.

error is:
Compile Module.HoudiniEngine.3_of_5.cpp
In file included from /home/jclaude/Documents/UnrealEngine/source/UnrealEngine/Engine/Plugins/Runtime/HoudiniEngine/Intermediate/Build/Linux/B4D820EA/UE4Editor/Development/HoudiniEngine/Module.HoudiniEngine.3_of_5.cpp:2:
In file included from /home/jclaude/Documents/UnrealEngine/source/UnrealEngine/Engine/Plugins/Runtime/HoudiniEngine/Source/HoudiniEngine/Private/HoudiniMaterialTranslator.cpp:28:
/home/jclaude/Documents/UnrealEngine/source/UnrealEngine/Engine/Plugins/Runtime/HoudiniEngine/Source/HoudiniEngine/Private/HoudiniMaterialTranslator.h:48:6: error: ISO C++ forbids forward references to ‘enum’ types
enum TextureGroup;
^
1 error generated.
make: *** Error 6




gcc version 9.3.0
UE 4.25.3
Edited by VisualCortexLab - 2020年10月31日 23:10:51
JcN
VisualCortexLab Ltd :: www.visualcortexlab.com
User Avatar
Member
509 posts
Joined: 7月 2005
Offline
Houdini 18.5.381
Ubuntu 20.04


Tried just today.. and V2 seems to have received an update (now you only need to modify the main .cs file to change the Houdini version?)

however I still get this with V2:

Building UE4Editor...
Performing 22 actions (8 in parallel)
[1/22] Compile PCH.HoudiniEngine.h
[2/22] Compile PCH.HoudiniEngineRuntime.h
[3/22] Compile PCH.HoudiniEngineEditor.h
[4/22] Compile Module.HoudiniEngineRuntime.gen.4_of_4.cpp
[5/22] Compile Module.HoudiniEngineRuntime.gen.3_of_4.cpp
[6/22] Compile Module.HoudiniEngineRuntime.gen.2_of_4.cpp
[7/22] Compile Module.HoudiniEngineRuntime.gen.1_of_4.cpp
[8/22] Compile Module.HoudiniEngineRuntime.cpp
[9/22] Compile Module.HoudiniEngine.1_of_5.cpp
[10/22] Compile Module.HoudiniEngine.2_of_5.cpp
[11/22] Compile Module.HoudiniEngine.3_of_5.cpp
In file included from /home/jclaude/Documents/UnrealEngine/source/UnrealEngine/Engine/Plugins/Runtime/HoudiniEngine/Intermediate/Build/Linux/B4D820EA/UE4Editor/Development/HoudiniEngine/Module.HoudiniEngine.3_of_5.cpp:2:
In file included from /home/jclaude/Documents/UnrealEngine/source/UnrealEngine/Engine/Plugins/Runtime/HoudiniEngine/Source/HoudiniEngine/Private/HoudiniMaterialTranslator.cpp:28:
/home/jclaude/Documents/UnrealEngine/source/UnrealEngine/Engine/Plugins/Runtime/HoudiniEngine/Source/HoudiniEngine/Private/HoudiniMaterialTranslator.h:48:6: error: ISO C++ forbids forward references to 'enum' types
enum TextureGroup;
^
[12/22] Compile Module.HoudiniEngine.5_of_5.cpp
[13/22] Compile Module.HoudiniEngine.gen.cpp
[14/22] Compile Module.HoudiniEngine.4_of_5.cpp
[15/22] Compile Module.HoudiniEngineEditor.gen.cpp
[16/22] Compile Module.HoudiniEngineEditor.2_of_3.cpp
[17/22] Compile Module.HoudiniEngineEditor.3_of_3.cpp
1 error generated.
[18/22] Compile Module.HoudiniEngineEditor.1_of_3.cpp
[19/22] Link (lld) libUE4Editor-HoudiniEngineRuntime.so
make: *** [Makefile:928: UE4Editor] Error 6
Edited by VisualCortexLab - 2020年11月2日 06:31:12
JcN
VisualCortexLab Ltd :: www.visualcortexlab.com
User Avatar
スタッフ
550 posts
Joined: 9月 2016
Offline
Hi,

We've already fixed that issue on our side, the fix hasn't made it to git yet:
In HoudiniMaterialTranslator.h, adding:

#include “Engine/TextureDefines.h”

to the include list and removing

enum TextureGroup;

will fix the build issue.
  • Quick Links