해결된 질문
작성
·
230
·
수정됨
0
제가 만든 UnrealMemory 이름의 프로젝트에 있는 여러 소스파일들을 UnrealMemory2 라는 이름의 새로운 언리얼엔진 프로젝트를 만들어 해당 소스폴더에 붙여넣은 후, UNREALMEMORY2_API로 전부 바꾸고 UnrealMemory2 프로젝트를 개별 빌드하면 아래와 같이 오류없이 빌드가 성공하나,
(12>Unhandled exception: System.IO.IOException: The process cannot access the file 'F:\LeeProject\UnrealMemory2\Intermediate\Build\Win64\x64\UnrealGame\DebugGame\UnrealMemory2\MyGameInstance.cpp.obj.rsp' because it is being used by another process.
12> at UnrealBuildTool.UnrealBuildTool.Main(String[] ArgumentsArray) in C:\Program Files\Epic Games\UE_5.4\Engine\Source\Programs\UnrealBuildTool\UnrealBuildTool.cs:line 664
========== 모두 다시 빌드: 12 성공, 0 실패, 0 건너뛰기 ==========)
, 그 후 ctrl+shift+space 를 누르면 다음과 에러가 뜹니다.
심각도 코드 설명 프로젝트 파일 줄 비표시 오류(Suppression) 상태 세부 정보
오류 MSB3073 ""C:\Program Files\Epic Games\UE_5.4\Engine\Build\BatchFiles\Build.bat" UnrealMemory2 Win64 DebugGame -Project="F:\LeeProject\UnrealMemory2\UnrealMemory2.uproject" -WaitMutex -FromMsBuild -architecture=x64" 명령이 종료되었습니다(코드: 9). UnrealMemory2 C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.MakeFile.Targets 44
그리고 에디터가 실행되는지 테스트해보기 위해 f5 를 누르면, 콘솔창이 뜨고 다음과 같은 내용이 출력됩니다.
Global options:
-Help : Display this help.
-Verbose : Increase output verbosity
-VeryVerbose : Increase output verbosity more
-Log : Specify a log file location instead of the default Engine/Programs/UnrealBuildTool/Log.txt
-TraceWrites : Trace writes requested to the specified file
-Timestamps : Include timestamps in the log
-FromMsBuild : Format messages for msbuild
-SuppressSDKWarnings : Missing SDKs error verbosity level will be reduced from warning to log
-Progress : Write progress messages in a format that can be parsed by other programs
-NoMutex : Allow more than one instance of the program to run at once
-WaitMutex : Wait for another instance to finish and then start, rather than aborting immediately
-RemoteIni : Remote tool ini directory
-Mode= : Select tool mode. One of the following (default tool mode is "Build"):
AggregateClangTimingInfo, AggregateParsedTimingInfo, Analyze, ApplePostBuildSync, Build,
ClRepro, Clean, Deploy, Execute, FixIncludePaths, GenerateClangDatabase, GenerateProjectFiles,
IOSPostBuildSync, IWYU, InlineGeneratedCpps, JsonExport, PVSGather, ParseMsvcTimingInfo,
PipInstall, PrintBuildGraphInfo, ProfileUnitySizes, Query, QueryTargets, Server, SetupPlatforms,
Test, UnrealHeaderTool, ValidatePlatforms, WriteDocumentation, WriteMetadata
-Clean : Clean build products. Equivalent to -Mode=Clean
-ProjectFiles : Generate project files based on IDE preference. Equivalent to -Mode=GenerateProjectFiles
-ProjectFileFormat= : Generate project files in specified format. May be used multiple times.
-Makefile : Generate Linux Makefile
-CMakefile : Generate project files for CMake
-QMakefile : Generate project files for QMake
-KDevelopfile : Generate project files for KDevelop
-CodeliteFiles : Generate project files for Codelite
-XCodeProjectFiles : Generate project files for XCode
-EddieProjectFiles : Generate project files for Eddie
-VSCode : Generate project files for Visual Studio Code
-VSMac : Generate project files for Visual Studio Mac
-CLion : Generate project files for CLion
-Rider : Generate project files for Rider
C:\Program Files\Epic Games\UE_5.4\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.exe(프로세스 17220)이(가) 1 코드(0x1)와 함께 종료되었습니다.
디버깅이 중지될 때 콘솔을 자동으로 닫으려면 [도구] -> [옵션] -> [디버깅] > [디버깅이 중지되면 자동으로 콘솔 닫기]를 사 용하도록 설정합니다.
이 창을 닫으려면 아무 키나 누르세요...
binaries 와 save, derivedcaches, intermediate 폴더를 삭제하고 시도하였으며, .uproject로 generate Vs project files 를 실행해도 동일하게 콘솔창이 뜨게 됩니다.
정상적으로 에디터를 실행하기 위해선 어떤 방법이 필요한지 알고싶습니다.
답변 1
0
아래 오류로 보건데 이전에 작업한 빌드 프로세스가 죽지 않고 해당 파일을 계속 점유하고 있어서 문제가 발생하는게 아닌가 싶네요. 리부팅을 한 번 해보시겠어요?
(12>Unhandled exception: System.IO.IOException: The process cannot access the file 'F:\LeeProject\UnrealMemory2\Intermediate\Build\Win64\x64\UnrealGame\DebugGame\UnrealMemory2\MyGameInstance.cpp.obj.rsp' because it is being used by another process.
컴퓨터 리부팅을 하고 다시 f5를 눌러보았지만 여전히 에디터가 실행되지 않고, 콘솔창과 동일한 내용이 출력이 됩니다.
그리고 아래에는 막 마친 솔루션빌드를 진행 후 출력된 결과입니다.
(잘 몰라서 빌드내용을 전부 긁어왔습니다만, 당장 해결하지 않아도 진도를 나가는데 있어서 지장이 없기 때문에 해결하지 못한채로 넘어가도 아무 문제 없습니다.)
오후 5:02에 빌드를 시작함...
1>------ 건너뛴 빌드: 프로젝트: UE5, 구성: BuiltWithUnrealBuildTool Win64 ------
1>이 솔루션 구성에 대해 빌드하도록 선택된 프로젝트가 없습니다.
2>------ 빌드 시작: 프로젝트: UnrealMemory2, 구성: DebugGame x64 ------
2>Using bundled DotNet SDK version: 6.0.302
2>Running UnrealBuildTool: dotnet "..\..\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll" UnrealMemory2 Win64 DebugGame -Project="F:\LeeProject\UnrealMemory2\UnrealMemory2.uproject" -WaitMutex -FromMsBuild -architecture=x64
2>Log file: C:\Users\qkrwo\AppData\Local\UnrealBuildTool\Log.txt
2>Unable to merge actions 'MyGameInstance.cpp' and 'MyGameInstance.cpp': PrerequisiteItems are different
2> First Action: {
2>
2> "ActionType": "Compile",
2>
2> "ArtifactMode": 0,
2>
2> "PrerequisiteItems": [
2>
2> "F:\\LeeProject\\UnrealMemory2\\Intermediate\\Build\\Win64\\x64\\UnrealGame\\DebugGame\\UnrealMemory2\\MyGameInstance.cpp.obj.rsp",
2>
2> "F:\\LeeProject\\UnrealMemory2\\Source\\UnrealMemory2\\MyGameInstance.cpp",
2>
2> "F:\\LeeProject\\UnrealMemory2\\Intermediate\\Build\\Win64\\x64\\UnrealMemory2\\DebugGame\\Engine\\SharedPCH.Engine.Project.NonOptimized.ValApi.Cpp20.h.pch",
2>
2> "F:\\LeeProject\\UnrealMemory2\\Intermediate\\Build\\Win64\\x64\\UnrealGame\\DebugGame\\UnrealMemory2\\Definitions.UnrealMemory2.h",
2>
2> "F:\\LeeProject\\UnrealMemory2\\Intermediate\\Build\\Win64\\x64\\UnrealGame\\DebugGame\\UnrealMemory2\\UnrealMemory2.Shared.rsp"
2>
2> ],
2>
2> "ProducedItems": [
2>
2> "F:\\LeeProject\\UnrealMemory2\\Intermediate\\Build\\Win64\\x64\\UnrealGame\\DebugGame\\UnrealMemory2\\MyGameInstance.cpp.obj",
2>
2> "F:\\LeeProject\\UnrealMemory2\\Intermediate\\Build\\Win64\\x64\\UnrealGame\\DebugGame\\UnrealMemory2\\MyGameInstance.cpp.dep.json"
2>
2> ],
2>
2> "DeleteItems": [],
2>
2> "DependencyListFile": "F:\\LeeProject\\UnrealMemory2\\Intermediate\\Build\\Win64\\x64\\UnrealGame\\DebugGame\\UnrealMemory2\\MyGameInstance.cpp.dep.json",
2>
2> "WorkingDirectory": "C:\\Program Files\\Epic Games\\UE_5.4\\Engine\\Source",
2>
2> "CommandPath": "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.38.33130\\bin\\Hostx64\\x64\\cl.exe",
2>
2> "CommandArguments": "@\u0022F:\\LeeProject\\UnrealMemory2\\Intermediate\\Build\\Win64\\x64\\UnrealGame\\DebugGame\\UnrealMemory2\\MyGameInstance.cpp.obj.rsp\u0022",
2>
2> "CommandVersion": "14.38.33141",
2>
2> "CommandDescription": "Compile [x64]",
2>
2> "StatusDescription": "MyGameInstance.cpp",
2>
2> "bCanExecuteRemotely": true,
2>
2> "bCanExecuteRemotelyWithSNDBS": true,
2>
2> "bCanExecuteRemotelyWithXGE": true,
2>
2> "bCanExecuteInUBA": true,
2>
2> "bIsGCCCompiler": false,
2>
2> "bShouldOutputStatusDescription": false,
2>
2> "bProducesImportLibrary": false,
2>
2> "bUseActionHistory": true,
2>
2> "bIsHighPriority": false,
2>
2> "Weight": 1
2>
2>}
2> Second Action: {
2>
2> "ActionType": "Compile",
2>
2> "ArtifactMode": 0,
2>
2> "PrerequisiteItems": [
2>
2> "F:\\LeeProject\\UnrealMemory2\\Intermediate\\Build\\Win64\\x64\\UnrealGame\\DebugGame\\UnrealMemory2\\MyGameInstance.cpp.obj.rsp",
2>
2> "F:\\LeeProject\\UnrealMemory2\\Source\\UnrealMemory2\\Game\\MyGameInstance.cpp",
2>
2> "F:\\LeeProject\\UnrealMemory2\\Intermediate\\Build\\Win64\\x64\\UnrealMemory2\\DebugGame\\Engine\\SharedPCH.Engine.Project.NonOptimized.ValApi.Cpp20.h.pch",
2>
2> "F:\\LeeProject\\UnrealMemory2\\Intermediate\\Build\\Win64\\x64\\UnrealGame\\DebugGame\\UnrealMemory2\\Definitions.UnrealMemory2.h",
2>
2> "F:\\LeeProject\\UnrealMemory2\\Intermediate\\Build\\Win64\\x64\\UnrealGame\\DebugGame\\UnrealMemory2\\UnrealMemory2.Shared.rsp"
2>
2> ],
2>
2> "ProducedItems": [
2>
2> "F:\\LeeProject\\UnrealMemory2\\Intermediate\\Build\\Win64\\x64\\UnrealGame\\DebugGame\\UnrealMemory2\\MyGameInstance.cpp.obj",
2>
2> "F:\\LeeProject\\UnrealMemory2\\Intermediate\\Build\\Win64\\x64\\UnrealGame\\DebugGame\\UnrealMemory2\\MyGameInstance.cpp.dep.json"
2>
2> ],
2>
2> "DeleteItems": [],
2>
2> "DependencyListFile": "F:\\LeeProject\\UnrealMemory2\\Intermediate\\Build\\Win64\\x64\\UnrealGame\\DebugGame\\UnrealMemory2\\MyGameInstance.cpp.dep.json",
2>
2> "WorkingDirectory": "C:\\Program Files\\Epic Games\\UE_5.4\\Engine\\Source",
2>
2> "CommandPath": "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.38.33130\\bin\\Hostx64\\x64\\cl.exe",
2>
2> "CommandArguments": "@\u0022F:\\LeeProject\\UnrealMemory2\\Intermediate\\Build\\Win64\\x64\\UnrealGame\\DebugGame\\UnrealMemory2\\MyGameInstance.cpp.obj.rsp\u0022",
2>
2> "CommandVersion": "14.38.33141",
2>
2> "CommandDescription": "Compile [x64]",
2>
2> "StatusDescription": "MyGameInstance.cpp",
2>
2> "bCanExecuteRemotely": true,
2>
2> "bCanExecuteRemotelyWithSNDBS": true,
2>
2> "bCanExecuteRemotelyWithXGE": true,
2>
2> "bCanExecuteInUBA": true,
2>
2> "bIsGCCCompiler": false,
2>
2> "bShouldOutputStatusDescription": false,
2>
2> "bProducesImportLibrary": false,
2>
2> "bUseActionHistory": true,
2>
2> "bIsHighPriority": false,
2>
2> "Weight": 1
2>
2>}
2> First Action json written to 'C:\Users\qkrwo\AppData\Local\Temp\UnrealBuildTool\6e23c306\UnrealBuildTool\D787541E.json'
2> Second Action json written to 'C:\Users\qkrwo\AppData\Local\Temp\UnrealBuildTool\6e23c306\UnrealBuildTool\27128052.json'
2>Total execution time: 0.53 seconds
2>Action graph is invalid; unable to continue. See log for additional details.
2>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.MakeFile.Targets(44,5): error MSB3073: ""C:\Program Files\Epic Games\UE_5.4\Engine\Build\BatchFiles\Build.bat" UnrealMemory2 Win64 DebugGame -Project="F:\LeeProject\UnrealMemory2\UnrealMemory2.uproject" -WaitMutex -FromMsBuild -architecture=x64" 명령이 종료되었습니다(코드: 9).
2>"UnrealMemory2.vcxproj" 프로젝트를 빌드했습니다. - 실패
========== 빌드: 0개 성공, 1개 실패, 49개 최신 상태, 1개 건너뜀 ==========
========== 빌드이(가) 오후 5:02에 완료되었으며, 01.110 초이(가) 걸림 ==========
UnrealMemory2 프로젝트 단독으로 빌드 수행시에는 여전히 동일하게 빌드에 성공합니다.
8>"EpicGames.Horde.csproj" 프로젝트를 빌드했습니다.
11>------ 모두 다시 빌드 시작: 프로젝트: UnrealBuildTool, 구성: Development Any CPU ------
11>UnrealBuildTool -> C:\Program Files\Epic Games\UE_5.4\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll
12>------ 모두 다시 빌드 시작: 프로젝트: UnrealMemory2, 구성: DebugGame x64 ------
12>Using bundled DotNet SDK version: 6.0.302
12>Running UnrealBuildTool: dotnet "..\..\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll" UnrealMemory2 Win64 DebugGame -Project="F:\LeeProject\UnrealMemory2\UnrealMemory2.uproject" -WaitMutex -FromMsBuild -architecture=x64 -Rebuild
12>Log file: C:\Users\qkrwo\AppData\Local\UnrealBuildTool\Log.txt
12>Cleaning UnrealMemory2 binaries...
12>Creating makefile for UnrealMemory2 (no existing makefile)
12>Parsing headers for UnrealMemory2
12> Running Internal UnrealHeaderTool F:\LeeProject\UnrealMemory2\UnrealMemory2.uproject F:\LeeProject\UnrealMemory2\Intermediate\Build\Win64\UnrealMemory2\DebugGame\UnrealMemory2.uhtmanifest -WarningsAsErrors -installed
12>Total of 0 written
12>Reflection code generated for UnrealMemory2 in 0.9450269 seconds
12>Re-writing a file that was previously written and then removed: "F:\LeeProject\UnrealMemory2\Intermediate\Build\Win64\x64\UnrealGame\DebugGame\UnrealMemory2\MyGameInstance.cpp.obj.rsp"
12>Unable to merge actions 'MyGameInstance.cpp' and 'MyGameInstance.cpp': PrerequisiteItems are different
12> First Action: {
12>
12> "ActionType": "Compile",
12>
12> "ArtifactMode": 0,
12>
12> "PrerequisiteItems": [
12>
12> "F:\\LeeProject\\UnrealMemory2\\Intermediate\\Build\\Win64\\x64\\UnrealGame\\DebugGame\\UnrealMemory2\\MyGameInstance.cpp.obj.rsp",
12>
12> "F:\\LeeProject\\UnrealMemory2\\Source\\UnrealMemory2\\MyGameInstance.cpp",
12>
12> "F:\\LeeProject\\UnrealMemory2\\Intermediate\\Build\\Win64\\x64\\UnrealMemory2\\DebugGame\\Engine\\SharedPCH.Engine.Project.NonOptimized.ValApi.Cpp20.h.pch",
12>
12> "F:\\LeeProject\\UnrealMemory2\\Intermediate\\Build\\Win64\\x64\\UnrealGame\\DebugGame\\UnrealMemory2\\Definitions.UnrealMemory2.h",
12>
12> "F:\\LeeProject\\UnrealMemory2\\Intermediate\\Build\\Win64\\x64\\UnrealGame\\DebugGame\\UnrealMemory2\\UnrealMemory2.Shared.rsp"
12>
12> ],
12>
12> "ProducedItems": [
12>
12> "F:\\LeeProject\\UnrealMemory2\\Intermediate\\Build\\Win64\\x64\\UnrealGame\\DebugGame\\UnrealMemory2\\MyGameInstance.cpp.obj",
12>
12> "F:\\LeeProject\\UnrealMemory2\\Intermediate\\Build\\Win64\\x64\\UnrealGame\\DebugGame\\UnrealMemory2\\MyGameInstance.cpp.dep.json"
12>
12> ],
12>
12> "DeleteItems": [],
12>
12> "DependencyListFile": "F:\\LeeProject\\UnrealMemory2\\Intermediate\\Build\\Win64\\x64\\UnrealGame\\DebugGame\\UnrealMemory2\\MyGameInstance.cpp.dep.json",
12>
12> "WorkingDirectory": "C:\\Program Files\\Epic Games\\UE_5.4\\Engine\\Source",
12>
12> "CommandPath": "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.38.33130\\bin\\Hostx64\\x64\\cl.exe",
12>
12> "CommandArguments": "@\u0022F:\\LeeProject\\UnrealMemory2\\Intermediate\\Build\\Win64\\x64\\UnrealGame\\DebugGame\\UnrealMemory2\\MyGameInstance.cpp.obj.rsp\u0022",
12>
12> "CommandVersion": "14.38.33141",
12>
12> "CommandDescription": "Compile [x64]",
12>
12> "StatusDescription": "MyGameInstance.cpp",
12>
12> "bCanExecuteRemotely": true,
12>
12> "bCanExecuteRemotelyWithSNDBS": true,
12>
12> "bCanExecuteRemotelyWithXGE": true,
12>
12> "bCanExecuteInUBA": true,
12>
12> "bIsGCCCompiler": false,
12>
12> "bShouldOutputStatusDescription": false,
12>
12> "bProducesImportLibrary": false,
12>
12> "bUseActionHistory": true,
12>
12> "bIsHighPriority": false,
12>
12> "Weight": 1
12>
12>}
12> Second Action: {
12>
12> "ActionType": "Compile",
12>
12> "ArtifactMode": 0,
12>
12> "PrerequisiteItems": [
12>
12> "F:\\LeeProject\\UnrealMemory2\\Intermediate\\Build\\Win64\\x64\\UnrealGame\\DebugGame\\UnrealMemory2\\MyGameInstance.cpp.obj.rsp",
12>
12> "F:\\LeeProject\\UnrealMemory2\\Source\\UnrealMemory2\\Game\\MyGameInstance.cpp",
12>
12> "F:\\LeeProject\\UnrealMemory2\\Intermediate\\Build\\Win64\\x64\\UnrealMemory2\\DebugGame\\Engine\\SharedPCH.Engine.Project.NonOptimized.ValApi.Cpp20.h.pch",
12>
12> "F:\\LeeProject\\UnrealMemory2\\Intermediate\\Build\\Win64\\x64\\UnrealGame\\DebugGame\\UnrealMemory2\\Definitions.UnrealMemory2.h",
12>
12> "F:\\LeeProject\\UnrealMemory2\\Intermediate\\Build\\Win64\\x64\\UnrealGame\\DebugGame\\UnrealMemory2\\UnrealMemory2.Shared.rsp"
12>
12> ],
12>
12> "ProducedItems": [
12>
12> "F:\\LeeProject\\UnrealMemory2\\Intermediate\\Build\\Win64\\x64\\UnrealGame\\DebugGame\\UnrealMemory2\\MyGameInstance.cpp.obj",
12>
12> "F:\\LeeProject\\UnrealMemory2\\Intermediate\\Build\\Win64\\x64\\UnrealGame\\DebugGame\\UnrealMemory2\\MyGameInstance.cpp.dep.json"
12>
12> ],
12>
12> "DeleteItems": [],
12>
12> "DependencyListFile": "F:\\LeeProject\\UnrealMemory2\\Intermediate\\Build\\Win64\\x64\\UnrealGame\\DebugGame\\UnrealMemory2\\MyGameInstance.cpp.dep.json",
12>
12> "WorkingDirectory": "C:\\Program Files\\Epic Games\\UE_5.4\\Engine\\Source",
12>
12> "CommandPath": "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.38.33130\\bin\\Hostx64\\x64\\cl.exe",
12>
12> "CommandArguments": "@\u0022F:\\LeeProject\\UnrealMemory2\\Intermediate\\Build\\Win64\\x64\\UnrealGame\\DebugGame\\UnrealMemory2\\MyGameInstance.cpp.obj.rsp\u0022",
12>
12> "CommandVersion": "14.38.33141",
12>
12> "CommandDescription": "Compile [x64]",
12>
12> "StatusDescription": "MyGameInstance.cpp",
12>
12> "bCanExecuteRemotely": true,
12>
12> "bCanExecuteRemotelyWithSNDBS": true,
12>
12> "bCanExecuteRemotelyWithXGE": true,
12>
12> "bCanExecuteInUBA": true,
12>
12> "bIsGCCCompiler": false,
12>
12> "bShouldOutputStatusDescription": false,
12>
12> "bProducesImportLibrary": false,
12>
12> "bUseActionHistory": true,
12>
12> "bIsHighPriority": false,
12>
12> "Weight": 1
12>
12>}
12> First Action json written to 'C:\Users\qkrwo\AppData\Local\Temp\UnrealBuildTool\6e23c306\UnrealBuildTool\D787541E.json'
12> Second Action json written to 'C:\Users\qkrwo\AppData\Local\Temp\UnrealBuildTool\6e23c306\UnrealBuildTool\27128052.json'
12>Total execution time: 4.57 seconds
12>Action graph is invalid; unable to continue. See log for additional details.
========== 모두 다시 빌드: 12 성공, 0 실패, 0 건너뛰기 ==========
========== 다시 빌드이(가) 오후 5:03에 완료되었으며, 11.570 초이(가) 걸림 ==========
현재 중요한 부분은 아니므로 당장 해결할 필요 없으므로 미해결된 채로 넘어가도 제가 현재 공부하는