扭矩3D建筑模板项目产生"nfd.h file not found"错误是VS2013

Torque 3D building Template project yields "nfd.h file not found" error is VS2013

本文关键字:not file found 错误 VS2013 nfd 扭矩 建筑 项目 3D      更新时间:2023-10-16

我在这里克隆了Torque 3D的最早版本:Github - Torque3D.我使用项目经理工具生成了一个"空"模板项目,然后启动VS2013 Professional进入构建过程。

在VS中,我只是按照教程告诉我的那样启动了构建解决方案。

但遗憾的是,出现了一个错误:

Fehler  101 error C1083: Datei (Include) kann nicht geöffnet werden: "nfd.h": No such file or directory c:...torque3denginesourceplatformnativedialogsfiledialog.cpp 32  1   T3D_Tutorial DLL

我查找了该文件并在此处找到了它:

C:...Torque3DEnginelibnativeFileDialogsincludenfd.h

引发此错误的文件具有以下包含语句:

#include "console/simBase.h"
#include "platform/nativeDialogs/fileDialog.h"
#include "platform/threads/mutex.h"
#include "core/util/safeDelete.h"
#include "math/mMath.h"
#include "core/strings/unicode.h"
#include "console/consoleTypes.h"
#include "platform/profiler.h"
#include "console/engineAPI.h"
#include <nfd.h> // badboy
#include "core/strings/stringUnit.h"
#include "core/frameAllocator.h"

我将包含更改为: #include "nativeFileDialogs/include/nfd.h因为我认为我是一个聪明的男孩,并找到了真正的依赖性 - 但可悲的是,这个聪明的行动导致了更大的混乱:

Fehler  133 error LNK1120: 1 nicht aufgelöste Externe   C:UsersFalkeGoogle DriveWorkspace.cloudSoftware DevelopmentTorque3DTryoutTorque3DMy ProjectsT3D_TutorialgameT3D_Tutorial_DEBUG DLL.dll   T3D_Tutorial DLL

Fehler  132 error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: void __thiscall Component::setOwner(class Entity *)" (?setOwner@Component@@QAEXPAVEntity@@@Z)" in Funktion ""public: bool __thiscall Entity::addComponent(class Component *)" (?addComponent@Entity@@QAE_NPAVComponent@@@Z)".    C:...Torque3DMy ProjectsT3D_TutorialbuildFilesVisualStudio 2012projectsentity.obj   T3D_Tutorial DLL

(对不起,德语翻译 - 我在写这个问题时没有设法更改语言设置)

  1. 删除 NFD.H 包含。
  2. gui/editor/inspector/mountingGroup.cpp 并删除 T3D/entity.h include。
  3. 从项目中删除 TD3/entity.h 和 entity.cpp。
  4. 转到引擎/TD3 目录并删除 entity.h 和 entity.cpp。
  5. 构建和乐趣。
相关文章: