<div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,</blockquote><div><br>I&#39;m trying to build vtk-5.4.2 to use it with Qtcreator , when I run make to build the vtk source I got the following error, van anybody helps me?<br>
thanks<br>CMakeFiles/GraphicsCxxTests.dir/TestExtraction.o: In function `TestExtraction(int, char**)&#39;:<br>TestExtraction.cxx:(.text+0xc01): undefined reference to `vtkXMLDataSetWriter::New()&#39;<br>TestExtraction.cxx:(.text+0xc18): undefined reference to `vtkXMLWriter::SetInput(vtkDataObject*)&#39;<br>
TestExtraction.cxx:(.text+0xc45): undefined reference to `vtkXMLWriter::Write()&#39;<br>TestExtraction.cxx:(.text+0x1083): undefined reference to `vtkXMLWriter::SetInput(vtkDataObject*)&#39;<br>TestExtraction.cxx:(.text+0x10aa): undefined reference to `vtkXMLWriter::Write()&#39;<br>
TestExtraction.cxx:(.text+0x1603): undefined reference to `vtkXMLWriter::SetInput(vtkDataObject*)&#39;<br>TestExtraction.cxx:(.text+0x162a): undefined reference to `vtkXMLWriter::Write()&#39;<br>TestExtraction.cxx:(.text+0x1767): undefined reference to `vtkXMLWriter::SetInput(vtkDataObject*)&#39;<br>
TestExtraction.cxx:(.text+0x178e): undefined reference to `vtkXMLWriter::Write()&#39;<br>TestExtraction.cxx:(.text+0x1b91): undefined reference to `vtkXMLWriter::SetInput(vtkDataObject*)&#39;<br>TestExtraction.cxx:(.text+0x1bb8): undefined reference to `vtkXMLWriter::Write()&#39;<br>
TestExtraction.cxx:(.text+0x212c): undefined reference to `vtkXMLWriter::SetInput(vtkDataObject*)&#39;<br>TestExtraction.cxx:(.text+0x2153): undefined reference to `vtkXMLWriter::Write()&#39;<br>TestExtraction.cxx:(.text+0x2276): undefined reference to `vtkXMLWriter::SetInput(vtkDataObject*)&#39;<br>
TestExtraction.cxx:(.text+0x229d): undefined reference to `vtkXMLWriter::Write()&#39;<br>TestExtraction.cxx:(.text+0x26ca): undefined reference to `vtkXMLWriter::SetInput(vtkDataObject*)&#39;<br>TestExtraction.cxx:(.text+0x26f1): undefined reference to `vtkXMLWriter::Write()&#39;<br>
TestExtraction.cxx:(.text+0x2c8f): undefined reference to `vtkXMLWriter::SetInput(vtkDataObject*)&#39;<br>TestExtraction.cxx:(.text+0x2cb6): undefined reference to `vtkXMLWriter::Write()&#39;<br>TestExtraction.cxx:(.text+0x2dd9): undefined reference to `vtkXMLWriter::SetInput(vtkDataObject*)&#39;<br>
TestExtraction.cxx:(.text+0x2e00): undefined reference to `vtkXMLWriter::Write()&#39;<br>TestExtraction.cxx:(.text+0x31ab): undefined reference to `vtkXMLWriter::SetInput(vtkDataObject*)&#39;<br>TestExtraction.cxx:(.text+0x31d2): undefined reference to `vtkXMLWriter::Write()&#39;<br>
TestExtraction.cxx:(.text+0x36c1): undefined reference to `vtkXMLWriter::SetInput(vtkDataObject*)&#39;<br>TestExtraction.cxx:(.text+0x36e8): undefined reference to `vtkXMLWriter::Write()&#39;<br>TestExtraction.cxx:(.text+0x380b): undefined reference to `vtkXMLWriter::SetInput(vtkDataObject*)&#39;<br>
TestExtraction.cxx:(.text+0x3832): undefined reference to `vtkXMLWriter::Write()&#39;<br>TestExtraction.cxx:(.text+0x3c69): undefined reference to `vtkXMLWriter::SetInput(vtkDataObject*)&#39;<br>TestExtraction.cxx:(.text+0x3c90): undefined reference to `vtkXMLWriter::Write()&#39;<br>
TestExtraction.cxx:(.text+0x421f): undefined reference to `vtkXMLWriter::SetInput(vtkDataObject*)&#39;<br>TestExtraction.cxx:(.text+0x4246): undefined reference to `vtkXMLWriter::Write()&#39;<br>TestExtraction.cxx:(.text+0x4318): undefined reference to `vtkXMLWriter::SetInput(vtkDataObject*)&#39;<br>
TestExtraction.cxx:(.text+0x433f): undefined reference to `vtkXMLWriter::Write()&#39;<br>TestExtraction.cxx:(.text+0x487a): undefined reference to `vtkXMLWriter::SetInput(vtkDataObject*)&#39;<br>TestExtraction.cxx:(.text+0x48a1): undefined reference to `vtkXMLWriter::Write()&#39;<br>
TestExtraction.cxx:(.text+0x4e1c): undefined reference to `vtkXMLWriter::SetInput(vtkDataObject*)&#39;<br>TestExtraction.cxx:(.text+0x4e43): undefined reference to `vtkXMLWriter::Write()&#39;<br>TestExtraction.cxx:(.text+0x4f35): undefined reference to `vtkXMLWriter::SetInput(vtkDataObject*)&#39;<br>
TestExtraction.cxx:(.text+0x4f5c): undefined reference to `vtkXMLWriter::Write()&#39;<br>TestExtraction.cxx:(.text+0x502e): undefined reference to `vtkXMLWriter::SetInput(vtkDataObject*)&#39;<br>TestExtraction.cxx:(.text+0x5055): undefined reference to `vtkXMLWriter::Write()&#39;<br>
CMakeFiles/GraphicsCxxTests.dir/TestHyperOctreeToUniformGrid.o: In function `TestHyperOctreeToUniformGrid(int, char**)&#39;:<br>TestHyperOctreeToUniformGrid.cxx:(.text+0x4e2): undefined reference to `vtkXMLImageDataWriter::New()&#39;<br>
TestHyperOctreeToUniformGrid.cxx:(.text+0x53f): undefined reference to `vtkXMLWriter::SetDataModeToAscii()&#39;<br>TestHyperOctreeToUniformGrid.cxx:(.text+0x54a): undefined reference to `vtkXMLWriter::Write()&#39;<br>TestHyperOctreeToUniformGrid.cxx:(.text+0x990): undefined reference to `vtkXMLImageDataWriter::New()&#39;<br>
TestHyperOctreeToUniformGrid.cxx:(.text+0x9ed): undefined reference to `vtkXMLWriter::SetDataModeToAscii()&#39;<br>TestHyperOctreeToUniformGrid.cxx:(.text+0x9f8): undefined reference to `vtkXMLWriter::Write()&#39;<br>TestHyperOctreeToUniformGrid.cxx:(.text+0xe87): undefined reference to `vtkXMLImageDataWriter::New()&#39;<br>
TestHyperOctreeToUniformGrid.cxx:(.text+0xee4): undefined reference to `vtkXMLWriter::SetDataModeToAscii()&#39;<br>TestHyperOctreeToUniformGrid.cxx:(.text+0xeef): undefined reference to `vtkXMLWriter::Write()&#39;<br>CMakeFiles/GraphicsCxxTests.dir/TestTessellator.o: In function `TestTessellator(int, char**)&#39;:<br>
TestTessellator.cxx:(.text+0x28b5): undefined reference to `vtkXMLUnstructuredGridReader::New()&#39;<br>TestTessellator.cxx:(.text+0x2929): undefined reference to `vtkXMLUnstructuredGridReader::GetOutput()&#39;<br>CMakeFiles/GraphicsCxxTests.dir/TestHierarchicalBoxPipeline.o: In function `TestHierarchicalBoxPipeline(int, char**)&#39;:<br>
TestHierarchicalBoxPipeline.cxx:(.text+0x1c1): undefined reference to `vtkXMLHierarchicalBoxDataReader::New()&#39;<br>CMakeFiles/GraphicsCxxTests.dir/TestQuadraturePoints.o: In function `TestQuadraturePoints(int, char**)&#39;:<br>
TestQuadraturePoints.cxx:(.text+0x639): undefined reference to `vtkXMLUnstructuredGridReader::New()&#39;<br>TestQuadraturePoints.cxx:(.text+0x6df): undefined reference to `vtkXMLUnstructuredGridReader::GetOutput()&#39;<br>
TestQuadraturePoints.cxx:(.text+0x97d): undefined reference to `vtkXMLUnstructuredGridWriter::New()&#39;<br>TestQuadraturePoints.cxx:(.text+0x9c7): undefined reference to `vtkXMLWriter::SetInput(vtkDataObject*)&#39;<br>TestQuadraturePoints.cxx:(.text+0x9e4): undefined reference to `vtkXMLWriter::Write()&#39;<br>
TestQuadraturePoints.cxx:(.text+0x9fb): undefined reference to `vtkXMLUnstructuredGridReader::New()&#39;<br>TestQuadraturePoints.cxx:(.text+0xa36): undefined reference to `vtkXMLUnstructuredGridReader::GetOutput()&#39;<br>
CMakeFiles/GraphicsCxxTests.dir/TestQuadraturePointStatistics.o: In function `TestQuadraturePointStatistics(int, char**)&#39;:<br>TestQuadraturePointStatistics.cxx:(.text+0x458): undefined reference to `vtkXMLUnstructuredGridReader::New()&#39;<br>
TestQuadraturePointStatistics.cxx:(.text+0x4fe): undefined reference to `vtkXMLUnstructuredGridReader::GetOutput()&#39;<br>../../../bin/libvtkRendering.a(vtkProperty.o): In function `vtkProperty::LoadProperty()&#39;:<br>vtkProperty.cxx:(.text+0x2557): undefined reference to `vtkXMLMaterial::GetProperty(int)&#39;<br>
../../../bin/libvtkRendering.a(vtkProperty.o): In function `vtkProperty::LoadTexture(vtkXMLDataElement*)&#39;:<br>vtkProperty.cxx:(.text+0x3f9f): undefined reference to `vtkXMLShader::LocateFile(char const*)&#39;<br>../../../bin/libvtkRendering.a(vtkProperty.o): In function `vtkProperty::LoadTextures()&#39;:<br>
vtkProperty.cxx:(.text+0x4217): undefined reference to `vtkXMLMaterial::GetNumberOfTextures()&#39;<br>vtkProperty.cxx:(.text+0x423b): undefined reference to `vtkXMLMaterial::GetTexture(int)&#39;<br>../../../bin/libvtkRendering.a(vtkProperty.o): In function `vtkProperty::LoadMaterial(vtkXMLMaterial*)&#39;:<br>
vtkProperty.cxx:(.text+0x452a): undefined reference to `vtkXMLMaterial::GetShaderLanguage()&#39;<br>vtkProperty.cxx:(.text+0x453e): undefined reference to `vtkXMLMaterial::GetShaderStyle()&#39;<br>vtkProperty.cxx:(.text+0x4784): undefined reference to `vtkXMLMaterial::GetNumberOfVertexShaders()&#39;<br>
vtkProperty.cxx:(.text+0x4793): undefined reference to `vtkXMLMaterial::GetNumberOfFragmentShaders()&#39;<br>../../../bin/libvtkRendering.a(vtkProperty.o): In function `vtkProperty::LoadMaterialFromString(char const*)&#39;:<br>
vtkProperty.cxx:(.text+0x4980): undefined reference to `vtkXMLMaterialParser::New()&#39;<br>vtkProperty.cxx:(.text+0x4988): undefined reference to `vtkXMLMaterial::New()&#39;<br>vtkProperty.cxx:(.text+0x499d): undefined reference to `vtkXMLMaterialParser::SetMaterial(vtkXMLMaterial*)&#39;<br>
../../../bin/libvtkRendering.a(vtkProperty.o): In function `vtkProperty::LoadMaterial(char const*)&#39;:<br>vtkProperty.cxx:(.text+0x4a45): undefined reference to `vtkXMLMaterial::CreateInstance(char const*)&#39;<br>../../../bin/libvtkRendering.a(vtkShaderProgram.o): In function `vtkShaderProgram::ReadMaterial()&#39;:<br>
vtkShaderProgram.cxx:(.text+0xc63): undefined reference to `vtkXMLMaterial::GetNumberOfVertexShaders()&#39;<br>vtkShaderProgram.cxx:(.text+0xc9b): undefined reference to `vtkXMLMaterial::GetVertexShader(int)&#39;<br>vtkShaderProgram.cxx:(.text+0xe41): undefined reference to `vtkXMLMaterial::GetNumberOfFragmentShaders()&#39;<br>
vtkShaderProgram.cxx:(.text+0xe79): undefined reference to `vtkXMLMaterial::GetFragmentShader(int)&#39;<br>../../../bin/libvtkRendering.a(vtkOpenGLProperty.o): In function `vtkOpenGLProperty::ReadFrameworkMaterial()&#39;:<br>
vtkOpenGLProperty.cxx:(.text+0xa3a): undefined reference to `vtkXMLMaterial::GetNumberOfVertexShaders()&#39;<br>vtkOpenGLProperty.cxx:(.text+0xa69): undefined reference to `vtkXMLMaterial::GetVertexShader(int)&#39;<br>vtkOpenGLProperty.cxx:(.text+0xa9b): undefined reference to `vtkXMLShader::GetCode()&#39;<br>
vtkOpenGLProperty.cxx:(.text+0xc45): undefined reference to `vtkXMLMaterial::GetNumberOfFragmentShaders()&#39;<br>vtkOpenGLProperty.cxx:(.text+0xc74): undefined reference to `vtkXMLMaterial::GetFragmentShader(int)&#39;<br>
vtkOpenGLProperty.cxx:(.text+0xca6): undefined reference to `vtkXMLShader::GetCode()&#39;<br>../../../bin/libvtkRendering.a(vtkShader.o): In function `vtkShader::GetScope()&#39;:<br>vtkShader.cxx:(.text+0x6ee): undefined reference to `vtkXMLShader::GetScope()&#39;<br>
../../../bin/libvtkRendering.a(vtkGLSLShader.o): In function `vtkGLSLShader::LoadShader()&#39;:<br>vtkGLSLShader.cxx:(.text+0x17ec): undefined reference to `vtkXMLShader::GetScope()&#39;<br>../../../bin/libvtkRendering.a(vtkGLSLShader.o): In function `vtkGLSLShader::Compile()&#39;:<br>
vtkGLSLShader.cxx:(.text+0x1d86): undefined reference to `vtkXMLShader::GetCode()&#39;<br>vtkGLSLShader.cxx:(.text+0x20cd): undefined reference to `vtkXMLShader::GetName()&#39;<br>vtkGLSLShader.cxx:(.text+0x20f1): undefined reference to `vtkXMLShader::GetName()&#39;<br>
vtkGLSLShader.cxx:(.text+0x211f): undefined reference to `vtkXMLShader::GetCode()&#39;<br>vtkGLSLShader.cxx:(.text+0x22fd): undefined reference to `vtkXMLShader::GetName()&#39;<br>vtkGLSLShader.cxx:(.text+0x2321): undefined reference to `vtkXMLShader::GetName()&#39;<br>
collect2: ld returned 1 exit status<br>make[2]: ** [bin/GraphicsCxxTests] Erro 1<br>make[1]: ** [Graphics/Testing/Cxx/CMakeFiles/GraphicsCxxTests.dir/all] Erro 2<br>make: ** [all] Erro 2<br><br></div></div><br><br clear="all">
<br>-- <br>Jihan Zoghbi<br><br>