commontk/CTK — Issue #56: Linking error within CTKVisualizationVTKWidgetsCppTests on Fedora
Author: cmouton
Created: 2011-10-14 19:43:30+00:00
State: open

Hi,

I get linking error on building CTKVisualizationVTKWidgetsPlugins within /ctkVTKThresholdWidgetTest1.cpp :

Built target CTKVisualizationVTKWidgetsPlugins
Linking CXX executable ../../../../../../bin/CTKVisualizationVTKWidgetsCppTests
CMakeFiles/CTKVisualizationVTKWidgetsCppTests.dir/ctkVTKThresholdWidgetTest1.cpp.o: In function `ctkVTKThresholdWidgetTest1(int, char**)':
/home2/code/CTK/Libs/Visualization/VTK/Widgets/Testing/Cpp/ctkVTKThresholdWidgetTest1.cpp:83: undefined reference to `ctkVTKScalarsToColorsView::ctkVTKScalarsToColorsView(QWidget*)'
/home2/code/CTK/Libs/Visualization/VTK/Widgets/Testing/Cpp/ctkVTKThresholdWidgetTest1.cpp:84: undefined reference to `ctkVTKScalarsToColorsView::addOpacityFunction(vtkPiecewiseFunction*, bool)'
/home2/code/CTK/Libs/Visualization/VTK/Widgets/Testing/Cpp/ctkVTKThresholdWidgetTest1.cpp:83: undefined reference to `ctkVTKScalarsToColorsView::~ctkVTKScalarsToColorsView()'
/home2/code/CTK/Libs/Visualization/VTK/Widgets/Testing/Cpp/ctkVTKThresholdWidgetTest1.cpp:83: undefined reference to `ctkVTKScalarsToColorsView::~ctkVTKScalarsToColorsView()'
collect2: ld returned 1 exit status
make[5]: *** [bin/CTKVisualizationVTKWidgetsCppTests] Error 1
make[4]: *** [Libs/Visualization/VTK/Widgets/Testing/Cpp/CMakeFiles/CTKVisualizationVTKWidgetsCppTests.dir/all] Error 2
make[3]: *** [all] Error 2
make[2]: *** [CMakeFiles/CTK-build] Error 2
make[1]: *** [CMakeFiles/CTK-build.dir/all] Error 2
make: *** [all] Error 2

Regards