Меню

Unreal engine ошибка при создании проекта c

Аватара пользователя

Пользователь

Сообщения: 7

Здравствуйте!
Столкнулся с проблемой: при создании нового проекта под C++ код не компилируется, UE требует инструменты VS 14.0
Вот полный текст ошибки:
The project could not be compiled. Would you like to open it in Visual Studio?
Running C:/Program Files/Epic Games/UE_4.16/Engine/Binaries/DotNET/UnrealBuildTool.exe MyProject3 Development Win64 -project=»C:/Users/techn/Documents/Unreal Projects/MyProject3/MyProject3.uproject» -editorrecompile -progress -NoHotReloadFromIDE
Performing full C++ include scan (building a new target)
Creating makefile for MyProject3 (no existing makefile)
progress push 5%
Parsing headers for MyProject3Editor
Running UnrealHeaderTool «C:UserstechnDocumentsUnreal ProjectsMyProject3MyProject3.uproject» «C:UserstechnDocumentsUnreal ProjectsMyProject3IntermediateBuildWin64MyProject3EditorDevelopmentMyProject3Editor.uhtmanifest» -LogCmds=»loginit warning, logexit warning, logdatabase error» -Unattended -WarningsAsErrors -installed
Reflection code generated for MyProject3Editor in 17,3711131 seconds
progress pop
ERROR: No 32-bit compiler toolchain found in C:Program Files (x86)Microsoft Visual Studio 14.0VCbincl.exe
Скажите пожалуйста что это такое и где можно скачать эти инструменты?
Заранее спасибо!

Аватара пользователя

Пользователь

Сообщения: 2319

No 32-bit compiler toolchain found in C:Program Files (x86)Microsoft Visual Studio 14.0VCbincl.exe
64 битную студию поставь! все же написанно.

_________________
we need to go deeper

Аватара пользователя

Пользователь

Сообщения: 154

Так 64 разрядной студии на данный момент не существует.

А по теме, возможно при установке студии не были выбраны библиотеки для работы с С++. Проверьте корректность установки всех инструментов:

visual c++ для 32 и 64.
windows SDK

https://docs.unrealengine.com/latest/IN … udioSetup/

если студия 2017 то даже есть инструкция в картинках, что устанавливать.

Аватара пользователя

Пользователь

Сообщения: 7

Цитата:

Проверьте корректность установки всех инструментов:

visual c++ для 32 и 64.
windows SDK

Стоят, установил все, что связано с C++, но результатов нет…

Цитата:

https://docs.unrealengine.com/latest/IN … udioSetup/

А разве это не рекомендации по настройке VS для упрощения работы с движком?

Аватара пользователя

Пользователь

Сообщения: 7

Решил поискать этот файл через проводник, увидел, что по пути C:Program Files (x86)Microsoft Visual Studio 14.0 нет самой папки «VS».
Зато в C:Program Files (x86) есть папка MCBuild, а там есть файлы, связанные с C++, есть и нужная 14-ая версия! Это может как-то помочь?

Аватара пользователя

Пользователь

Сообщения: 154

Возможно вы имели ввиду директории VC, а не VS.
Попробуйте переустановить visualstudio и во время установки проверьте все ли инструменты С++ выбраны. Если этой директории не существует, значит и инструменты для работы с С++ не установлены.

Hello I wanted to create a project in UE4.10 with basic c++ code. But when it comes to create it, UE gives me an error:

The project could not be compiled. Would you like to open it in Visual Studio? Running E:/Program Files (x86)/Epic Games/4.10/Engine/Binaries/DotNET/UnrealBuildTool.exe MyProject Development Win64 -project=»C:/Users/allst/Documents/Unreal Projects/MyProject/MyProject.uproject» -rocket -editorrecompile -progress -noubtmakefiles -2015 @progress push 5% Parsing headers for MyProjectEditor Running UnrealHeaderTool «C:/Users/allst/Documents/Unreal Projects/MyProject/MyProject.uproject» «C:UsersallstDocumentsUnreal ProjectsMyProjectIntermediateBuildWin64MyProjectEditorDevelopmentUnrealHeaderTool.manifest» -LogCmds=»loginit warning, logexit warning, logdatabase error» -rocket -installed Reflection code generated for MyProjectEditor in 17,8672852 seconds @progress pop Performing 7 actions (2 in parallel) [2/7] Resource PCLaunch.rc E:Program Files (x86)Epic Games4.10EngineSourceRuntimeLaunchResourcesWindowsPCLaunch.rc(10) : fatal error RC1015: cannot open include file ‘windows.h’. [3/7] Resource ModuleVersionResource.rc.inl E:Program Files (x86)Epic Games4.10EngineSourceRuntimeCoreResourcesWindowsModuleVersionResource.rc.inl(3) : fatal error RC1015: cannot open include file ‘windows.h’. PCH.MyProject.h.cpp E:Program Files (x86)Epic Games4.10EngineSourceRuntimeCorePublicHALPlatformIncludes.h(5): fatal error C1083: Cannot open include file: ‘new’: No such file or directory ——— End Detailed Actions Stats ———————————————————— ERROR: UBT ERROR: Failed to produce item: C:UsersallstDocumentsUnreal ProjectsMyProjectBinariesWin64UE4Editor-MyProject.dll Total build time: 90,64 seconds

