Visual Studio Build not working

Hello,

Could I ask how to setup correctly Visual Studio to build directly from the IDE?
I’ve tried the “Build with Visual Studio” section of this doc page: https://docs.unrealengine.com/en-US/Programming/Development/CompilingProjects/index.html
, but it just won’t work. This is the terminal log:

1>------ Rebuild All started: Project: UnrealFPS, Configuration: Development_Editor x64 ------
1>Cleaning UnrealFPSEditor and UnrealHeaderTool binaries...
1>UnrealBuildTool : error : Unable to delete C:\Users\loren\UdemyUnrealC++Workspace\UnrealFPS\Binaries\Win64\UE4Editor-UnrealFPS.dll (Unable to delete 'C:\Users\loren\UdemyUnrealC++Workspace\UnrealFPS\Binaries\Win64\UE4Editor-UnrealFPS.dll': Accesso al percorso 'C:\Users\loren\UdemyUnrealC++Workspace\UnrealFPS\Binaries\Win64\UE4Editor-UnrealFPS.dll' negato.)
1>Using 'git status' to determine working set for adaptive non-unity build (C:\Users\loren\UdemyUnrealC++Workspace\UnrealFPS).
1>Creating makefile for UnrealFPSEditor (no existing makefile)
1>Parsing headers for UnrealFPSEditor
1>  Running UnrealHeaderTool "C:\Users\loren\UdemyUnrealC++Workspace\UnrealFPS\UnrealFPS.uproject" "C:\Users\loren\UdemyUnrealC++Workspace\UnrealFPS\Intermediate\Build\Win64\UnrealFPSEditor\Development\UnrealFPSEditor.uhtmanifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -Unattended -WarningsAsErrors -abslog="C:\Users\loren\AppData\Local\UnrealBuildTool\Log_UHT.txt" -installed
1>Reflection code generated for UnrealFPSEditor in 5,0630793 seconds
1>Building UnrealFPSEditor...
1>Using Visual Studio 2019 14.26.28805 toolchain (C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801) and Windows 10.0.18362.0 SDK (C:\Program Files (x86)\Windows Kits\10).
1>Building 13 actions with 6 processes...
1>  [1/13] Default.rc2
1>  [2/13] SharedPCH.Engine.ShadowErrors.cpp
1>  [3/13] UnrealFPS.cpp
1>  [4/13] UnrealFPSGameModeBase.cpp
1>  [5/13] UnrealFPS.init.gen.cpp
1>  [6/13] MyPawn.gen.cpp
1>  [7/13] ShooterCharacter.cpp
1>  [8/13] ShooterCharacter.gen.cpp
1>  [9/13] UnrealFPSGameModeBase.gen.cpp
1>  [10/13] MyPawn.cpp
1>  [11/13] UE4Editor-UnrealFPS-0001.dll
1>LINK : fatal error LNK1104: cannot open file 'C:\Users\loren\UdemyUnrealC++Workspace\UnrealFPS\Binaries\Win64\UE4Editor-UnrealFPS-0001.dll'
1>  [12/13] UE4Editor-UnrealFPS-0001.lib
1>     Creating library C:\Users\loren\UdemyUnrealC++Workspace\UnrealFPS\Intermediate\Build\Win64\UE4Editor\Development\UnrealFPS\UE4Editor-UnrealFPS-0001.lib and object C:\Users\loren\UdemyUnrealC++Workspace\UnrealFPS\Intermediate\Build\Win64\UE4Editor\Development\UnrealFPS\UE4Editor-UnrealFPS-0001.exp
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.MakeFile.Targets(54,5): error MSB3073: The command "chcp 65001 >NUL && "C:\Program Files\Epic Games\UE_4.25\Engine\Build\BatchFiles\Rebuild.bat" UnrealFPSEditor Win64 Development -Project="C:\Users\loren\UdemyUnrealC++Workspace\UnrealFPS\UnrealFPS.uproject" -WaitMutex -FromMsBuild" exited with code -1.
1>Done building project "UnrealFPS.vcxproj" -- FAILED.
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

Thank you in advance.

That seems like you were doing Rebuild which requires you to close the project as rebuilding will involve deleting the compiled .dll. a normal build should work with it open.

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms