Announcement

Collapse
No announcement yet.

[SOLVED] fatal error C1853 on Plugin Packaging only

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

  • replied
    The cause of this problem is probably that you update your visual studio.

    the solution is very simple, dont have to reinstall your vs and engine, all you have to do is go to you engine install folder and find

    \UE_4.21\Engine\Intermediate\Build\Win64\UE4Editor\Development\Engine\SharedPCH.Engine.h.pch

    Delete it.

    Then delete Build, Intermediate,save folder in your project (inclue intermediate in your plugin).

    right click .uproject, rebuild Visual Studio .sln.

    then your project will be allright to package

    Leave a comment:


  • replied
    I solved it too with repair the visual studio from visual studio installer.

    Leave a comment:


  • replied
    Originally posted by jman2015 View Post
    Deleting Build, Intermediate, Saved and Visual Studio .sln file then rebuilding worked for me.
    Thank you, this fixed the same error for me ! I didn't delete Saved, because in my case, that gave me an error when right-clicking .uproject, Generate Visual Studio Project Files.
    After that, in visual studio 2017, I right-clicked the game project, Set as Startup Project, Ctrl+F5, Packaged from the editor and it worked !

    Leave a comment:


  • replied
    Originally posted by jman2015 View Post
    Deleting Build, Intermediate, Saved and Visual Studio .sln file then rebuilding worked for me.
    That solved for me!
    Thanks jman2015!

    Leave a comment:


  • replied
    I can confirm the solution to only have the latest Windows 10 SDK checked in the Visual Studio Installer worked for me.

    I feel better information to the developer is needed. The information provided by the error is misleading: "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)". In this particular case, Visual Studio is updated, and for some reason, Unreal can compile projects the same, but cannot continue to package plugins, even a simple templated plugin with no changes to the original auto-created code.
    Last edited by erol_demirci; 01-27-2020, 07:38 PM.

    Leave a comment:


  • replied
    Deleting Build, Intermediate, Saved and Visual Studio .sln file then rebuilding worked for me.

    Leave a comment:


  • replied
    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>

    Leave a comment:


  • replied
    select the proper Win SDK when installing VS, in each UE4 release notes its compatibility is mentioned somewhere...

    Leave a comment:


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

    Leave a comment:


  • replied
    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.

    Leave a comment:


  • replied
    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.

    Leave a comment:


  • replied
    hehe, the same fun with last VS update! only full reinstall helps, really.... :/

    Leave a comment:


  • replied
    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.

    Leave a comment:


  • replied
    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)

    Leave a comment:


  • replied
    a new version of windows10 SDK was also installed imo it could be a reason, I will see soon............

    Leave a comment:

Working...
X