我在这里克隆了TORQ3D的最早版本:Github - Torque3D。我用project工具生成了一个“空”模板项目,然后启动了VS2013 Professional以进入构建过程。
在VS中,我简单地启动了构建解决方案,就像教程告诉我的那样。
但不幸的是,出现了一个错误:
Fehler 101 error C1083: Datei (Include) kann nicht geöffnet werden: "nfd.h": No such file or directory c:\...\torque3d\engine\source\platform\nativedialogs\filedialog.cpp 32 1 T3D_Tutorial DLL我在这里找到了那份文件:
C:\...\Torque3D\Engine\lib\nativeFileDialogs\include\nfd.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:\Users\Falke\Google Drive\Workspace.cloud\Software Development\Torque3DTryout\Torque3D\My Projects\T3D_Tutorial\game\T3D_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:\...\Torque3D\My Projects\T3D_Tutorial\buildFiles\VisualStudio 2012\projects\entity.obj T3D_Tutorial DLL(对于德文翻译很抱歉--我写这个问题时没有改变语言设置)
发布于 2016-08-04 01:23:58
https://stackoverflow.com/questions/38290284
复制相似问题