I had VS 2013 pro, but I was asked to install VS 2015 community, what I have done, but problem is still persisting. Have you any ideas what should be done now? I will be gratefull for any advice. Have a nice day!

whoan's user avatar

whoan

7,9234 gold badges39 silver badges47 bronze badges

asked Dec 3, 2015 at 10:51

Unlucky's user avatar

Please verify that «Common Tools for Visual C++ 2015» was selected when installing Visual Studio 2015. It will not automatically install, you need to do a custom install for that.

answered Dec 10, 2015 at 16:35

Alexander S.'s user avatar

It appear to be a known problem while running Unreal Engine prior to 4.12.5 with Visual Studio Community 2015 with Update 3.

Assuming that you already have Common Tools for Visual C++ 2015 installed.
You can check if you are running VS2015 with Update 3 by going to:

Visual Studio 2015 > Help > About Microsoft Visual Studio

Solution 1: Update Unreal Engine > 4.12.5

Updating your Unreal Engine to version above 4.12.5

Go to
Epic Game launcher > Unreal Engine > Library > Engine Version to update the engine.

Solution 2: Resintall VS2015 without Update 3

Follow the instruction from Infected_Post here.

Below is what he has posted:

  1. Completely uninstall visual studio
  2. Use the Extra visual studio uninstall cleaner. Found on
    github > Microsoft/VisualStudioUninstaller/releases
  3. Delete the remaining Visual Studio installation folder.
  4. Do a restart and this machine should be ready for a clean installation
  5. Download the Visual Studio 2015 installer without any updates: https://www.microsoft.com/en-us/download/details.aspx?id=48146
  6. Now make sure you do a custom installation and deselect update 3!!!
  7. Once the installation is finished you need to generate visual studio project files for your unreal projects.

answered Dec 11, 2016 at 9:58

Amos Wong's user avatar

Amos WongAmos Wong

1921 silver badge10 bronze badges

$begingroup$

I’ve just started a brand new project and created a created a new C++ Character class. However Visual Studio 2017 shows 140 errors. The project still builds fine, however the syntax highlighting and errors are very intrusive.

Here are some examples of the errors:

on the BaseCharacter.cpp class I just created:
class "UObject" has no member "BeginPlay"
class "UObject" has no member "Tick"
class "UObject" has no member "SetUpPlayerInputComponent"

on multiple ‘.h’ files:
this declaration has no storage class or type specifier

for all ‘*.generated.h’ files:
cannot open source file "[ClassName].generated.h"

Is this a problem with my intellisence or the project itself? I haven’t changed any of the code that was generated by Unreal.

Pikalek's user avatar

Pikalek

10k4 gold badges39 silver badges46 bronze badges

asked Nov 11, 2018 at 18:15

Chris Lau's user avatar

$endgroup$

1

$begingroup$

If you go to your Unreal Engine launcher and click the drop down arrow next to your installed engine version, one of the check boxes you could enable for your UE4 build is the «C++ Symbols». If you check that box, it’ll download a lot of stuff but for situations like this it’ll really help out.

There are many tabs at the bottom of the Visual Studio window when you try to compile and build the project. One of them is the «Call Stack», and if you have those C++ Symbols installed then it will give you all sorts of extra details about what exactly is going wrong so that you can see exactly what the problem is.

As for the actual error message you’re getting, it looks like your BaseCharacter.cpp file has a : public UObject as it’s parent for some reason near the top of the file? If so, you might want to replace that with : public ABaseCharacter and then it should work fine.

