Error, T4436: Unable to open file "../../test/models/X/dwarf.x". Info, T4436: Found a matching importer for this file format Info, T4436: Import root directory is '../../../../test/models/X\' Info, T4436: Entering post processing pipeline Info, T4436: Points: 0, Lines: 0, Triangles: 2, Polygons: 0 (Meshes, X = remove d) Warn, T4436: Simplified dummy tracks with just one key Skipping one or more lines with the same contents Info, T4436: JoinVerticesProcess finished | Verts in: 5688 out: 2001 | ~64.8% Info, T4436: Cache relevant are 2 meshes (1896 faces). Average output ACMR is 1 .150844 Info, T4436: Leaving post processing pipeline
=== scene = new aiScene(); (line 117) to: remove line (memory hole and not even needed) === std::string texturepath = "../../test/models/X/"; to: std::string texturepath = "../../../test/models/X/"; === if (!Import3DFromFile("../../test/models/X/dwarf.x")) return 0; to if (!Import3DFromFile("../../../test/models/X/dwarf.x")) return 0; === cleanup of textureIds array added at main shutdown: // *** cleanup *** // clear map textureIdMap.clear(); //no need to delete pointers in it manually here. (Pointers point to textureIds deleted in next step) // clear texture ids if (textureIds) { delete[] textureIds; textureIds = NULL; } // *** cleanup end *** ====By the way... I also made notices about my experience when trying to make the other example run: Maybe you'd want to change that to ease things up for new users:
- sample won't build => Linker needs to point to "..\..\..\..\lib\assimp_debug-dll_win32". Not "..\..\..\..\lib\assimp_debug_win32" There is a lib in there but linking will result in errors: assimp.lib(BaseImporter.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class std::_String_iterator<char,struct std::char_traits<char>,class std::allocator<char> > __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::erase(class std::_String_const_iterator<char,struct std::char_traits<char>,class std::allocator<char> >)" (__imp_?erase@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE?AV?$_String_iterator@DU?$char_traits@D@std@@V?$allocator@D@2@@2@V?$_String_const_iterator@DU?$char_traits@D@std@@V?$allocator@D@2@@2@@Z) assimp.lib(BaseImporter.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class std::_String_iterator<char,struct std::char_traits<char>,class std::allocator<char> > __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::erase(class std::_String_const_iterator<char,struct std::char_traits<char>,class std::allocator<char> >,class std::_String_const_iterator<char,struct std::char_traits<char>,class std::allocator<char> >)" (__imp_?erase@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE?AV?$_String_iterator@DU?$char_traits@D@std@@V?$allocator@D@2@@2@V?$_String_const_iterator@DU?$char_traits@D@std@@V?$allocator@D@2@@2@0@Z) assimp.lib(ColladaLoader.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static unsigned int __cdecl std::ctype<char>::_Getcat(class std::locale::facet const * *,class std::locale const *)" (__imp_?_Getcat@?$ctype@D@std@@SAIPAPBVfacet@locale@2@PBV42@@Z) assimp.lib(BVHLoader.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static unsigned int __cdecl std::ctype<char>::_Getcat(class std::locale::facet const * *,class std::locale const *)" (__imp_?_Getcat@?$ctype@D@std@@SAIPAPBVfacet@locale@2@PBV42@@Z) assimp.lib(ColladaParser.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static unsigned int __cdecl std::ctype<char>::_Getcat(class std::locale::facet const * *,class std::locale const *)" (__imp_?_Getcat@?$ctype@D@std@@SAIPAPBVfacet@locale@2@PBV42@@Z) assimp.lib(XFileParser.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static unsigned int __cdecl std::ctype<char>::_Getcat(class std::locale::facet const * *,class std::locale const *)" (__imp_?_Getcat@?$ctype@D@std@@SAIPAPBVfacet@locale@2@PBV42@@Z) C:\libs\assimp svn\trunk\samples\workspaces\vc8\..\..\SimpleOpenGL\SimpleOpenGL.exe : fatal error LNK1120: 3 unresolved externals - Post built in debug copies wrong dll Should be: copy "$(SolutionDir)..\..\..\bin\assimp_debug-dll_win32\Assimp32d.dll" "$(SolutionDir)..\..\SimpleOpenGL\" (should be 'debug', not 'release' and put in quotes just in case the SolutionDir contains spaces) Quotes in release mode would be better too: copy "$(SolutionDir)..\..\..\bin\assimp_release-dll_win32\Assimp32.dll" "$(SolutionDir)..\..\SimpleOpenGL\"
This forum does not allow anonymous participation.
Log in to add a reply. Not registered? Create an account to participate and receive email updates when replies are posted to this topic.