Problem mit VTK



  • Hey,

    für ein Projekt muss ich Daten visualiesieren. Als Möglichkeit dazu habe ich VTK gewählt. Die Installation (Source) nach Anleitung aus dem Inet hat auch funktioniert. Dachte ich jedenfalls.
    Ich benutze Visual Studio 2010 Professional und VTK 5.6.
    Wenn ich einen Beispiel-Code von www.vtk.org versuche zu erstellen, dann bekomme ich folgende Fehlermeldung:

    `InitializeBuildStatus:

    Aktualisieren des Timestamps von "Debug\vtktest2.unsuccessfulbuild".

    ClCompile:

    Alle Ausgaben sind aktuell.

    main.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: void __thiscall vtkRenderer::AddActor(class vtkProp *)" (?AddActor@vtkRenderer@@QAEXPAVvtkProp@@@Z)" in Funktion "_main".

    main.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: void __thiscall vtkRenderWindowInteractor::SetRenderWindow(class vtkRenderWindow *)" (?SetRenderWindow@vtkRenderWindowInteractor@@QAEXPAVvtkRenderWindow@@@Z)" in Funktion "_main".

    main.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: static class vtkRenderWindowInteractor * __cdecl vtkRenderWindowInteractor::New(void)" (?New@vtkRenderWindowInteractor@@SAPAV1@XZ)" in Funktion "_main".

    main.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: static class vtkRenderWindow * __cdecl vtkRenderWindow::New(void)" (?New@vtkRenderWindow@@SAPAV1@XZ)" in Funktion "_main".

    main.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: static class vtkRenderer * __cdecl vtkRenderer::New(void)" (?New@vtkRenderer@@SAPAV1@XZ)" in Funktion "_main".

    main.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: void __thiscall vtkProperty::SetColor(double,double,double)" (?SetColor@vtkProperty@@QAEXNNN@Z)" in Funktion "_main".

    main.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: class vtkProperty * __thiscall vtkActor::GetProperty(void)" (?GetProperty@vtkActor@@QAEPAVvtkProperty@@XZ)" in Funktion "_main".

    main.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: static class vtkOutlineFilter * __cdecl vtkOutlineFilter::New(void)" (?New@vtkOutlineFilter@@SAPAV1@XZ)" in Funktion "_main".

    main.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: static class vtkActor * __cdecl vtkActor::New(void)" (?New@vtkActor@@SAPAV1@XZ)" in Funktion "_main".

    main.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: void __thiscall vtkPolyDataMapper::SetInput(class vtkPolyData *)" (?SetInput@vtkPolyDataMapper@@QAEXPAVvtkPolyData@@@Z)" in Funktion "_main".

    main.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: class vtkPolyData * __thiscall vtkPolyDataAlgorithm::GetOutput(void)" (?GetOutput@vtkPolyDataAlgorithm@@QAEPAVvtkPolyData@@XZ)" in Funktion "_main".

    main.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: static class vtkPolyDataMapper * __cdecl vtkPolyDataMapper::New(void)" (?New@vtkPolyDataMapper@@SAPAV1@XZ)" in Funktion "_main".

    main.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: void __thiscall vtkPolyDataAlgorithm::SetInput(class vtkDataObject *)" (?SetInput@vtkPolyDataAlgorithm@@QAEXPAVvtkDataObject@@@Z)" in Funktion "_main".

    main.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: class vtkImageData * __thiscall vtkImageAlgorithm::GetOutput(void)" (?GetOutput@vtkImageAlgorithm@@QAEPAVvtkImageData@@XZ)" in Funktion "_main".

    main.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: static class vtkContourFilter * __cdecl vtkContourFilter::New(void)" (?New@vtkContourFilter@@SAPAV1@XZ)" in Funktion "_main".

    main.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: void __thiscall vtkSampleFunction::SetSampleDimensions(int,int,int)" (?SetSampleDimensions@vtkSampleFunction@@QAEXHHH@Z)" in Funktion "_main".

    main.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: static class vtkSampleFunction * __cdecl vtkSampleFunction::New(void)" (?New@vtkSampleFunction@@SAPAV1@XZ)" in Funktion "_main".

    main.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: void __thiscall vtkQuadric::SetCoefficients(double,double,double,double,double,double,double,double,double,double)" (?SetCoefficients@vtkQuadric@@QAEXNNNNNNNNNN@Z)" in Funktion "_main".

    main.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: static class vtkQuadric * __cdecl vtkQuadric::New(void)" (?New@vtkQuadric@@SAPAV1@XZ)" in Funktion "_main".

    main.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: void __thiscall vtkContourValues::GenerateValues(int,double,double)" (?GenerateValues@vtkContourValues@@QAEXHNN@Z)" in Funktion ""public: void __thiscall vtkContourFilter::GenerateValues(int,double,double)" (?GenerateValues@vtkContourFilter@@QAEXHNN@Z)".`

    Ich weiß leider nicht was ich noch machen soll bzw. woran es liegt. Ich hoffe ihr könnt mir weiter helfen, bevor mein Rechner leiden muss 😉

    Der Code dazu:

    #include "vtkQuadric.h" 
    #include "vtkSampleFunction.h"
    #include "vtkContourFilter.h"
    #include "vtkOutlineFilter.h"
    #include "vtkPolyDataMapper.h"
    #include "vtkActor.h"
    #include "vtkProperty.h"
    #include "vtkRenderWindow.h"
    #include "vtkRenderer.h"
    #include "vtkRenderWindowInteractor.h" 
    #include "vtkImageData.h" 
    int main () 
    { 
      // -- create the quadric function object -- 
    
      // create the quadric function definition 
      vtkQuadric *quadric = vtkQuadric::New();
      quadric->SetCoefficients(.5,1,.2,0,.1,0,0,.2,0,0);
    
      // sample the quadric function 
      vtkSampleFunction *sample = vtkSampleFunction::New(); 
      sample->SetSampleDimensions(50,50,50);
      sample->SetImplicitFunction(quadric); 
    
      // Create five surfaces F(x,y,z) = constant between range specified 
      vtkContourFilter *contours = vtkContourFilter::New(); 
      contours->SetInput(sample->GetOutput()); 
      contours->GenerateValues(5, 0.0, 1.2); 
    
      // map the contours to graphical primitives 
      vtkPolyDataMapper *contMapper = vtkPolyDataMapper::New(); 
      contMapper->SetInput(contours->GetOutput()); 
      contMapper->SetScalarRange(0.0, 1.2); 
    
      // create an actor for the contours 
      vtkActor *contActor = vtkActor::New(); 
      contActor->SetMapper(contMapper);
    
      // -- create a box around the function to indicate the sampling volume -- 
    
      // create outline 
      vtkOutlineFilter *outline = vtkOutlineFilter::New();
      outline->SetInput(sample->GetOutput()); 
    
      // map it to graphics primitives 
      vtkPolyDataMapper *outlineMapper = vtkPolyDataMapper::New(); 
      outlineMapper->SetInput(outline->GetOutput()); 
    
      // create an actor for it 
      vtkActor *outlineActor = vtkActor::New(); 
      outlineActor->SetMapper(outlineMapper); 
      outlineActor->GetProperty()->SetColor(0,0,0); 
    
      // -- render both of the objects -- 
    
      // a renderer and render window 
      vtkRenderer *ren1 = vtkRenderer::New(); 
      vtkRenderWindow *renWin = vtkRenderWindow::New(); 
      renWin->AddRenderer(ren1); 
    
      // an interactor 
      vtkRenderWindowInteractor *iren = vtkRenderWindowInteractor::New(); 
      iren->SetRenderWindow(renWin); 
    
    // add the actors to the scene 
      ren1->AddActor(contActor); 
      ren1->AddActor(outlineActor); 
      ren1->SetBackground(1,1,1); // Background color white 
    
      // render an image (lights and cameras are created automatically) 
      renWin->Render(); 
    
      // begin mouse interaction 
      iren->Start(); 
    
      // release memory and return 
      quadric->Delete(); 
      sample->Delete(); 
      contours->Delete(); 
      contMapper->Delete(); 
      contActor->Delete(); 
      outline->Delete(); 
      outlineMapper->Delete(); 
      outlineActor->Delete(); 
      ren1->Delete(); 
      renWin->Delete(); 
      iren->Delete(); 
      return EXIT_SUCCESS; 
    }
    


  • Es sieht so aus, als ob du vergessen hast, eine lib (oder mehrere) zu linken. Ich kenne mich mit VTK leider nicht aus, aber da gibt es sicher eine Installationsanleitung, in der erwähnt wird, welche lib(s) du brauchst. Libs kannst du im VS in den Projekteinstellungen unter Linker eintragen (zusätzliche Abhängigkeiten heißt es, glaube ich) ,oder per pragma comment Statement direkt im Code. Schau mal hier:

    http://www.vtk.org/pipermail/vtkusers/2004-May/074243.html



  • Danke für die schnelle Antwort.

    Ich habe die lib im Linker (zusätzliche Abhängigkeiten) eingetragen. Unter VC++-Verzeichnisse habe ich einen Pfad auf den Ordner mit den lib hinzugefügt gehabt.
    Die Fehlerausgabe nach dem ich die zusätzlichen Abhängigkeitn eingetragen habe hat sich geändert:

    InitializeBuildStatus:
      Aktualisieren des Timestamps von "Debug\vtktest2.unsuccessfulbuild".
    ClCompile:
      main.cpp
    vtkCommon.lib(vtkObjectFactory.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: char const * __thiscall vtksys::Directory::GetFile(unsigned long)const " (?GetFile@Directory@vtksys@@QBEPBDK@Z)" in Funktion ""private: static void __cdecl vtkObjectFactory::LoadLibrariesInPath(char const *)" (?LoadLibrariesInPath@vtkObjectFactory@@CAXPBD@Z)".
    vtkCommon.lib(vtkObjectFactory.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: unsigned long __thiscall vtksys::Directory::GetNumberOfFiles(void)const " (?GetNumberOfFiles@Directory@vtksys@@QBEKXZ)" in Funktion ""private: static void __cdecl vtkObjectFactory::LoadLibrariesInPath(char const *)" (?LoadLibrariesInPath@vtkObjectFactory@@CAXPBD@Z)".
    vtkCommon.lib(vtkObjectFactory.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: __thiscall vtksys::Directory::~Directory(void)" (??1Directory@vtksys@@QAE@XZ)" in Funktion ""private: static void __cdecl vtkObjectFactory::LoadLibrariesInPath(char const *)" (?LoadLibrariesInPath@vtkObjectFactory@@CAXPBD@Z)".
    vtkCommon.lib(vtkObjectFactory.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: bool __thiscall vtksys::Directory::Load(char const *)" (?Load@Directory@vtksys@@QAE_NPBD@Z)" in Funktion ""private: static void __cdecl vtkObjectFactory::LoadLibrariesInPath(char const *)" (?LoadLibrariesInPath@vtkObjectFactory@@CAXPBD@Z)".
    vtkCommon.lib(vtkObjectFactory.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: __thiscall vtksys::Directory::Directory(void)" (??0Directory@vtksys@@QAE@XZ)" in Funktion ""private: static void __cdecl vtkObjectFactory::LoadLibrariesInPath(char const *)" (?LoadLibrariesInPath@vtkObjectFactory@@CAXPBD@Z)".
    vtkCommon.lib(vtkDynamicLoader.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: static struct HINSTANCE__ * __cdecl vtksys::DynamicLoader::OpenLibrary(char const *)" (?OpenLibrary@DynamicLoader@vtksys@@SAPAUHINSTANCE__@@PBD@Z)" in Funktion ""public: static struct HINSTANCE__ * __cdecl vtkDynamicLoader::OpenLibrary(char const *)" (?OpenLibrary@vtkDynamicLoader@@SAPAUHINSTANCE__@@PBD@Z)".
    vtkCommon.lib(vtkDynamicLoader.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: static int __cdecl vtksys::DynamicLoader::CloseLibrary(struct HINSTANCE__ *)" (?CloseLibrary@DynamicLoader@vtksys@@SAHPAUHINSTANCE__@@@Z)" in Funktion ""public: static int __cdecl vtkDynamicLoader::CloseLibrary(struct HINSTANCE__ *)" (?CloseLibrary@vtkDynamicLoader@@SAHPAUHINSTANCE__@@@Z)".
    vtkCommon.lib(vtkDynamicLoader.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: static void (__cdecl*__cdecl vtksys::DynamicLoader::GetSymbolAddress(struct HINSTANCE__ *,char const *))(void)" (?GetSymbolAddress@DynamicLoader@vtksys@@SAP6AXXZPAUHINSTANCE__@@PBD@Z)" in Funktion ""public: static void * __cdecl vtkDynamicLoader::GetSymbolAddress(struct HINSTANCE__ *,char const *)" (?GetSymbolAddress@vtkDynamicLoader@@SAPAXPAUHINSTANCE__@@PBD@Z)".
    vtkCommon.lib(vtkDynamicLoader.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: static char const * __cdecl vtksys::DynamicLoader::LibPrefix(void)" (?LibPrefix@DynamicLoader@vtksys@@SAPBDXZ)" in Funktion ""public: static char const * __cdecl vtkDynamicLoader::LibPrefix(void)" (?LibPrefix@vtkDynamicLoader@@SAPBDXZ)".
    vtkCommon.lib(vtkDynamicLoader.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: static char const * __cdecl vtksys::DynamicLoader::LibExtension(void)" (?LibExtension@DynamicLoader@vtksys@@SAPBDXZ)" in Funktion ""public: static char const * __cdecl vtkDynamicLoader::LibExtension(void)" (?LibExtension@vtkDynamicLoader@@SAPBDXZ)".
    vtkCommon.lib(vtkDynamicLoader.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: static char const * __cdecl vtksys::DynamicLoader::LastError(void)" (?LastError@DynamicLoader@vtksys@@SAPBDXZ)" in Funktion ""public: static char const * __cdecl vtkDynamicLoader::LastError(void)" (?LastError@vtkDynamicLoader@@SAPBDXZ)".
    vtkCommon.lib(vtkVariant.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: static int __cdecl vtksys::SystemTools::Strucmp(char const *,char const *)" (?Strucmp@SystemTools@vtksys@@SAHPBD0@Z)" in Funktion ""double __cdecl vtkVariantStringToNonFiniteNumeric<double>(class vtkStdString,bool *)" (??$vtkVariantStringToNonFiniteNumeric@N@@YANVvtkStdString@@PA_N@Z)".
    vtkIO.lib(vtkShaderCodeLibrary.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""public: __thiscall vtksys::SystemToolsManager::SystemToolsManager(void)" (??0SystemToolsManager@vtksys@@QAE@XZ)".
    vtkCommon.lib(vtkVariant.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: __thiscall vtksys::SystemToolsManager::SystemToolsManager(void)" (??0SystemToolsManager@vtksys@@QAE@XZ)" in Funktion ""void __cdecl vtksys::`dynamic initializer for 'SystemToolsManagerInstance''(void)" (??__ESystemToolsManagerInstance@vtksys@@YAXXZ)".
    vtkRendering.lib(vtkProperty.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""public: __thiscall vtksys::SystemToolsManager::SystemToolsManager(void)" (??0SystemToolsManager@vtksys@@QAE@XZ)".
    vtkRendering.lib(vtkShader.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""public: __thiscall vtksys::SystemToolsManager::SystemToolsManager(void)" (??0SystemToolsManager@vtksys@@QAE@XZ)".
    vtkIO.lib(vtkXMLShader.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""public: __thiscall vtksys::SystemToolsManager::SystemToolsManager(void)" (??0SystemToolsManager@vtksys@@QAE@XZ)".
    vtkIO.lib(vtkShaderCodeLibrary.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""public: __thiscall vtksys::SystemToolsManager::~SystemToolsManager(void)" (??1SystemToolsManager@vtksys@@QAE@XZ)".
    vtkCommon.lib(vtkVariant.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: __thiscall vtksys::SystemToolsManager::~SystemToolsManager(void)" (??1SystemToolsManager@vtksys@@QAE@XZ)" in Funktion ""void __cdecl vtksys::`dynamic atexit destructor for 'SystemToolsManagerInstance''(void)" (??__FSystemToolsManagerInstance@vtksys@@YAXXZ)".
    vtkRendering.lib(vtkProperty.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""public: __thiscall vtksys::SystemToolsManager::~SystemToolsManager(void)" (??1SystemToolsManager@vtksys@@QAE@XZ)".
    vtkRendering.lib(vtkShader.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""public: __thiscall vtksys::SystemToolsManager::~SystemToolsManager(void)" (??1SystemToolsManager@vtksys@@QAE@XZ)".
    vtkIO.lib(vtkXMLShader.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""public: __thiscall vtksys::SystemToolsManager::~SystemToolsManager(void)" (??1SystemToolsManager@vtksys@@QAE@XZ)".
    vtkRendering.lib(vtkProperty.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: static class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl vtksys::SystemTools::GetFilenameLastExtension(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?GetFilenameLastExtension@SystemTools@vtksys@@SA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ABV34@@Z)" in Funktion ""protected: void __thiscall vtkProperty::LoadTexture(class vtkXMLDataElement *)" (?LoadTexture@vtkProperty@@IAEXPAVvtkXMLDataElement@@@Z)".
    vtkRendering.lib(vtkShader.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: static bool __cdecl vtksys::SystemTools::Split(char const *,class std::vector<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::allocator<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > > &,char)" (?Split@SystemTools@vtksys@@SA_NPBDAAV?$vector@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@std@@D@Z)" in Funktion ""protected: void __thiscall vtkShader::SetMatrixParameter(class vtkActor *,class vtkRenderer *,class vtkXMLDataElement *)" (?SetMatrixParameter@vtkShader@@IAEXPAVvtkActor@@PAVvtkRenderer@@PAVvtkXMLDataElement@@@Z)".
    vtkIO.lib(vtkXMLShader.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""public: static bool __cdecl vtksys::SystemTools::Split(char const *,class std::vector<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::allocator<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > > &,char)" (?Split@SystemTools@vtksys@@SA_NPBDAAV?$vector@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@std@@D@Z)".
    vtkIO.lib(vtkXMLShader.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: static void __cdecl vtksys::SystemTools::ConvertToUnixSlashes(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &)" (?ConvertToUnixSlashes@SystemTools@vtksys@@SAXAAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)" in Funktion ""public: static char * __cdecl vtkXMLShader::LocateFile(char const *)" (?LocateFile@vtkXMLShader@@SAPADPBD@Z)".
    vtkIO.lib(vtkXMLShader.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: static bool __cdecl vtksys::SystemTools::GetEnv(char const *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &)" (?GetEnv@SystemTools@vtksys@@SA_NPBDAAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)" in Funktion ""public: static char * __cdecl vtkXMLShader::LocateFile(char const *)" (?LocateFile@vtkXMLShader@@SAPADPBD@Z)".
    vtkIO.lib(vtkXMLShader.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: static char * __cdecl vtksys::SystemTools::DuplicateString(char const *)" (?DuplicateString@SystemTools@vtksys@@SAPADPBD@Z)" in Funktion ""public: static char * __cdecl vtkXMLShader::LocateFile(char const *)" (?LocateFile@vtkXMLShader@@SAPADPBD@Z)".
    vtkIO.lib(vtkShaderCodeLibrary.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""public: static char * __cdecl vtksys::SystemTools::DuplicateString(char const *)" (?DuplicateString@SystemTools@vtksys@@SAPADPBD@Z)".
    vtkIO.lib(vtkXMLShader.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: static bool __cdecl vtksys::SystemTools::FileExists(char const *)" (?FileExists@SystemTools@vtksys@@SA_NPBD@Z)" in Funktion ""public: static char * __cdecl vtkXMLShader::LocateFile(char const *)" (?LocateFile@vtkXMLShader@@SAPADPBD@Z)".
    vtkIO.lib(vtkTIFFReader.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_vtk_TIFFOpen" in Funktion ""public: int __thiscall vtkTIFFReaderInternal::Open(char const *)" (?Open@vtkTIFFReaderInternal@@QAEHPBD@Z)".
    vtkIO.lib(vtkTIFFReader.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_vtk_TIFFClose" in Funktion ""public: void __thiscall vtkTIFFReaderInternal::Clean(void)" (?Clean@vtkTIFFReaderInternal@@QAEXXZ)".
    vtkIO.lib(vtkTIFFReader.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_vtk_TIFFSetWarningHandler" in Funktion ""public: __thiscall vtkTIFFReaderInternal::vtkTIFFReaderInternal(void)" (??0vtkTIFFReaderInternal@@QAE@XZ)".
    vtkIO.lib(vtkTIFFReader.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_vtk_TIFFSetErrorHandler" in Funktion ""public: __thiscall vtkTIFFReaderInternal::vtkTIFFReaderInternal(void)" (??0vtkTIFFReaderInternal@@QAE@XZ)".
    vtkIO.lib(vtkTIFFReader.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_vtk_TIFFGetFieldDefaulted" in Funktion ""public: int __thiscall vtkTIFFReaderInternal::Initialize(void)" (?Initialize@vtkTIFFReaderInternal@@QAEHXZ)".
    vtkIO.lib(vtkTIFFReader.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_vtk_TIFFSetDirectory" in Funktion ""public: int __thiscall vtkTIFFReaderInternal::Initialize(void)" (?Initialize@vtkTIFFReaderInternal@@QAEHXZ)".
    vtkIO.lib(vtkTIFFReader.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_vtk_TIFFReadDirectory" in Funktion ""public: int __thiscall vtkTIFFReaderInternal::Initialize(void)" (?Initialize@vtkTIFFReaderInternal@@QAEHXZ)".
    vtkIO.lib(vtkTIFFReader.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_vtk_TIFFNumberOfTiles" in Funktion ""public: int __thiscall vtkTIFFReaderInternal::Initialize(void)" (?Initialize@vtkTIFFReaderInternal@@QAEHXZ)".
    vtkIO.lib(vtkTIFFReader.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_vtk_TIFFIsTiled" in Funktion ""public: int __thiscall vtkTIFFReaderInternal::Initialize(void)" (?Initialize@vtkTIFFReaderInternal@@QAEHXZ)".
    vtkIO.lib(vtkTIFFReader.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_vtk_TIFFNumberOfDirectories" in Funktion ""public: int __thiscall vtkTIFFReaderInternal::Initialize(void)" (?Initialize@vtkTIFFReaderInternal@@QAEHXZ)".
    vtkIO.lib(vtkTIFFReader.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_vtk_TIFFGetField" in Funktion ""public: int __thiscall vtkTIFFReaderInternal::Initialize(void)" (?Initialize@vtkTIFFReaderInternal@@QAEHXZ)".
    vtkIO.lib(vtkTIFFReader.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_vtk_TIFFReadRGBAImage" in Funktion ""public: virtual void __thiscall vtkTIFFReader::ReadVolume(void *)" (?ReadVolume@vtkTIFFReader@@UAEXPAX@Z)".
    vtkIO.lib(vtkTIFFReader.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_vtk_TIFFReadTile" in Funktion ""public: virtual void __thiscall vtkTIFFReader::ReadTiles(void *)" (?ReadTiles@vtkTIFFReader@@UAEXPAX@Z)".
    vtkIO.lib(vtkTIFFReader.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_vtk__TIFFfree" in Funktion ""protected: void __thiscall vtkTIFFReader::ReadTwoSamplesPerPixelImage(void *,unsigned int,unsigned int)" (?ReadTwoSamplesPerPixelImage@vtkTIFFReader@@IAEXPAXII@Z)".
    vtkIO.lib(vtkTIFFReader.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_vtk_TIFFReadScanline" in Funktion ""protected: void __thiscall vtkTIFFReader::ReadTwoSamplesPerPixelImage(void *,unsigned int,unsigned int)" (?ReadTwoSamplesPerPixelImage@vtkTIFFReader@@IAEXPAXII@Z)".
    vtkIO.lib(vtkTIFFReader.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_vtk__TIFFmalloc" in Funktion ""protected: void __thiscall vtkTIFFReader::ReadTwoSamplesPerPixelImage(void *,unsigned int,unsigned int)" (?ReadTwoSamplesPerPixelImage@vtkTIFFReader@@IAEXPAXII@Z)".
    vtkIO.lib(vtkTIFFReader.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_vtk_TIFFScanlineSize" in Funktion ""protected: void __thiscall vtkTIFFReader::ReadTwoSamplesPerPixelImage(void *,unsigned int,unsigned int)" (?ReadTwoSamplesPerPixelImage@vtkTIFFReader@@IAEXPAXII@Z)".
    vtkIO.lib(vtkJPEGReader.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_vtk_jpeg_calc_output_dimensions" in Funktion ""protected: virtual void __thiscall vtkJPEGReader::ExecuteInformation(void)" (?ExecuteInformation@vtkJPEGReader@@MAEXXZ)".
    vtkIO.lib(vtkJPEGReader.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_vtk_jpeg_read_header" in Funktion ""protected: virtual void __thiscall vtkJPEGReader::ExecuteInformation(void)" (?ExecuteInformation@vtkJPEGReader@@MAEXXZ)".
    vtkIO.lib(vtkJPEGReader.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_vtk_jpeg_stdio_src" in Funktion ""protected: virtual void __thiscall vtkJPEGReader::ExecuteInformation(void)" (?ExecuteInformation@vtkJPEGReader@@MAEXXZ)".
    vtkIO.lib(vtkJPEGReader.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_vtk_jpeg_CreateDecompress" in Funktion ""protected: virtual void __thiscall vtkJPEGReader::ExecuteInformation(void)" (?ExecuteInformation@vtkJPEGReader@@MAEXXZ)".
    vtkIO.lib(vtkJPEGReader.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_vtk_jpeg_destroy_decompress" in Funktion ""protected: virtual void __thiscall vtkJPEGReader::ExecuteInformation(void)" (?ExecuteInformation@vtkJPEGReader@@MAEXXZ)".
    vtkIO.lib(vtkJPEGReader.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_vtk_jpeg_std_error" in Funktion ""protected: virtual void __thiscall vtkJPEGReader::ExecuteInformation(void)" (?ExecuteInformation@vtkJPEGReader@@MAEXXZ)".
    vtkIO.lib(vtkJPEGReader.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_vtk_jpeg_finish_decompress" in Funktion ""int __cdecl vtkJPEGReaderUpdate2<double>(class vtkJPEGReader *,double *,int *,int *,long)" (??$vtkJPEGReaderUpdate2@N@@YAHPAVvtkJPEGReader@@PANPAH2J@Z)".
    vtkIO.lib(vtkJPEGReader.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_vtk_jpeg_read_scanlines" in Funktion ""int __cdecl vtkJPEGReaderUpdate2<double>(class vtkJPEGReader *,double *,int *,int *,long)" (??$vtkJPEGReaderUpdate2@N@@YAHPAVvtkJPEGReader@@PANPAH2J@Z)".
    vtkIO.lib(vtkJPEGReader.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_vtk_jpeg_start_decompress" in Funktion ""int __cdecl vtkJPEGReaderUpdate2<double>(class vtkJPEGReader *,double *,int *,int *,long)" (??$vtkJPEGReaderUpdate2@N@@YAHPAVvtkJPEGReader@@PANPAH2J@Z)".
    vtkIO.lib(vtkXMLParser.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_vtk_expat_XML_ParserFree" in Funktion ""public: virtual int __thiscall vtkXMLParser::Parse(void)" (?Parse@vtkXMLParser@@UAEHXZ)".
    vtkIO.lib(vtkXMLParser.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_vtk_expat_XML_Parse" in Funktion ""public: virtual int __thiscall vtkXMLParser::Parse(void)" (?Parse@vtkXMLParser@@UAEHXZ)".
    vtkIO.lib(vtkXMLParser.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_vtk_expat_XML_SetUserData" in Funktion ""public: virtual int __thiscall vtkXMLParser::Parse(void)" (?Parse@vtkXMLParser@@UAEHXZ)".
    vtkIO.lib(vtkXMLParser.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_vtk_expat_XML_SetCharacterDataHandler" in Funktion ""public: virtual int __thiscall vtkXMLParser::Parse(void)" (?Parse@vtkXMLParser@@UAEHXZ)".
    vtkIO.lib(vtkXMLParser.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_vtk_expat_XML_SetElementHandler" in Funktion ""public: virtual int __thiscall vtkXMLParser::Parse(void)" (?Parse@vtkXMLParser@@UAEHXZ)".
    vtkIO.lib(vtkXMLParser.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_vtk_expat_XML_ParserCreate" in Funktion ""protected: virtual int __thiscall vtkXMLParser::CreateParser(void)" (?CreateParser@vtkXMLParser@@MAEHXZ)".
    vtkIO.lib(vtkXMLParser.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_vtk_expat_XML_GetCurrentLineNumber" in Funktion ""protected: virtual void __thiscall vtkXMLParser::ReportXmlParseError(void)" (?ReportXmlParseError@vtkXMLParser@@MAEXXZ)".
    vtkIO.lib(vtkXMLParser.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_vtk_expat_XML_GetCurrentColumnNumber" in Funktion ""protected: virtual void __thiscall vtkXMLParser::ReportXmlParseError(void)" (?ReportXmlParseError@vtkXMLParser@@MAEXXZ)".
    vtkIO.lib(vtkXMLParser.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_vtk_expat_XML_GetCurrentByteIndex" in Funktion ""protected: virtual void __thiscall vtkXMLParser::ReportXmlParseError(void)" (?ReportXmlParseError@vtkXMLParser@@MAEXXZ)".
    vtkIO.lib(vtkXMLParser.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_vtk_expat_XML_ErrorString" in Funktion ""protected: virtual void __thiscall vtkXMLParser::ReportXmlParseError(void)" (?ReportXmlParseError@vtkXMLParser@@MAEXXZ)".
    vtkIO.lib(vtkXMLParser.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_vtk_expat_XML_GetErrorCode" in Funktion ""protected: virtual void __thiscall vtkXMLParser::ReportXmlParseError(void)" (?ReportXmlParseError@vtkXMLParser@@MAEXXZ)".
    

    Leider hatte es sonst keine Auswirkungen...



  • Rub schrieb:

    Ich habe die lib im Linker (zusätzliche Abhängigkeiten) eingetragen. Unter VC++-Verzeichnisse habe ich einen Pfad auf den Ordner mit den lib hinzugefügt gehabt.
    Die Fehlerausgabe nach dem ich die zusätzlichen Abhängigkeitn eingetragen habe hat sich geändert:

    Du hast also eine lib eingetragen? Oder mehrere? Jedenfalls hast du ja schon was bewirkt. Die ursprünglichen Linker-Fehler sind weg, soweit ich auf den ersten Blick sehe. Das heißt, dass der Linker die Definitionen dieser Funktionen findet. Nur fehlt noch ein wenig mehr. Wie gesagt, ich habe von VTK keinen Plan. Aber eine kurze Google-Recherche hat ergeben, dass es da einige libs gibt. Beispielsweise fehlen dir alle Funktionen vom vtksys-Namespace. Es gibt eine vtksys.lib. Wenn du diese nun auch einträgst (mehrere libs mit Semikolon in der Liste trennen), sollten wieder einige Fehlermeldungen verschwinden.



  • Ich und mein Rechner danken dir wie verrückt! 👍 Es funktioniert - ich musste noch ein paar weitere *.lib hinzufügen und dann ... Tada! 😮



  • Dieser Thread wurde von Moderator/in CStoll aus dem Forum C++ (auch C++0x) in das Forum Andere GUIs - Qt, GTK+, wxWidgets verschoben.

    Im Zweifelsfall bitte auch folgende Hinweise beachten:
    C/C++ Forum :: FAQ - Sonstiges :: Wohin mit meiner Frage?

    Dieses Posting wurde automatisch erzeugt.


Anmelden zum Antworten