Я Тринг, чтобы включить Libtrch в проект UE5, но я получаю много ошибок, когда пытаюсь создать проект. Я не нашел на него ни одного учебника, так что я здесь.
Вывод: < /p>
Sestavení zahájeno v 15:39...
1>------ Sestavování zahájeno: Projekt: NoxViridus, konfigurace: Development_Editor x64 ------
Obnovení projektu C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\Intermediate\Build\BuildRulesProjects\NoxViridusModuleRules\NoxViridusModuleRules.csproj (v 2 ms) bylo neúspěšné.
Nepovedlo se obnovit balíček NuGet. Podrobná upozornění a chyby najdete v okně Seznam chyb.
1>Using bundled DotNet SDK version: 8.0.300
1>Running UnrealBuildTool: dotnet "..\..\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll" NoxViridusEditor Win64 Development -Project="C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\NoxViridus.uproject" -WaitMutex -FromMsBuild -architecture=x64
1>Log file: C:\Users\name\AppData\Local\UnrealBuildTool\Log.txt
1>Invalidating makefile for NoxViridusEditor (NoxViridus.Build.cs modified)
1>Parsing headers for NoxViridusEditor
1> Running Internal UnrealHeaderTool "C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\NoxViridus.uproject" "C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\Intermediate\Build\Win64\NoxViridusEditor\Development\NoxViridusEditor.uhtmanifest" -WarningsAsErrors -installed
1>Total of 0 written
1>Reflection code generated for NoxViridusEditor in 2.1503078 seconds
1>Building NoxViridusEditor...
1>Using Visual Studio 2022 14.38.33143 toolchain (C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130) and Windows 10.0.22621.0 SDK (C:\Program Files (x86)\Windows Kits\10).
1>Determining max actions to execute in parallel (6 physical cores, 12 logical cores)
1> Executing up to 6 processes, one per physical core
1> Requested 1.5 GB memory per action, 4.71 GB available: limiting max parallel actions to 3
1>Using Unreal Build Accelerator local executor to run 15 action(s)
1> Storage capacity 40Gb
1>---- Starting trace: 250309_153956_vs19092 ----
1>UbaSessionServer - Disable remote execution (remote sessions will finish current processes)
1>------ Building 15 action(s) started ------
1>[1/15] Compile [x64] SharedPCH.UnrealEd.Project.RTTI.ValApi.Cpp20.cpp
1>[2/15] Compile [x64] DefaultItem.gen.cpp
1>[3/15] Compile [x64] DefaultItem.cpp
1>[4/15] Compile [x64] Inventory.cpp
1>[5/15] Compile [x64] ItemInterface.cpp
1>[6/15] Compile [x64] Inventory.gen.cpp
1>[7/15] Compile [x64] ItemInterface.gen.cpp
1>[8/15] Compile [x64] MultiplayerWidget.gen.cpp
1>[9/15] Compile [x64] MultiplayerWidget.cpp
1>[10/15] Compile [x64] NoxViridus.init.gen.cpp
1>[11/15] Compile [x64] PerModuleInline.gen.cpp
1>[12/15] Compile [x64] NoxViridus.cpp
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\macros\Macros.h(495): error C4668: __GNUC__ není definované jako preprocesorové makro; pro: #if/#elif se nahrazuje nulou (0).
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\util\Lazy.h(32): error C2988: nerozpoznatelná deklarace/definice šablony
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\util\Lazy.h(32): note: kontext vytváření instancí šablony (první nejstarší) je
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\util\Lazy.h(73): note: Zobrazit odkaz na kompilované vytváření instancí funkce třída šablona c10::OptimisticLazy
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\util\Lazy.h(32): error C2059: chyba syntaxe: !
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\util\Lazy.h(32): error C2334: Před: { jsou neočekávané tokeny; část, která vypadá jako tělo funkce, se přeskočí.
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\util\Lazy.h(32): error C2059: chyba syntaxe: )
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\util\Lazy.h(32): error C2334: Před: { jsou neočekávané tokeny; část, která vypadá jako tělo funkce, se přeskočí.
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\util\Lazy.h(50): error C2988: nerozpoznatelná deklarace/definice šablony
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\util\Lazy.h(50): error C2059: chyba syntaxe: *
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\util\Lazy.h(50): error C2334: Před: { jsou neočekávané tokeny; část, která vypadá jako tělo funkce, se přeskočí.
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\util\Lazy.h(51): error C2988: nerozpoznatelná deklarace/definice šablony
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\util\Lazy.h(51): error C2059: chyba syntaxe: return
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\util\Lazy.h(51): error C2238: neočekávané tokeny před: ;
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\util\Lazy.h(22): error C3861: value_: identifikátor se nenašel
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\util\Lazy.h(22): error C2065: value_: nedeklarovaný identifikátor
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\util\Lazy.h(26): error C3861: value_: identifikátor se nenašel
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\util\Lazy.h(28): error C3861: reset: identifikátor se nenašel
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\util\Lazy.h(28): note: reset: Deklarace funkce musí být k dispozici, protože žádný z argumentů nezávisí na parametru šablony.
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\util\Lazy.h(54): error C2146: Chyba syntaxe: Chybí ; před identifikátorem OptimisticLazy.
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\util\Lazy.h(94): error C2760: chyba syntaxe: ( není očekávaná hodnota, očekávaná hodnota je výraz id
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\util\Lazy.h(94): note: kontext vytváření instancí šablony (první nejstarší) je
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\util\Lazy.h(101): note: Zobrazit odkaz na kompilované vytváření instancí funkce třída šablona c10::OptimisticLazyValue
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\util\Lazy.h(94): error C3878: chyba syntaxe: neočekávaný token ( za expression
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\util\Lazy.h(94): note: Zotavení po chybě se přeskočilo: ( ! ! . . . this
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\util\Lazy.h(94): error C2760: chyba syntaxe: ] není očekávaná hodnota, očekávaná hodnota je ;
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\util\Lazy.h(94): error C3878: chyba syntaxe: neočekávaný token ] za jump_statement
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\util\Lazy.h(94): note: Zotavení po chybě se přeskočilo: ]
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\util\Lazy.h(94): error C3878: chyba syntaxe: neočekávaný token ) za compound_statement
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\util\Lazy.h(94): note: Zotavení po chybě se přeskočilo: ) ) )
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\util\Lazy.h(94): error C3878: chyba syntaxe: neočekávaný token || za statement
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\util\Lazy.h(94): note: Zotavení po chybě se přeskočilo: ||
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\util\Lazy.h(94): error C2760: chyba syntaxe: ) není očekávaná hodnota, očekávaná hodnota je ;
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\util\Lazy.h(94): error C3878: chyba syntaxe: neočekávaný token ) za expression_statement
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\util\Lazy.h(94): note: Zotavení po chybě se přeskočilo: )
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\core\DispatchKeySet.h(44): warning C4686: c10::initializeFunctionalityOffsetsAndMasks: Možná změna chování, změna v konvenci pojmenování návratu UDT
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\core\Scalar.h(148): error C4800: Implicitní převod z const int64_t na logickou hodnotu. Může dojít ke ztrátě informací.
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\core\Scalar.h(148): note: Zvažte použití explicitního přetypování nebo porovnání s 0, pokud chcete, aby se toto upozornění nezobrazovalo.
1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\INCLUDE\stdint.h(21): note: viz deklarace: int64_t
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\core\Scalar.h(149): error C4800: Implicitní převod z const int64_t na logickou hodnotu. Může dojít ke ztrátě informací.
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\core\Scalar.h(149): note: Zvažte použití explicitního přetypování nebo porovnání s 0, pokud chcete, aby se toto upozornění nezobrazovalo.
1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\INCLUDE\stdint.h(21): note: viz deklarace: int64_t
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\core\Scalar.h(150): error C4800: Implicitní převod z const int64_t na logickou hodnotu. Může dojít ke ztrátě informací.
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\core\Scalar.h(150): note: Zvažte použití explicitního přetypování nebo porovnání s 0, pokud chcete, aby se toto upozornění nezobrazovalo.
1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\INCLUDE\stdint.h(21): note: viz deklarace: int64_t
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\core\Scalar.h(151): error C4800: Implicitní převod z const int64_t na logickou hodnotu. Může dojít ke ztrátě informací.
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\core\Scalar.h(151): note: Zvažte použití explicitního přetypování nebo porovnání s 0, pokud chcete, aby se toto upozornění nezobrazovalo.
1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\INCLUDE\stdint.h(21): note: viz deklarace: int64_t
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\util\safe_numerics.h(30): error C4800: Implicitní převod z unsigned char na logickou hodnotu. Může dojít ke ztrátě informací.
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\util\safe_numerics.h(30): note: Zvažte použití explicitního přetypování nebo porovnání s 0, pokud chcete, aby se toto upozornění nezobrazovalo.
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\core\impl\DeviceGuardImplInterface.h(371): error C4800: Implicitní převod z const c10::impl::DeviceGuardImplInterface * na logickou hodnotu. Může dojít ke ztrátě informací.
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\core\impl\DeviceGuardImplInterface.h(371): note: Zvažte použití explicitního přetypování nebo porovnání s nullptr, pokud chcete, aby se toto upozornění nezobrazovalo.
1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\INCLUDE\atomic(1074): note: viz deklarace: std::_Atomic_storage::_TVal
1> with
1> [
1> _Ty=const c10::impl::DeviceGuardImplInterface *
1> ]
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\ATen\core\function_schema.h(382): error C4800: Implicitní převod z const c10::AliasInfo * na logickou hodnotu. Může dojít ke ztrátě informací.
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\ATen\core\function_schema.h(382): note: Zvažte použití explicitního přetypování nebo porovnání s nullptr, pokud chcete, aby se toto upozornění nezobrazovalo.
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\core\SafePyObject.h(112): error C4800: Implicitní převod z PyObject * na logickou hodnotu. Může dojít ke ztrátě informací.
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\core\SafePyObject.h(112): note: Zvažte použití explicitního přetypování nebo porovnání s nullptr, pokud chcete, aby se toto upozornění nezobrazovalo.
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\util\Load.h(22): error C4800: Implicitní převod z const unsigned char na logickou hodnotu. Může dojít ke ztrátě informací.
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\util\Load.h(22): note: Zvažte použití explicitního přetypování nebo porovnání s 0, pokud chcete, aby se toto upozornění nezobrazovalo.
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\torch\csrc\jit\runtime\argument_spec.h(342): error C4800: Implicitní převod z const unsigned int na logickou hodnotu. Může dojít ke ztrátě informací.
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\torch\csrc\jit\runtime\argument_spec.h(342): note: Zvažte použití explicitního přetypování nebo porovnání s 0, pokud chcete, aby se toto upozornění nezobrazovalo.
1>Trace file written to C:/Users/name/AppData/Local/UnrealBuildTool/Log.uba with size 22.8kb
1>Total time in Unreal Build Accelerator local executor: 120.18 seconds
1>Total execution time: 126.17 seconds
1>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.MakeFile.Targets(44,5): error MSB3073: Příkaz "C:\Program Files\Epic Games\UE_5.5\Engine\Build\BatchFiles\Build.bat" NoxViridusEditor Win64 Development -Project="C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\NoxViridus.uproject" -WaitMutex -FromMsBuild -architecture=x64 byl ukončen s kódem 6.
1>Sestavení projektu NoxViridus.vcxproj bylo dokončeno: CHYBA.
========== Build: úspěšné: 0, chybné: 1, aktuální: 0, vynechané: 0 ==========
========== Sestavení dokončeno v 15:41 a trvalo 02:06.911 minut ==========
< /code>
Я пытался включить Libtorch, используя эти строки в noxviridus.build.cs: < /p>
bUseRTTI = true;
bEnableExceptions = true;
PublicIncludePaths.Add("C:/Users/name/OneDrive/Dokumenty/Unreal Projects/NoxViridus/eLibs/libtorch/include");
PublicIncludePaths.Add("C:/Users/name/OneDrive/Dokumenty/Unreal Projects/NoxViridus/eLibs/libtorch/include/torch/csrc/api/include");
PublicAdditionalLibraries.Add("C:/Users/name/OneDrive/Dokumenty/Unreal Projects/NoxViridus/eLibs/libtorch/lib/torch.lib");
< /code>
Есть ли кто -нибудь, кто знает, что мне нужно сделать, чтобы он работает правильно?
заранее. < /p>
Подробнее здесь: https://stackoverflow.com/questions/794 ... -eengine-5
Как включить Libtorch в Unreal Eengine 5 ⇐ C++
Программы на C++. Форум разработчиков
1741532616
Anonymous
Я Тринг, чтобы включить Libtrch в проект UE5, но я получаю много ошибок, когда пытаюсь создать проект. Я не нашел на него ни одного учебника, так что я здесь.
Вывод: < /p>
Sestavení zahájeno v 15:39...
1>------ Sestavování zahájeno: Projekt: NoxViridus, konfigurace: Development_Editor x64 ------
Obnovení projektu C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\Intermediate\Build\BuildRulesProjects\NoxViridusModuleRules\NoxViridusModuleRules.csproj (v 2 ms) bylo neúspěšné.
Nepovedlo se obnovit balíček NuGet. Podrobná upozornění a chyby najdete v okně Seznam chyb.
1>Using bundled DotNet SDK version: 8.0.300
1>Running UnrealBuildTool: dotnet "..\..\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll" NoxViridusEditor Win64 Development -Project="C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\NoxViridus.uproject" -WaitMutex -FromMsBuild -architecture=x64
1>Log file: C:\Users\name\AppData\Local\UnrealBuildTool\Log.txt
1>Invalidating makefile for NoxViridusEditor (NoxViridus.Build.cs modified)
1>Parsing headers for NoxViridusEditor
1> Running Internal UnrealHeaderTool "C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\NoxViridus.uproject" "C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\Intermediate\Build\Win64\NoxViridusEditor\Development\NoxViridusEditor.uhtmanifest" -WarningsAsErrors -installed
1>Total of 0 written
1>Reflection code generated for NoxViridusEditor in 2.1503078 seconds
1>Building NoxViridusEditor...
1>Using Visual Studio 2022 14.38.33143 toolchain (C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130) and Windows 10.0.22621.0 SDK (C:\Program Files (x86)\Windows Kits\10).
1>Determining max actions to execute in parallel (6 physical cores, 12 logical cores)
1> Executing up to 6 processes, one per physical core
1> Requested 1.5 GB memory per action, 4.71 GB available: limiting max parallel actions to 3
1>Using Unreal Build Accelerator local executor to run 15 action(s)
1> Storage capacity 40Gb
1>---- Starting trace: 250309_153956_vs19092 ----
1>UbaSessionServer - Disable remote execution (remote sessions will finish current processes)
1>------ Building 15 action(s) started ------
1>[1/15] Compile [x64] SharedPCH.UnrealEd.Project.RTTI.ValApi.Cpp20.cpp
1>[2/15] Compile [x64] DefaultItem.gen.cpp
1>[3/15] Compile [x64] DefaultItem.cpp
1>[4/15] Compile [x64] Inventory.cpp
1>[5/15] Compile [x64] ItemInterface.cpp
1>[6/15] Compile [x64] Inventory.gen.cpp
1>[7/15] Compile [x64] ItemInterface.gen.cpp
1>[8/15] Compile [x64] MultiplayerWidget.gen.cpp
1>[9/15] Compile [x64] MultiplayerWidget.cpp
1>[10/15] Compile [x64] NoxViridus.init.gen.cpp
1>[11/15] Compile [x64] PerModuleInline.gen.cpp
1>[12/15] Compile [x64] NoxViridus.cpp
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\macros\Macros.h(495): error C4668: __GNUC__ není definované jako preprocesorové makro; pro: #if/#elif se nahrazuje nulou (0).
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\util\Lazy.h(32): error C2988: nerozpoznatelná deklarace/definice šablony
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\util\Lazy.h(32): note: kontext vytváření instancí šablony (první nejstarší) je
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\util\Lazy.h(73): note: Zobrazit odkaz na kompilované vytváření instancí funkce třída šablona c10::OptimisticLazy
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\util\Lazy.h(32): error C2059: chyba syntaxe: !
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\util\Lazy.h(32): error C2334: Před: { jsou neočekávané tokeny; část, která vypadá jako tělo funkce, se přeskočí.
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\util\Lazy.h(32): error C2059: chyba syntaxe: )
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\util\Lazy.h(32): error C2334: Před: { jsou neočekávané tokeny; část, která vypadá jako tělo funkce, se přeskočí.
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\util\Lazy.h(50): error C2988: nerozpoznatelná deklarace/definice šablony
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\util\Lazy.h(50): error C2059: chyba syntaxe: *
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\util\Lazy.h(50): error C2334: Před: { jsou neočekávané tokeny; část, která vypadá jako tělo funkce, se přeskočí.
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\util\Lazy.h(51): error C2988: nerozpoznatelná deklarace/definice šablony
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\util\Lazy.h(51): error C2059: chyba syntaxe: return
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\util\Lazy.h(51): error C2238: neočekávané tokeny před: ;
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\util\Lazy.h(22): error C3861: value_: identifikátor se nenašel
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\util\Lazy.h(22): error C2065: value_: nedeklarovaný identifikátor
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\util\Lazy.h(26): error C3861: value_: identifikátor se nenašel
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\util\Lazy.h(28): error C3861: reset: identifikátor se nenašel
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\util\Lazy.h(28): note: reset: Deklarace funkce musí být k dispozici, protože žádný z argumentů nezávisí na parametru šablony.
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\util\Lazy.h(54): error C2146: Chyba syntaxe: Chybí ; před identifikátorem OptimisticLazy.
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\util\Lazy.h(94): error C2760: chyba syntaxe: ( není očekávaná hodnota, očekávaná hodnota je výraz id
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\util\Lazy.h(94): note: kontext vytváření instancí šablony (první nejstarší) je
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\util\Lazy.h(101): note: Zobrazit odkaz na kompilované vytváření instancí funkce třída šablona c10::OptimisticLazyValue
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\util\Lazy.h(94): error C3878: chyba syntaxe: neočekávaný token ( za expression
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\util\Lazy.h(94): note: Zotavení po chybě se přeskočilo: ( ! ! . . . this
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\util\Lazy.h(94): error C2760: chyba syntaxe: ] není očekávaná hodnota, očekávaná hodnota je ;
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\util\Lazy.h(94): error C3878: chyba syntaxe: neočekávaný token ] za jump_statement
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\util\Lazy.h(94): note: Zotavení po chybě se přeskočilo: ]
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\util\Lazy.h(94): error C3878: chyba syntaxe: neočekávaný token ) za compound_statement
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\util\Lazy.h(94): note: Zotavení po chybě se přeskočilo: ) ) )
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\util\Lazy.h(94): error C3878: chyba syntaxe: neočekávaný token || za statement
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\util\Lazy.h(94): note: Zotavení po chybě se přeskočilo: ||
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\util\Lazy.h(94): error C2760: chyba syntaxe: ) není očekávaná hodnota, očekávaná hodnota je ;
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\util\Lazy.h(94): error C3878: chyba syntaxe: neočekávaný token ) za expression_statement
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\util\Lazy.h(94): note: Zotavení po chybě se přeskočilo: )
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\core\DispatchKeySet.h(44): warning C4686: c10::initializeFunctionalityOffsetsAndMasks: Možná změna chování, změna v konvenci pojmenování návratu UDT
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\core\Scalar.h(148): error C4800: Implicitní převod z const int64_t na logickou hodnotu. Může dojít ke ztrátě informací.
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\core\Scalar.h(148): note: Zvažte použití explicitního přetypování nebo porovnání s 0, pokud chcete, aby se toto upozornění nezobrazovalo.
1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\INCLUDE\stdint.h(21): note: viz deklarace: int64_t
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\core\Scalar.h(149): error C4800: Implicitní převod z const int64_t na logickou hodnotu. Může dojít ke ztrátě informací.
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\core\Scalar.h(149): note: Zvažte použití explicitního přetypování nebo porovnání s 0, pokud chcete, aby se toto upozornění nezobrazovalo.
1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\INCLUDE\stdint.h(21): note: viz deklarace: int64_t
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\core\Scalar.h(150): error C4800: Implicitní převod z const int64_t na logickou hodnotu. Může dojít ke ztrátě informací.
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\core\Scalar.h(150): note: Zvažte použití explicitního přetypování nebo porovnání s 0, pokud chcete, aby se toto upozornění nezobrazovalo.
1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\INCLUDE\stdint.h(21): note: viz deklarace: int64_t
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\core\Scalar.h(151): error C4800: Implicitní převod z const int64_t na logickou hodnotu. Může dojít ke ztrátě informací.
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\core\Scalar.h(151): note: Zvažte použití explicitního přetypování nebo porovnání s 0, pokud chcete, aby se toto upozornění nezobrazovalo.
1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\INCLUDE\stdint.h(21): note: viz deklarace: int64_t
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\util\safe_numerics.h(30): error C4800: Implicitní převod z unsigned char na logickou hodnotu. Může dojít ke ztrátě informací.
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\util\safe_numerics.h(30): note: Zvažte použití explicitního přetypování nebo porovnání s 0, pokud chcete, aby se toto upozornění nezobrazovalo.
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\core\impl\DeviceGuardImplInterface.h(371): error C4800: Implicitní převod z const c10::impl::DeviceGuardImplInterface * na logickou hodnotu. Může dojít ke ztrátě informací.
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\core\impl\DeviceGuardImplInterface.h(371): note: Zvažte použití explicitního přetypování nebo porovnání s nullptr, pokud chcete, aby se toto upozornění nezobrazovalo.
1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\INCLUDE\atomic(1074): note: viz deklarace: std::_Atomic_storage::_TVal
1> with
1> [
1> _Ty=const c10::impl::DeviceGuardImplInterface *
1> ]
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\ATen\core\function_schema.h(382): error C4800: Implicitní převod z const c10::AliasInfo * na logickou hodnotu. Může dojít ke ztrátě informací.
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\ATen\core\function_schema.h(382): note: Zvažte použití explicitního přetypování nebo porovnání s nullptr, pokud chcete, aby se toto upozornění nezobrazovalo.
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\core\SafePyObject.h(112): error C4800: Implicitní převod z PyObject * na logickou hodnotu. Může dojít ke ztrátě informací.
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\core\SafePyObject.h(112): note: Zvažte použití explicitního přetypování nebo porovnání s nullptr, pokud chcete, aby se toto upozornění nezobrazovalo.
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\util\Load.h(22): error C4800: Implicitní převod z const unsigned char na logickou hodnotu. Může dojít ke ztrátě informací.
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\c10\util\Load.h(22): note: Zvažte použití explicitního přetypování nebo porovnání s 0, pokud chcete, aby se toto upozornění nezobrazovalo.
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\torch\csrc\jit\runtime\argument_spec.h(342): error C4800: Implicitní převod z const unsigned int na logickou hodnotu. Může dojít ke ztrátě informací.
1>C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\eLibs\libtorch\include\torch\csrc\jit\runtime\argument_spec.h(342): note: Zvažte použití explicitního přetypování nebo porovnání s 0, pokud chcete, aby se toto upozornění nezobrazovalo.
1>Trace file written to C:/Users/name/AppData/Local/UnrealBuildTool/Log.uba with size 22.8kb
1>Total time in Unreal Build Accelerator local executor: 120.18 seconds
1>Total execution time: 126.17 seconds
1>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.MakeFile.Targets(44,5): error MSB3073: Příkaz "C:\Program Files\Epic Games\UE_5.5\Engine\Build\BatchFiles\Build.bat" NoxViridusEditor Win64 Development -Project="C:\Users\name\OneDrive\Dokumenty\Unreal Projects\NoxViridus\NoxViridus.uproject" -WaitMutex -FromMsBuild -architecture=x64 byl ukončen s kódem 6.
1>Sestavení projektu NoxViridus.vcxproj bylo dokončeno: CHYBA.
========== Build: úspěšné: 0, chybné: 1, aktuální: 0, vynechané: 0 ==========
========== Sestavení dokončeno v 15:41 a trvalo 02:06.911 minut ==========
< /code>
Я пытался включить Libtorch, используя эти строки в noxviridus.build.cs: < /p>
bUseRTTI = true;
bEnableExceptions = true;
PublicIncludePaths.Add("C:/Users/name/OneDrive/Dokumenty/Unreal Projects/NoxViridus/eLibs/libtorch/include");
PublicIncludePaths.Add("C:/Users/name/OneDrive/Dokumenty/Unreal Projects/NoxViridus/eLibs/libtorch/include/torch/csrc/api/include");
PublicAdditionalLibraries.Add("C:/Users/name/OneDrive/Dokumenty/Unreal Projects/NoxViridus/eLibs/libtorch/lib/torch.lib");
< /code>
Есть ли кто -нибудь, кто знает, что мне нужно сделать, чтобы он работает правильно?
заранее. < /p>
Подробнее здесь: [url]https://stackoverflow.com/questions/79496110/how-to-include-libtorch-to-unreal-eengine-5[/url]
Ответить
1 сообщение
• Страница 1 из 1
Перейти
- Кемерово-IT
- ↳ Javascript
- ↳ C#
- ↳ JAVA
- ↳ Elasticsearch aggregation
- ↳ Python
- ↳ Php
- ↳ Android
- ↳ Html
- ↳ Jquery
- ↳ C++
- ↳ IOS
- ↳ CSS
- ↳ Excel
- ↳ Linux
- ↳ Apache
- ↳ MySql
- Детский мир
- Для души
- ↳ Музыкальные инструменты даром
- ↳ Печатная продукция даром
- Внешняя красота и здоровье
- ↳ Одежда и обувь для взрослых даром
- ↳ Товары для здоровья
- ↳ Физкультура и спорт
- Техника - даром!
- ↳ Автомобилистам
- ↳ Компьютерная техника
- ↳ Плиты: газовые и электрические
- ↳ Холодильники
- ↳ Стиральные машины
- ↳ Телевизоры
- ↳ Телефоны, смартфоны, плашеты
- ↳ Швейные машинки
- ↳ Прочая электроника и техника
- ↳ Фототехника
- Ремонт и интерьер
- ↳ Стройматериалы, инструмент
- ↳ Мебель и предметы интерьера даром
- ↳ Cантехника
- Другие темы
- ↳ Разное даром
- ↳ Давай меняться!
- ↳ Отдам\возьму за копеечку
- ↳ Работа и подработка в Кемерове
- ↳ Давай с тобой поговорим...
Мобильная версия