Giter Club home page Giter Club logo

Comments (7)

landelare avatar landelare commented on May 18, 2024

What compiler and what version?

from ue5coro.

xermao avatar xermao commented on May 18, 2024

vs2022+ue5.1

from ue5coro.

ameaninglessname avatar ameaninglessname commented on May 18, 2024

vs2022+ue5.1

That may not be enough, see:
#13 (comment)

from ue5coro.

xermao avatar xermao commented on May 18, 2024

CONSOLE: Use build tool: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\amd64\MSBuild.exe

0:36:33 Building F:\UnrealProjects\Ue5CoroTest\Intermediate\ProjectFiles\Ue5CoroTest.vcxproj
0>F:\AsLocalBuilds511_0401\Engine\Windows\Engine\Build\BatchFiles\Build.bat Ue5CoroTestEditor Win64 Development -Project="F:\UnrealProjects\Ue5CoroTest\Ue5CoroTest.uproject" -WaitMutex -FromMsBuild
0>Running UnrealBuildTool: dotnet "....\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll" Ue5CoroTestEditor Win64 Development -Project="F:\UnrealProjects\Ue5CoroTest\Ue5CoroTest.uproject" -WaitMutex -FromMsBuild
0>Log file: C:\Users\xermao\AppData\Local\UnrealBuildTool\Log.txt
0>Building Ue5CoroTestEditor...
0>Using Visual Studio 2022 14.33.31631 toolchain (C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.33.31629) and Windows 10.0.22621.0 SDK (C:\Program Files (x86)\Windows Kits\10).
0>[Upgrade]
0>[Upgrade] Using backward-compatible include order. The latest version of UE has changed the order of includes, which may require code changes. The current setting is:
0>[Upgrade] IncludeOrderVersion = EngineIncludeOrderVersion.Unreal5_0
0>[Upgrade] Suppress this message by setting 'IncludeOrderVersion = EngineIncludeOrderVersion.Unreal5_1;' in Ue5CoroTestEditor.Target.cs.
0>[Upgrade] Alternatively you can set this to 'EngineIncludeOrderVersion.Latest' to always use the latest include order. This will potentially cause compile errors when integrating new versions of the engine.
0>[Upgrade]
0>Determining max actions to execute in parallel (16 physical cores, 32 logical cores)
0> Executing up to 16 processes, one per physical core
0>Building 4 actions with 4 processes...
0>[1/4] Link UnrealEditor-UE5CoroTests.lib cancelled
0>[2/4] Link UnrealEditor-UE5CoroTests.dll cancelled
0>[3/4] WriteMetadata Ue5CoroTestEditor.target cancelled
0>[4/4] Compile ReturnValueTest.cpp
0>F:\UnrealProjects\Ue5CoroTest\Plugins\UE5Coro\Source\UE5CoroTests\Private\ReturnValueTest.cpp(121): Error C2065 : 'bInnerComplete': undeclared identifier
0>F:\UnrealProjects\Ue5CoroTest\Plugins\UE5Coro\Source\UE5CoroTests\Private\ReturnValueTest.cpp(158): Reference C2065 : see reference to function template instantiation 'void `anonymous-namespace'::DoTest<>(FAutomationTestBase &)' being compiled
0>C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.MakeFile.Targets(44,5): Error MSB3073 : 命令“F:\AsLocalBuilds511_0401\Engine\Windows\Engine\Build\BatchFiles\Build.bat Ue5CoroTestEditor Win64 Development -Project="F:\UnrealProjects\Ue5CoroTest\Ue5CoroTest.uproject" -WaitMutex -FromMsBuild”已退出,代码为 6。
Build failed at 上午12:36:47

does this helpful?

from ue5coro.

landelare avatar landelare commented on May 18, 2024

You're using an old version of VS2022, please try updating. If you cannot, you can comment out that part of the code, it's only a test.

bInnerComplete itself is defined on line 116, and gets to line 121 via two [&] lambda captures in the CORO_R macro on lines 117 and 119; this is a bug in the compiler.
The latest version of VS2022 and Clang both compile this code without a warning.

I pushed a compiler workaround attempt to the test branch, does that help?

from ue5coro.

xermao avatar xermao commented on May 18, 2024

OK,I delete old toolchain in C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC,and it can be compiled.
Is there any way to choose verion of toolchain instead of delete them?

from ue5coro.

landelare avatar landelare commented on May 18, 2024

Not that I know of. You can switch between 2019 and 2022 using BuildConfiguration.xml and there's a blacklist somewhere inside of UBT (MicrosoftPlatformSDK.cs, BannedVisualCppVersions) where you can add your bad toolchain's version if you're running a source build. This won't help you much if you're using the build from the Epic launcher.

I would recommend only using the latest toolchain not just to get the plugin compiled, but also to avoid similar compiler bugs in your code.

from ue5coro.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.