Меню

No compiler was found in order to use a c template you must ошибка ue4

Skip to content

При установке Unreal Engine появляется ошибка, связанная с Visual Studio 2019 (4.25 or Later VS 2019 Default, 4.22 or Later VS 2017/VS 2019):

No compiler was found. In order to use a C++ template, you must first install Visual Studio 2019.

No compiler was found In order to use a C++ template, you must first install Visual Studio 2019

А также при попытке установке Visual Studio 2019 появляется ошибка:

Прекращена работа программы visual studio installer

Сигнатура проблемы:
Имя события проблемы: APPCRASH
Имя приложения: vs_setup_bootstrapper.exe
Версия приложения: 2.9.3365.38425
Имя модуля с ошибкой: KERNELBASE.dll
Версия модуля с ошибкой: 6.1.7601.24499 и т.д.

прекращена работа программы visual studio installer

Сигнатура проблемы

Сначала пробуем полностью обновить операционную систему Windows Панель управления -> Центр обновления Windows.

Если в результате произошла ошибка при обновлении следующего характера:

Произошла ошибка при поиске новых обновлений код 80072efe

Произошла ошибка при поиске новых обновлений код 80072efe

То необходимо скачать агент Windows, ссылка на скачивания указана в комментариях.

Если не помогло, то полностью,

Удаляем старые версии Visual Studio, например, 

C:ProgramDataMicrosoft Visual Studio

C:Program Files (x86)Microsoft Visual Studio 8

C:Program Files (x86)Microsoft Visual Studio 9.0

Если ошибка не устранилась,пробуем остановить службу winmgmt через cmd от имени администратора

net stop winmgmt

winmgmt /resetRepository

Диспетчер задач Windows winmgmt

winmgmt cmd

В конечном результате должна появится установка — Visual Studio Installer 2019  

Установка Visual Studio Installer 2019

856


Hi all,

Sorry if this isn’t allowed, but I am really running out of options now and it’s been nearly 3 weeks with no help.

I’ve been trying to get UE4 and Visual studio 2017/2019 to work together, but it’s just not working.

The problem:

I am trying to create a C++ Project but get the error:

“No compiler was found. In order to use a C++ template, you must first install Visual Studio 2017”.

r/unrealengine - [HELP] UE4 and VS2017: No compiler found

I’ve uninstalled and reinstalled multiple versions of UE4 and Visual Studio with no luck.

Please see my ticket on the AnswerHub for more information:

https://answers.unrealengine.com/questions/925249/view.html

I’ve tried absolutely everything I’ve found online and tried to contact epic support (as I can’t find an unreal support email), but they said they can’t help with that type of problem.

r/unrealengine - [HELP] UE4 and VS2017: No compiler found

r/unrealengine - [HELP] UE4 and VS2017: No compiler found

Debugging:

Looking at the UE4.23 source code: it’s looking for Visual Studio in various places, as suggested by other posts online. I have registry keys to cover all of those locations, but UE cannot find it still.

r/unrealengine - [HELP] UE4 and VS2017: No compiler found

Please someone help me!

Thanks!

Edit: Added Debugging stuff

A C++ project for Unreal engine can be created manually, since it’s defined exclusively in text files arranged in a specific directory structure in the file system.

Firstly, you need the project file itself. It is a json file with .uproject extension (let’s call it MyProject for example). The contents required are a EngineAssociation field for the engine version (which can be both be intalled from Epic Games Launcher or built from source), and at least one module in the Modules array. Here is an example:

{
    "FileVersion": 3,
    "EngineAssociation": "4.27",
    "Category": "",
    "Description": "",
    "Modules": [
        {
            "Name": "MyProjectModule",
            "Type": "Runtime",
            "LoadingPhase": "Default",
            "AdditionalDependencies": [
                "CoreUObject",
                "UMG",
                "Engine"
            ]
        }
    ]
}

Next, we need to create target files. Create a Source folder in the same directory as the uproject. In that folder, two files are needed: one for the standalone project and one for the in-Editor project. They are named (ProjectName).target.cs and (ProjectName)Editor.target.cs (note: no space or underscore before Editor, i.e. MyProject.target.cs and MyProjectEditor.target.cs).

These files are used to set up overall build settings. Contents can be nearly identical. In their simplest form, here is .target.cs:

using UnrealBuildTool;
using System.Collections.Generic;

public class MyProjectTarget : TargetRules
{
    public MyProjectTarget( TargetInfo Target) : base(Target)
    {
        Type = TargetType.Game;
        DefaultBuildSettings = BuildSettingsVersion.V2;
    }
}

and Editor.target.cs:

using UnrealBuildTool;
using System.Collections.Generic;

public class MyProjectEditorTarget : TargetRules
{
    public MyProjectEditorTarget( TargetInfo Target) : base(Target)
    {
        Type = TargetType.Editor;
        DefaultBuildSettings = BuildSettingsVersion.V2;
    }
}

Finally, you need to define the MyProjectModule module that was declared in the uproject. Make and a subfolder named after the module in the Source folder (for this example, Source/MyProjectModule). There, three files are needed: a build.cs which defines how to build this module, a ModuleName.h and ModuleName.cpp files that «implement» the module for Unreal’s reflection system.

Simplest Build.cs:

using UnrealBuildTool;


public class MyProjectModule : ModuleRules
{
    public MyProjectModule(ReadOnlyTargetRules Target) : base(Target)
    {
        PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs;
            
        PublicDependencyModuleNames.AddRange(new string[] { 
            "Core", 
            "CoreUObject", 
            "Engine"
        });
    }
}

Simplest module .h:

#pragma once

#include "CoreMinimal.h"

Simplest module .cpp:

// Copyright Epic Games, Inc. All Rights Reserved.

#include "MyProjectModule.h"
#include "Modules/ModuleManager.h"

IMPLEMENT_PRIMARY_GAME_MODULE( FDefaultGameModuleImpl, MyProjectModule, "MyProjectModule" );

This should be a sufficient base project to follow the rest of the official guide for using VS Code / other IDE. That doesn’t answer the part of your question about using g++ for compilation, and will require either MSVC on Windows or Clang on Linux and Mac. I hope that’s not a big issue.

Recommend Projects

  • React photo

    React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo

    Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo

    Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo

    TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo

    Django

    The Web framework for perfectionists with deadlines.

  • Laravel photo

    Laravel

    A PHP framework for web artisans

  • D3 photo

    D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Visualization

    Some thing interesting about visualization, use data art

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo

    Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo

    Microsoft

    Open source projects and samples from Microsoft.

  • Google photo

    Google

    Google ❤️ Open Source for everyone.

  • Alibaba photo

    Alibaba

    Alibaba Open Source for everyone

  • D3 photo

    D3

    Data-Driven Documents codes.

  • Tencent photo

    Tencent

    China tencent open source team.

0 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии

А вот еще интересные материалы:

  • Яшка сломя голову остановился исправьте ошибки
  • Ясность цели позволяет целеустремленно добиваться намеченного исправьте ошибки
  • Ясность цели позволяет целеустремленно добиваться намеченного где ошибка
  • No changes were made to your device gapps ошибка 70
  • No certificate in private key container ошибка