Tag Archives: game development

Unreal4 C++ error guidelines

 

I believe that students are now starting to use C++ development method to complete some functions or try to understand the internal application process of UnrealEngine4, the process is naturally indispensable
Epic
Self packaged C++ dealing.

The
Of course, C++ with UnrealEngine4 must be complied with
UE4 engineering
Rules such as the entire project configuration are basically done using the [NMaker] configuration. You need to compile the [UnrealHeaderTool] tool before compiling the code
UnrealHeaderTool to compile our own projects. Of course, the entire build process was compiled as for UnrealEngine3 using the command line (to address both platform expansion and IDE decoupling). The various \UnrealEngine\Engine\Build\ files \ folders under the BatchFiles start calling each other during the entire compilation of Windows… (Well, usually we don’t care.)

since the UnrealEngine4 has its own rules, the more problems we run into in the process of updating the UnrealEngine4. The following is a collection of problems I encountered to share with you, I hope you can quickly solve the problem, less detours.

1. compile when the following 2 errors occur, please do not question whether the UnrealEngine4 engine compilation tool has a problem or the automatically generated project configuration has a problem, there is only one problem is their own code has a problem. As follows:

 
The
EXEC: error: Failed to generate code for XXXX (XXXX is the name of our project)
The
The and

 
The
EXEC: error: UnrealHeaderTool failed for target ‘PandaEditor’ (platform: Win64, module info: C: \ Users \ User \ Documents \ UnrealProjects/Panda/Intermediate/Build \ Win64 \ PandaEditor \ Development
\UnrealHeaderTool.manifest).

 
The
this error resolution: check the.h file for cross-references to header files. If you do need to refer to each other, try [+class] before your class name and then refer to header files in.cpP.

 
The
The

 
The
of course this error is
[UnrealHeaderTool],
[UnrealHeaderTool] error detection is not strong enough to accurately prompt for compilation errors, and many problems can cause this. If you find [EXEC: error: Failed to generate code for XX], please check the code carefully

The solution of “failed to load il2cpp” in Android package launched by unity

recently upgraded Unity to 2019.3.8f1 with great difficulty, and Android outpackage students have also successfully outpackage online. Results according to operation feedback, some players could not start the game and reported an error of “Failed to load il2cpp“, as shown in figure

, which had never been encountered before.

later after considering this is the upgrade of problem, think either Unity version of the bug, caused by improper or upgrade .

at that time, the latest version of Unity had arrived at 2019.3.14f1. I looked through the release note after 3.8 and found that none of them mentioned this kind of bug. Baidu Google search mentioned about this problem also said in 2019.3.0A has been solved.

, after communicating with the classmate of Android package, I found that the version of NDK is not recommended by Unity. There is a note above, as shown in figure
, which means that the current version of Unity only supports NDK 19.0.5232133. With “Finally found the problem!!” Check the NDK version of his Unity, the result is 19.0.5232133. I could only have left resentfully, but the Android classmate claimed that the NDK version he used for Android Studio was still NDK R14. Yes, that’s it. That’s it.