0

在这里,我有我的标题:

// ASSIMP
#include <assimp\Importer.hpp>
#include <assimp\scene.h>
#include <assimp\postprocess.h>

它编译并且没有未解析的外部,所以我的库文件应该是正确的。

但更进一步:

/* load file with assimp and print some stats */

const aiScene* scene = aiImportFile(file_name, aiProcess_Triangulate);
if (!scene) {
    fprintf(stderr, "ERROR: reading mesh %s\n", file_name);
    return false;
}

我收到一个关于 aiImportFile 的错误,即找不到它的标识符。这与 assimp 的所有其他工作一样令人费解。

我该如何解决?目前编译assimp的源代码不起作用,我没有得到任何库文件,所以我坚持使用“完整”下可用的内容。

4

1 回答 1

0

经过大量工作以找到解决方案,我很确定问题是在调试模式下编译库。我相信它只适用于发布模式。

不幸的是,这是不久前的事,我的计算机上目前没有代码,所以我不是 100% 确定,但我 90% 确定。

于 2015-01-17T18:08:24.823 回答