hello i had downloaded a 4.18.3 from giuthub and followed all actions as described on epic documentation for building the engine.
i have opened from source a new c++ project, and it run fine.
- I wanted to make a change on GoogleVR plugin , so i copypasted the folder to project/plugins/ , and tried to open the project.vs file
- i made a change to the GoogleVRHMD.cpp , saved and tried to Build the C++ project again.
that’s what i get as a failure : Please help!
1>------ Build started: Project: ShaderCompileWorker, Configuration: Development_Program x64 ------
1>Creating makefile for ShaderCompileWorker (no existing makefile)
1>Target is up to date
1>Copying C:\UnrealEngine-4.18.3-release\UnrealEngine-4.18.3-release\Engine\Binaries\Win64\ShaderCompileWorker.exe to C:\UnrealEngine-4.18.3-release\UnrealEngine-4.18.3-release\Engine\Binaries\Win64\XGEControlWorker.exe
1> 1 file(s) copied.
1>Deploying ShaderCompileWorker Win64 Development…
1>Total build time: 2.18 seconds (NoActionsToExecute executor: 0.00 seconds)
2>------ Build started: Project: gvr_cpp, Configuration: Development_Editor x64 ------
2>Performing full C++ include scan (building a new target)
2>Creating makefile for gvr_cppEditor (no existing makefile)
2>EXEC : error : All source files in module “GoogleVRHMD” must include the same precompiled header first. Currently “C:\Users\GradGR\Documents\Unreal Projects\gvr_cpp\Plugins\GoogleVR\GoogleVRHMD\Source\GoogleVRHMD\Private\GoogleVRHMD.h” is included by most of the source files. The following source files are not including “C:\Users\GradGR\Documents\Unreal Projects\gvr_cpp\Plugins\GoogleVR\GoogleVRHMD\Source\GoogleVRHMD\Private\GoogleVRHMD.h” as their first include:
2>
2> C:\Users\GradGR\Documents\Unreal Projects\gvr_cpp\Plugins\GoogleVR\GoogleVRHMD\Source\GoogleVRHMD\Private\GoogleVRHMDFunctionLibrary.cpp (including C:\Users\GradGR\Documents\Unreal Projects\gvr_cpp\Plugins\GoogleVR\GoogleVRHMD\Source\GoogleVRHMD\Classes\GoogleVRHMDFunctionLibrary.h)
2> C:\Users\GradGR\Documents\Unreal Projects\gvr_cpp\Plugins\GoogleVR\GoogleVRHMD\Source\GoogleVRHMD\Private\GoogleVRHMDRender.cpp (including C:\UnrealEngine-4.18.3-release\UnrealEngine-4.18.3-release\Engine\Source\Runtime\Core\Public\CoreMinimal.h)
2> C:\Users\GradGR\Documents\Unreal Projects\gvr_cpp\Plugins\GoogleVR\GoogleVRHMD\Source\GoogleVRHMD\Private\GoogleVRHMDViewerPreviews.cpp (including C:\Users\GradGR\Documents\Unreal Projects\gvr_cpp\Plugins\GoogleVR\GoogleVRHMD\Source\GoogleVRHMD\Private\GoogleVRHMDViewerPreviews.h)
2> C:\Users\GradGR\Documents\Unreal Projects\gvr_cpp\Plugins\GoogleVR\GoogleVRHMD\Source\GoogleVRHMD\Private\GoogleVRSplash.cpp (including C:\Users\GradGR\Documents\Unreal Projects\gvr_cpp\Plugins\GoogleVR\GoogleVRHMD\Source\GoogleVRHMD\Private\GoogleVRSplash.h)
2>
2>
2> To compile this module without implicit precompiled headers, add “PCHUsage = ModuleRules.PCHUsageMode.UseExplicitOrSharedPCHs;” to GoogleVRHMD.build.cs.
2>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.MakeFile.Targets(44,5): error MSB3075: The command “C:\UnrealEngine-4.18.3-release\UnrealEngine-4.18.3-release\Engine\Build\BatchFiles\Build.bat gvr_cppEditor Win64 Development “C:\Users\GradGR\Documents\Unreal Projects\gvr_cpp\gvr_cpp.uproject” -waitmutex” exited with code 5. Please verify that you have sufficient rights to run this command.
2>Done building project “gvr_cpp.vcxproj” – FAILED.
========== Build: 1 succeeded, 1 failed, 2 up-to-date, 0 skipped ==========