Download

[Kinect4Unreal]无法建立C++项目

当添加Kinect4Unreal插件后

在Unreal engine 4.10.1版本下,不能新建C++项目

**新建C++项目时,出现如下错误:
**
尝试生成项目文件时发生错误。

Running D:/Epic Games/4.10/Engine/Binaries/DotNET/UnrealBuildTool.exe -projectfiles -project=“D:/Unreal_Project/我的项目2/我的项目2.uproject” -game -rocket -progress -2015
Discovering modules, targets and source code for game…
ERROR: UnrealBuildTool.IniParsingException: Trying to parse key/value pair that doesn’t belong to any section in D:\Unreal_Project\我的项目2\Config\DefaultEngine.ini, line 1: ???
在 UnrealBuildTool.ConfigCacheIni.ParseIniFile(String Filename)
在 UnrealBuildTool.ConfigCacheIni.Init(UnrealTargetPlatform Platform, String BaseIniName, String ProjectDirectory, String EngineDirectory)
在 UnrealBuildTool.UEBuildPlatform.SetUpProjectEnvironment(UnrealTargetPlatform InPlatform)
在 UnrealBuildTool.UEBuildTarget.SetupGlobalEnvironment()
在 UnrealBuildTool.UEBuildTarget.PreBuildSetup(IUEToolChain TargetToolChain)
在 UnrealBuildTool.UEBuildTarget.Build(IUEToolChain TargetToolChain, List1& OutputItems, List1& UObjectModules, String& EULAViolationWarning)
在 UnrealBuildTool.UnrealBuildTool.RunUBT(String] Arguments)

**建立蓝图项目,在蓝图项目中添加C++类时出现如下错误:
**
尝试生成项目文件时发生错误。

Running D:/Epic Games/4.10/Engine/Binaries/DotNET/UnrealBuildTool.exe -projectfiles -project=“D:/Unreal_Project/我的项目/我的项目.uproject” -game -rocket -progress -2015
Discovering modules, targets and source code for game…
ERROR: Couldn’t find module rules file for module ‘Kinect4Unreal’.
**
之后再尝试打开该蓝图项目时,弹出对话框:**

The following modules are missing or built with a different engine version:

UE4Editor - 我的项目.dll

Would you like to rebuild them now?
**
选择确定后,出现如下错误:**

could not be complied.Try rebuilding from source manually.

不知道怎么解决?
**
我用的编译器是VS2015,虚幻4版本为4.10.1**

求解QAQ

恩,先看看你的Kinect的插件版本是否一致,然后看看你的项目当中有中文目录,可能是这个找不到。

我试过了,不行,插件版本是一致的,能识别= ̄ω ̄=,也能打开蓝图项目,就是不能在有k4u插件的项目中添加c++代码

你用的如果是opaque.media他们家的插件,由于没有项目源码,那是没有办法添加到C++项目一起编译的,除非你先编译好了除了kinect插件之外的C++项目的部分,然后再把插件放进工程文件夹里,直接打开项目编辑器的exe,这个时候项目还是可以加载的,这个流程我跑通了。
然而并没有什么用,因为只能在Editor里运行,没有办法Package。
援引opaque.media他们官方的说明,读一下就懂了

HOW CAN I PACKAGE MY PROJECT?

While we are constantly searching for alternatives, in Unreal there is currently no way to package a project that includes a plugin without source code. This is a problem that Epic is also actively working on and is slated to be fixed in 2015. However, depending on your needs, it may not be necessary to package your plugin for deployment. This is particularly relevant to installations and exhibits, running your project from inside the editor as a new editor window or a standalone game, these both allow you resolution and full screen control equivalent to that of a packaged project.

If you absolutely need to package the project right now, there are two options:

Acquire a source code license from us. The cost varies depending on the scale of your project, so please contact us for more detail.
For a fee, we can package your application for you. The cost varies depending on how much effort it requires, but generally ranges between $200 - $400 USD for projects that can be packaged directly from engine. For projects that require compilation from source, we recommend that you contact us to acquire a source license.

简而言之,他们家针对源码linese和package提供两种形式的服务。

说实话opaque.media他们家的这个插件确实好用。

但是,我这种买不起源码又package不起的,前昨天刚决定放弃这个插件,打算试一下Leon的开源版本T_T
https://forums.unrealengine.com/showthread.php?389-Kinect-4-Windows-v2-0-Plugin&highlight=kinect+unreal+source