Announcement

Collapse
No announcement yet.

[SOLVED] fatal error C1853 on Plugin Packaging only

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [SOLVED] fatal error C1853 on Plugin Packaging only

    Hi,
    after a VS2017C update I made yesterday, I get the following error when packaging my plugin (multiple times for each pch):

    D:\UE4\MyProjects\EOC\RTSPluginV194\RTS\HostProject\Plugins\RTS\Intermediate\Build\Win64\UE4Editor\Development\RTS\Module.RTS.gen.2_of_4.cpp: fatal error C1853: 'D:\Programs\Epic Games\UE_4.21\Engine\Intermediate\Build\Win64\UE4Editor\Development\Engine\SharedPCH.Engine.h.pch' precompiled header file is from a previous version of the compiler, or the precompiled header is C++ and you are using it from C (or vice versa)

    I have tried to clean everything, deleting all project and plugin .vs, Binary, Intermediate, Saved folders, regenerating solution, then rebuilding, but no help...

    Beside the VS update, I have also created a Git source control previously, but in theory it cannot disturb anything...

    Of course just in the worst possible moment, I should add it to a new project within days...

    Any idea? Thanks
    Last edited by sivan; 01-03-2019, 08:34 AM.
    Edge of Chaos RTS
    "Age of Total Heroes" - RTS Pathfinding and Movement System for UE4
    RTS Camera C++ Tutorial

    #2
    bump

    we're having the same issue over here. Updated visual studio today and it compiled fine. But when we go to package the plugin we get the same error. We tried the same stuff you did and nada.

    using UE 4.21.1, and visual studio 2017 v15.9.4

    Any solutions yet? Honestly haven't even been able to narrow down whether it's an unreal issue or a visual studio issue. It's been rough lol

    Comment


      #3
      Unreal 4.21+ requires definition of a proper pch in Build.cs of every module/plugin now.
      | Savior | USQLite | FSM | Object Pool | Sound Occlusion | Property Transfer | Magic Nodes | MORE |

      Comment


        #4
        BrUnO XaVIeR it worked fine previously with UE4.21.1 1 week ago. Only VS was updated, now reinstalling, maybe something went wrong with update and a fresh install could help, no other ideas, really....
        Edge of Chaos RTS
        "Age of Total Heroes" - RTS Pathfinding and Movement System for UE4
        RTS Camera C++ Tutorial

        Comment


          #5
          You can disable it:

          Code:
          using System.IO;
          using UnrealBuildTool;
          
          public class UWorks : ModuleRules
          {
              public UWorks(ReadOnlyTargetRules Target) : base(Target)
              {
                  PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs;
                  bFasterWithoutUnity = true;
                  MinFilesUsingPrecompiledHeaderOverride = 1;
          
                  PrivateDependencyModuleNames.AddRange
                  (
                      new string[]
                      {
                          "Core",
                          "CoreUObject",
                          "Engine",
                          "Projects",
                      }
                  );
              }
          }

          Comment


            #6
            a new version of windows10 SDK was also installed imo it could be a reason, I will see soon............
            Edge of Chaos RTS
            "Age of Total Heroes" - RTS Pathfinding and Movement System for UE4
            RTS Camera C++ Tutorial

            Comment


              #7
              PROFIT!

              Problem solved, imo no full reinstall needed, just modify VS installation, and keep only the latest Win10 SDK (uncheck old version, apparently UE4 uses it for pch creation somehow, but the latest for everything else, but I'm not a pro, just guessing)
              Edge of Chaos RTS
              "Age of Total Heroes" - RTS Pathfinding and Movement System for UE4
              RTS Camera C++ Tutorial

              Comment


                #8
                Originally posted by sivan View Post
                PROFIT!

                Problem solved, imo no full reinstall needed, just modify VS installation, and keep only the latest Win10 SDK (uncheck old version, apparently UE4 uses it for pch creation somehow, but the latest for everything else, but I'm not a pro, just guessing)
                Was having the same issue, tried unchecked old version didn't work, only a full reinstall VS fixed for me.

                Comment


                  #9
                  hehe, the same fun with last VS update! only full reinstall helps, really.... :/
                  Edge of Chaos RTS
                  "Age of Total Heroes" - RTS Pathfinding and Movement System for UE4
                  RTS Camera C++ Tutorial

                  Comment


                    #10
                    Thx for mentioning Today I made the VS Update to 2017.15.9.11 and I couldnĀ“t packaging any Plugin I wanted to update. Only a full Re-Install of VS2017 did the trick.

                    Comment


                      #11
                      Sooooo I had visual studio 2019 installed which also installed Windows SDK 10.0.18362.0, I had to uninstall it and then it all worked as Unreal defaulted to the right SDK.
                      DownToCode Website

                      VR Debug Plugin - Debug your VR game/application inside VR

                      Email Plugin - Send emails from one email address to another.

                      FREE VR Content Examples - A bunch of VR examples to get you started and for free.

                      Comment


                        #12
                        I try uninstall VS2019 and Unreal
                        Install again and not work too...
                        what i doo?

                        Comment


                          #13
                          select the proper Win SDK when installing VS, in each UE4 release notes its compatibility is mentioned somewhere...
                          Edge of Chaos RTS
                          "Age of Total Heroes" - RTS Pathfinding and Movement System for UE4
                          RTS Camera C++ Tutorial

                          Comment


                            #14
                            In your BuildConfiguration.xml you can specifiy which compiler version to use. After the C++ 16.3 mess, I did.

                            (Pre 4.24 I used 14.22.27905)

                            Code:
                            <?xml version="1.0" encoding="utf-8" ?>
                            <Configuration xmlns="https://www.unrealengine.com/BuildConfiguration">
                                <WindowsPlatform>
                                    <CompilerVersion>14.22.27906</CompilerVersion>
                                    <Compiler>VisualStudio2019</Compiler>
                                </WindowsPlatform>
                                <VCProjectFileGenerator>
                                    <Version>VisualStudio2019</Version>
                                </VCProjectFileGenerator>
                            </Configuration>

                            Comment


                              #15
                              Deleting Build, Intermediate, Saved and Visual Studio .sln file then rebuilding worked for me.
                              HunterGaming
                              Facebook
                              Twitter

                              Comment

                              Working...
                              X