Errors when building C++

Hey guys,

So I’ve been out of UE4 for a while now and trying to pick it up again.
To refresh my knowledge I tried to create my own blueprint showing the project version of the game. I had this working in a previous project. So I went on re-creating it but I’m having issues on the C++ side.

To clarify, it’s a new empty project, version 4.11 of the engine.

The errors I’m getting are these:

  • code OtherCompilationError
    (5) Serellyn_Library_1 G:\Game
    Development\Tutorials\Serellyn_Library_1\Intermediate\ProjectFiles\Error 1
  • MSB3073 The command
    ““E:\Installed Programs\Epic
    Games\4.11\Engine\Build\BatchFiles\Build.bat”
    Serellyn_Library_1Editor Win64
    Development “G:\Game
    Development\Tutorials\Serellyn_Library_1\Serellyn_Library_1.uproject”
    -waitmutex -2015” exited with code -1. Serellyn_Library_1 C:\Program Files
    (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets 37

First of all, these error messages mean nothing to me. I can’t figure out what is going wrong. After some searching someone suggested to delete the ‘Intermediate’ folder and then rebuild. So I did but it stays the same.

So here’s the code I’ve got.
Header file

// Fill out your copyright notice in the Description page of Project Settings.

#pragma once

#include "Kismet/BlueprintFunctionLibrary.h"
#include "LaunchExternalProgram.generated.h"

/**
 * 
 */
UCLASS()
class SERELLYN_LIBRARY_1_API ULaunchExternalProgram : public UBlueprintFunctionLibrary
{
	GENERATED_BODY()

		UFUNCTION(BlueprintPure, meta = (FriendlyName = "Launch External Program", CompactNodeTitle = "ExtProgram"), Category = "Core Functions")
		static FString LaunchExternalProgram();
	
};

CPP file

#include "Serellyn_Library_1.h"
#include "LaunchExternalProgram.h"

FString ULaunchExternalProgram::LaunchExternalProgram() {
	//FPlatformProcess::CreateProc(TEXT("F:\test.txt"), nullptr, true, false, false, nullptr, 0, nullptr, nullptr);

	FString ProjectVersion;
	GConfig->GetString(
		TEXT("/Script/EngineSettings.GeneralProjectSettings"),
		TEXT("ProjectVersion"),
		ProjectVersion,
		GGameIni
	);
	return ProjectVersion;
}

Anyone knows what is going on? I’d appreciate some help.
Thank you in advance.

Serellyn

Hello Serellyn,

Whenever you get the error message “OtherCompilationError” that means that there isn’t an error message available to explain what the actual error is. Whenever this happens, you can take a look at the Output Log (ctrl+alt+O to bring it up) and the raw error message should be there. Could you try compiling again and then post the output log here in a .txt file?

Thank you for responding . I’ve got the Output log right here: http:///Vp6xkRag

Didn’t inform me a lot more, but I hope you are a genius and see what the issue is here :slight_smile:

Thank you for providing that information. It seems like the main culprit here is this line:

G:/Game Development/Tutorials/Serellyn_Library_1/Source/Serellyn_Library_1/LaunchExternalProgram.h(17) : LogCompile:Error: Remapping old metadata key ‘FriendlyName’ to new key ‘DisplayName’, please update the declaration.

Looking into that brought me to this post: Hot Reload compile errors - C++ - Epic Developer Community Forums

The fix that suggested for the user who posted that problem should work for you, although it may be a different dependency that you need to include. I wouldn’t be able to tell what you need without seeing the rest of your code, but you may be more privy to that anyway since it’s your project :).

Thank you , this was indeed the problem. Solved now.