对符号'vtkImageAlgorithm :: GetOutput()'的未定义引用

时间:2015-07-26 08:19:09

标签: linux linker cmake makefile vtk

我想在Ubuntu中使用make构建一个项目。该项目包括VTK,Xerces和Cmake库。在构建时我收到以下错误:

Linking CXX static library libMA_LaTIM.a
     [ 96%] Built target MA_LaTIM
     Scanning dependencies of target MA_LaTIM_entrainement
     [100%] Building CXX object applications/CMakeFiles/MA_LaTIM_entrainement.dir/entrainement.cxx.o
Linking CXX executable MA_LaTIM_entrainement
    /usr/bin/ld: ../algorithmes/libMA_LaTIM.a(LecteurImage.cxx.o): undefined     reference to symbol 'vtkImageAlgorithm::GetOutput()'    
    /usr/bin/ld: note: 'vtkImageAlgorithm::GetOutput()' is defined in DSO     /usr/lib/libvtkFiltering.so.5.8 so try adding it to the linker command line
    /usr/lib/libvtkFiltering.so.5.8: could not read symbols: Invalid operation
collect2: ld returned 1 exit status

如何解决此问题?这是我的CMakeLists.txt,这是我的Makefile

0 个答案:

没有答案