I'm having some issues with a manual install of TexGen.
Some, possibly all, of the issues seem to do with linking to VTK. I CMake, compiled (MSVS 2008) and installed VTK with no errors or warnings.
When I use CMake on TexGen I point VTK_DIR to this install directory, and press Configure. No errors there.
When I Generate this I get the warnings that _Renderer is not linking to several items. For example:
Code: Select all
Target "_Renderer" links to item
C:/Program Files/VTK/lib/vtk-5.6/vtkGraphics
which is a full-path but not a valid library file name. However all of these files, both .lib and .cmake versions are present in the directory it mentions.
As these appear to be only warnings, I continue to the TexGen build in Visual Studio, where it seems warnings turn to errors.
------
When I run the TexGen build, as explained in the documentation, I get the following errors:
Under TexGen Core Build:
Code: Select all
TetgenMesh.obj : error LNK2019: unresolved external symbol "public: void __thiscall tetgenio::save_faces(char *)" (?save_faces@tetgenio@@QAEXPAD@Z) referenced in function "public: void __thiscall TexGen::CTetgenMesh::SaveTetgenMesh(class TexGen::CTextile &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (?SaveTetgenMesh@CTetgenMesh@TexGen@@QAEXAAVCTextile@2@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
...
C:\Documents and Settings\...\TexGen Binaries\Release\TexGenCore.dll : fatal error LNK1120: 5 unresolved externals
Build log was saved at "file://c:\Documents and Settings\...\TexGen Binaries\Core\TexGenCore.dir\Release\BuildLog.htm"
TexGenCore - 6 error(s), 24 warning(s) After this set of errors, I get the same 17 errors under each of "TexGenGUI"; "_Renderer"; "cotton" and "polyester". All of them clearly relate to VTK.
Code: Select all
Creating library C:\Documents and Settings\...\TexGen Binaries\Release\TexGenGUI.lib and object C:\Documents and Settings\...\TexGen Binaries\Release\TexGenGUI.exp
vtkIO.lib(vtkMetaImageReader.obj) : error LNK2019: unresolved external symbol "public: __thiscall vtkmetaio::MetaImage::MetaImage(void)" (??0MetaImage@vtkmetaio@@QAE@XZ) referenced in function "protected: __thiscall vtkMetaImageReader::vtkMetaImageReader(void)" (??0vtkMetaImageReader@@IAE@XZ)
...
C:\Documents and Settings\...\TexGen Binaries\Release\TexGenGUI.exe : fatal error LNK1120: 16 unresolved externals
Build log was saved at "file://c:\Documents and Settings\...\TexGen Binaries\GUI\TexGenGUI.dir\Release\BuildLog.htm"
TexGenGUI - 17 error(s), 1 warning(s) Have you any idea what's the issue here?
Is it possibly in how I used CMake to make VTK? I think I followed instructions correctly.
Many thanks,
David