Here’s an example of how that line should look in the .h header file:

class ATP_FirstPersonCharacter : public ACharacter

answered Nov 12, 2018 at 1:53

M. L.'s user avatar

M. L.M. L.

361 bronze badge

$endgroup$

$begingroup$

This has been a problem in the Unreal world for a while now. However, recently things have been getting a little better. This solution worked for me.

Workaround:
1. Open the project solution
2. Inside Visual Studio go to Project -> Properties
3. In configuration select «All Configurations»
4. In the Configuration Properties tree select NMake
5. Click the dropdown for the «Include Search Path» item and select «Edit…»
6. Click the «New Line» button at the top right of the window and add this path «..BuildWin64UE4EditorIncYourModuleName» without the quotes.
7. Repeat step 6 for each c++ module in your project

However there are still sometimes when errors show up and the code compiles just fine. Its no where near how bad it was before though. Another option, that I’m not fond of is disabling intellisense completely but I don’t like that option as it slows down development a lot.

answered Jan 12, 2019 at 14:38

Jason Crosby's user avatar

$endgroup$

You must log in to answer this question.

Not the answer you’re looking for? Browse other questions tagged

.

Здравствуйте, я хотел создать проект в UE4.10 с базовым кодом на C ++. Но когда дело доходит до его создания, UE выдает ошибку:

Не удалось скомпилировать проект. Хотите открыть его в Visual Studio? Запуск E: / Program Files (x86) / Epic Games / 4.10 / Engine / Binaries / DotNET / UnrealBuildTool.exe MyProject Development Win64 -project = «C: / Users / allst / Documents / Unreal Projects / MyProject / MyProject.uproject» — rocket -editorrecompile -progress -noubtmakefiles -2015 @progress push 5% Разбор заголовков для MyProjectEditor Запуск UnrealHeaderTool «C: / Users / allst / Documents / Unreal Projects / MyProject / MyProject.uproject» «C: Users allst Documents Unreal Projects MyProject Intermediate Build Win64 MyProjectEditor Development UnrealHeaderTool.manifest «-LogCmds =» предупреждение о входе в систему, предупреждение о выходе из журнала, ошибка базы данных журнала «-rocket -installed Код отражения, созданный для MyProjectEditor за 17 8672852 секунд @progress pop Выполнение 7 действия (2 параллельно) [2/7] Ресурс PCLaunch.rc E: Program Files (x86) Epic Games 4.10 Engine Source Runtime Launch Resources Windows PCLaunch.rc (10): фатальная ошибка RC1015: не удается открыть включаемый файл windows.h. [3/7] Resource ModuleVersionResource.rc.inl E: Program Files (x86) Epic Games 4.10 Engine Source Runtime Core Resources Windows ModuleVersionResource.rc.inl (3): фатальная ошибка RC1015: не удается открыть включаемый файл ‘windows.h’. PCH.MyProject.h.cpp E: Program Files (x86) Epic Games 4.10 Engine Source Runtime Core Public HAL PlatformIncludes.h (5): фатальная ошибка C1083: не удается открыть включаемый файл: ‘ new ‘: такого файла или каталога нет ——— Конец подробной статистики действий —————————— —————————— ОШИБКА: ОШИБКА UBT: не удалось создать элемент: C: Users allst Documents Unreal Projects MyProject Binaries Win64 UE4Editor-MyProject.dll Общее время сборки: 90,64 секундыCan’t load full resultsTry againRetrying…Retrying…

У меня был VS 2013 pro, но меня попросили установить сообщество VS 2015, что я сделал, но проблема все еще сохраняется. Есть идеи, что делать сейчас? Буду признателен за любой совет. Хорошего дня!

2 ответа

Лучший ответ

Убедитесь, что при установке Visual Studio 2015 был выбран «Общие инструменты для Visual C ++ 2015». Он не будет установлен автоматически, для этого необходимо выполнить выборочную установку.


0

Alexander S.
10 Дек 2015 в 16:35

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

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

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

  • Яшка сломя голову остановился исправьте ошибки
  • Ясность цели позволяет целеустремленно добиваться намеченного исправьте ошибки
  • Ясность цели позволяет целеустремленно добиваться намеченного где ошибка
  • Unhandled exception occurred see log for details call of chernobyl как исправить ошибку
  • Unexpected token python ошибка