Collection of abnormal problems such as UE4 packaging failure and compilation failure

UE4 Packaging Issue Log

The code cannot be compiled successfully

  • Compilation error, utf-8 problem
    is abnormal. Details: I forgot to record. I think there are garbled characters in the lod information, but it passed by in a flash, and finally reported M2076 or something.
    Solution: It seems that because there are file resources with Chinese names, git config --global core.quotepath false

Packaging failed

  • There is no problem with Rider compilation, but an error is reported after recompilation

Exception details: Rider recompiled and reported an error, saying that the file dll could not be opened, but occasionally the compilation was successful; using UE4 to package would report a more detailed error, and found in the log file that the compilation stopped at the Cpp I wrote, and the error was reported as "ProcessResult.StdOut : d:/ue4.23/egine/xxx/PhysXIncludes.h : fatal error C1083”

Solution: The cause of the problem is that the cpp file imports an abnormal header file (when writing code, if a class with a similar name is called by mistake, rider will automatically import the header file of this class, even if the called code is deleted, the header file will not be automatically deleted, resulting in Failed to compile), just delete it.

other

  • The resource path has been moved, and many resources (materials, textures, etc.) cannot be found.
    Experience: When importing resources, it is best to determine its location at the beginning, and do not modify it easily later. Later, it was fine to change it to packaging development, and it would be no problem to change it back to shipping.

Guess you like

Origin blog.csdn.net/killfunst/article/details/111308112