[vtkusers] error in vtk building

Luca Cinquepalmi cinquepalmi at planetek.it
Mon Jan 24 07:19:09 EST 2011


Hi everybody,
I tried to compile VTK using Cygwin. I first successfully configured and 
generated cmake-2.8.3. then I type the following comand:

ccmake ../VTK

the building start normally, but at about 24%, when it start to compile 
/cygvtkftgl-5.6.dll, the following errors occur:

Linking CXX shared library ../../bin/cygvtkftgl-5.6.dll
Creating library file: ../../bin/libvtkftgl.dll.a
CMakeFiles/vtkftgl.dir/src/FTBitmapGlyphRenderOpenGL.cpp.o:FTBitmapGlyphRenderOp
enGL.cpp:(.text+0x6b): undefined reference to `_glBitmap'
CMakeFiles/vtkftgl.dir/src/FTBitmapGlyphRenderOpenGL.cpp.o:FTBitmapGlyphRenderOp
enGL.cpp:(.text+0xb1): undefined reference to `_glBitmap'
CMakeFiles/vtkftgl.dir/src/FTBitmapGlyphRenderOpenGL.cpp.o:FTBitmapGlyphRenderOp
enGL.cpp:(.text+0x120): undefined reference to `_glBitmap'
CMakeFiles/vtkftgl.dir/src/FTGLBitmapFontRenderOpenGL.cpp.o:FTGLBitmapFontRender
OpenGL.cpp:(.text+0xe): undefined reference to `_glPushClientAttrib'
CMakeFiles/vtkftgl.dir/src/FTGLBitmapFontRenderOpenGL.cpp.o:FTGLBitmapFontRender
OpenGL.cpp:(.text+0x1a): undefined reference to `_glPushAttrib'
CMakeFiles/vtkftgl.dir/src/FTGLBitmapFontRenderOpenGL.cpp.o:FTGLBitmapFontRender
OpenGL.cpp:(.text+0x2e): undefined reference to `_glPixelStorei'
CMakeFiles/vtkftgl.dir/src/FTGLBitmapFontRenderOpenGL.cpp.o:FTGLBitmapFontRender
OpenGL.cpp:(.text+0x42): undefined reference to `_glPixelStorei'
CMakeFiles/vtkftgl.dir/src/FTGLBitmapFontRenderOpenGL.cpp.o:FTGLBitmapFontRender
OpenGL.cpp:(.text+0x56): undefined reference to `_glPixelStorei'
CMakeFiles/vtkftgl.dir/src/FTGLBitmapFontRenderOpenGL.cpp.o:FTGLBitmapFontRender
OpenGL.cpp:(.text+0x62): undefined reference to `_glDisable'
CMakeFiles/vtkftgl.dir/src/FTGLBitmapFontRenderOpenGL.cpp.o:FTGLBitmapFontRender
OpenGL.cpp:(.text+0x80): undefined reference to `_glPopAttrib'
CMakeFiles/vtkftgl.dir/src/FTGLBitmapFontRenderOpenGL.cpp.o:FTGLBitmapFontRender
OpenGL.cpp:(.text+0x85): undefined reference to `_glPopClientAttrib'
CMakeFiles/vtkftgl.dir/src/FTGLBitmapFontRenderOpenGL.cpp.o:FTGLBitmapFontRender
OpenGL.cpp:(.text+0x9a): undefined reference to `_glPushClientAttrib'
CMakeFiles/vtkftgl.dir/src/FTGLBitmapFontRenderOpenGL.cpp.o:FTGLBitmapFontRender
OpenGL.cpp:(.text+0xa6): undefined reference to `_glPushAttrib'
CMakeFiles/vtkftgl.dir/src/FTGLBitmapFontRenderOpenGL.cpp.o:FTGLBitmapFontRender
OpenGL.cpp:(.text+0xba): undefined reference to `_glPixelStorei'
CMakeFiles/vtkftgl.dir/src/FTGLBitmapFontRenderOpenGL.cpp.o:FTGLBitmapFontRender
OpenGL.cpp:(.text+0xce): undefined reference to `_glPixelStorei'
CMakeFiles/vtkftgl.dir/src/FTGLBitmapFontRenderOpenGL.cpp.o:FTGLBitmapFontRender
OpenGL.cpp:(.text+0xe2): undefined reference to `_glPixelStorei'
CMakeFiles/vtkftgl.dir/src/FTGLBitmapFontRenderOpenGL.cpp.o:FTGLBitmapFontRender
OpenGL.cpp:(.text+0xee): undefined reference to `_glDisable'
CMakeFiles/vtkftgl.dir/src/FTGLBitmapFontRenderOpenGL.cpp.o:FTGLBitmapFontRender
OpenGL.cpp:(.text+0x10c): undefined reference to `_glPopAttrib'
CMakeFiles/vtkftgl.dir/src/FTGLBitmapFontRenderOpenGL.cpp.o:FTGLBitmapFontRender
OpenGL.cpp:(.text+0x111): undefined reference to `_glPopClientAttrib'
CMakeFiles/vtkftgl.dir/src/FTGLPixmapFontRenderOpenGL.cpp.o:FTGLPixmapFontRender
OpenGL.cpp:(.text+0xe): undefined reference to `_glPushClientAttrib'
CMakeFiles/vtkftgl.dir/src/FTGLPixmapFontRenderOpenGL.cpp.o:FTGLPixmapFontRender
OpenGL.cpp:(.text+0x1a): undefined reference to `_glPushAttrib'
CMakeFiles/vtkftgl.dir/src/FTGLPixmapFontRenderOpenGL.cpp.o:FTGLPixmapFontRender
OpenGL.cpp:(.text+0x2e): undefined reference to `_glPixelStorei'
CMakeFiles/vtkftgl.dir/src/FTGLPixmapFontRenderOpenGL.cpp.o:FTGLPixmapFontRender
OpenGL.cpp:(.text+0x3a): undefined reference to `_glEnable'
CMakeFiles/vtkftgl.dir/src/FTGLPixmapFontRenderOpenGL.cpp.o:FTGLPixmapFontRender
OpenGL.cpp:(.text+0x4e): undefined reference to `_glBlendFunc'
CMakeFiles/vtkftgl.dir/src/FTGLPixmapFontRenderOpenGL.cpp.o:FTGLPixmapFontRender
OpenGL.cpp:(.text+0x5a): undefined reference to `_glDisable'
CMakeFiles/vtkftgl.dir/src/FTGLPixmapFontRenderOpenGL.cpp.o:FTGLPixmapFontRender
OpenGL.cpp:(.text+0x78): undefined reference to `_glPopAttrib'
CMakeFiles/vtkftgl.dir/src/FTGLPixmapFontRenderOpenGL.cpp.o:FTGLPixmapFontRender
OpenGL.cpp:(.text+0x7d): undefined reference to `_glPopClientAttrib'
CMakeFiles/vtkftgl.dir/src/FTGLPixmapFontRenderOpenGL.cpp.o:FTGLPixmapFontRender
OpenGL.cpp:(.text+0x92): undefined reference to `_glPushClientAttrib'
CMakeFiles/vtkftgl.dir/src/FTGLPixmapFontRenderOpenGL.cpp.o:FTGLPixmapFontRender
OpenGL.cpp:(.text+0x9e): undefined reference to `_glPushAttrib'
CMakeFiles/vtkftgl.dir/src/FTGLPixmapFontRenderOpenGL.cpp.o:FTGLPixmapFontRender
OpenGL.cpp:(.text+0xb2): undefined reference to `_glPixelStorei'
CMakeFiles/vtkftgl.dir/src/FTGLPixmapFontRenderOpenGL.cpp.o:FTGLPixmapFontRender
OpenGL.cpp:(.text+0xbe): undefined reference to `_glEnable'
CMakeFiles/vtkftgl.dir/src/FTGLPixmapFontRenderOpenGL.cpp.o:FTGLPixmapFontRender
OpenGL.cpp:(.text+0xd2): undefined reference to `_glBlendFunc'
CMakeFiles/vtkftgl.dir/src/FTGLPixmapFontRenderOpenGL.cpp.o:FTGLPixmapFontRender
OpenGL.cpp:(.text+0xde): undefined reference to `_glDisable'
CMakeFiles/vtkftgl.dir/src/FTGLPixmapFontRenderOpenGL.cpp.o:FTGLPixmapFontRender
OpenGL.cpp:(.text+0xfc): undefined reference to `_glPopAttrib'
CMakeFiles/vtkftgl.dir/src/FTGLPixmapFontRenderOpenGL.cpp.o:FTGLPixmapFontRender
OpenGL.cpp:(.text+0x101): undefined reference to `_glPopClientAttrib'
CMakeFiles/vtkftgl.dir/src/FTPixmapGlyphRenderOpenGL.cpp.o:FTPixmapGlyphRenderOp
enGL.cpp:(.text+0x6a): undefined reference to `_glBitmap'
CMakeFiles/vtkftgl.dir/src/FTPixmapGlyphRenderOpenGL.cpp.o:FTPixmapGlyphRenderOp
enGL.cpp:(.text+0x9c): undefined reference to `_glDrawPixels'
CMakeFiles/vtkftgl.dir/src/FTPixmapGlyphRenderOpenGL.cpp.o:FTPixmapGlyphRenderOp
enGL.cpp:(.text+0x10b): undefined reference to `_glBitmap'
CMakeFiles/vtkftgl.dir/src/FTPixmapGlyphRenderOpenGL.cpp.o:FTPixmapGlyphRenderOp
enGL.cpp:(.text+0x127): undefined reference to `_glGetFloatv'
collect2: ld returned 1 exit status
make[2]: *** [bin/cygvtkftgl-5.6.dll] Error 1
make[1]: *** [Utilities/ftgl/CMakeFiles/vtkftgl.dir/all] Error 2
make: *** [all] Error 2

I don't understand where the problem is. can anybody help me? Thanks a lot.

Luca


Il 20/01/2011 9.44, Luca Cinquepalmi ha scritto:
> Hi users, when I compile vtk with cmake in Windows, the following 
> error occurs:
>
> CMake Error at C:/Programmi/CMake 
> 2.8/share/cmake-2.8/Modules/TestBigEndian.cmake:44 (MESSAGE):
>
> no suitable type found
>
> Call Stack (most recent call first):
>
> CMake/CMakeBackwardCompatibilityC.cmake:31 (TEST_BIG_ENDIAN)
>
> CMakeLists.txt:428 (INCLUDE)
>
>
> What does it mean? shall I modify some option? thanks
>
> Luca
>
>
>
>
>
> Il 20/01/2011 0.21, Xiaopeng Yang ha scritto:
>>
>> Hi users,
>>
>> I raised a question in my previous email, but still I could not see 
>> any suggestion or advice from you. Please give me a hand if anyone of 
>> you knows how to solve the problem. I would appreciate very much!
>>
>> Thanks,
>>
>> Yang
>>
>> *From:*vtkusers-bounces at vtk.org [mailto:vtkusers-bounces at vtk.org] *On 
>> Behalf Of *Xiaopeng Yang
>> *Sent:* Wednesday, January 19, 2011 6:29 PM
>> *To:* 'vtk'; insight-users at itk.org
>> *Subject:* [vtkusers] Polydata volume calculation problem
>>
>> Dear VTK and ITK users,
>>
>> I tried to calculate polydata volume through vtkMassProperties. 
>> Firstly, the polydata was generated from a set of 3D points. Then I 
>> applied vtkSurfaceReconstructionFilter to generate a surface. And 
>> then a contour was generated by vtkContourFilter. After several other 
>> steps, I got the volume by vtkMassProperties.
>>
>> The problem is:
>>
>> 1.Whether my code is proper to calculate polydata volume?
>>
>> 2.When I change the SetValue(0, 10) of vtkContourFilter to some value 
>> else, for example, SetValue(0, 20), the calculated volumes under the 
>> two conditions are very different. What value is proper to calculate 
>> volume?
>>
>> 3.What is the correct way to calculate polydata volume?
>>
>> Thanks very much! The following is the code:
>>
>>         for(i = 0; i < spl_max; i++)
>>
>>               {
>>
>>                      
>> points->InsertNextPoint(segment_point_list[i][0], 
>> segment_point_list[i][1], segment_point_list[i][2]);
>>
>>               }
>>
>>         polydata->SetPoints(points);
>>
>>         vtkSurfaceReconstructionFilter *surf = 
>> vtkSurfaceReconstructionFilter::New();
>>
>>         surf->SetInput(polydata);
>>
>>         vtkContourFilter *contours = vtkContourFilter::New();
>>
>>         contours->SetInputConnection(surf->GetOutputPort());
>>
>>         contours->SetValue(0,10);
>>
>> // # Extract boundary edges
>>
>>         vtkFeatureEdges *boundary = vtkFeatureEdges::New();
>>
>>         boundary->BoundaryEdgesOn();
>>
>>         boundary->FeatureEdgesOff();
>>
>>         boundary->ManifoldEdgesOff();
>>
>>         boundary->NonManifoldEdgesOff();
>>
>>         boundary->SetInputConnection(contours->GetOutputPort());
>>
>> // # Build a polyline from boundary edges
>>
>>         vtkStripper *stripper = vtkStripper::New();
>>
>>         stripper->SetInputConnection(boundary->GetOutputPort());
>>
>>         stripper->Update();
>>
>>         vtkPolyData *holePoly = vtkPolyData::New();
>>
>>         holePoly->SetPoints(stripper->GetOutput()->GetPoints());
>>
>>         holePoly->SetPolys(stripper->GetOutput()->GetLines());
>>
>> // # Triangulate hole
>>
>>         vtkTriangleFilter *filler = vtkTriangleFilter::New();
>>
>>         filler->SetInput(holePoly);
>>
>> // # Combine into a single polydata
>>
>>         vtkAppendPolyData *apd = vtkAppendPolyData::New();
>>
>>         apd->AddInputConnection(contours->GetOutputPort());
>>
>>         apd->AddInputConnection(filler->GetOutputPort());
>>
>> // # Merge duplicate points
>>
>>         vtkCleanPolyData *cleaner = vtkCleanPolyData::New();
>>
>>         cleaner->AddInputConnection(apd->GetOutputPort());
>>
>> // # Add normals
>>
>>         vtkPolyDataNormals *apdNormals = vtkPolyDataNormals::New();
>>
>>         apdNormals->SetInputConnection(cleaner->GetOutputPort());
>>
>>         vtkReverseSense *reverse = vtkReverseSense::New();
>>
>>         reverse->SetInputConnection(apdNormals->GetOutputPort());
>>
>>         reverse->ReverseCellsOn();
>>
>>         reverse->ReverseNormalsOn();
>>
>>         vtkTriangleFilter *triangle = vtkTriangleFilter::New();
>>
>>         triangle->SetInputConnection(reverse->GetOutputPort());
>>
>>         vtkMassProperties *massProperty = vtkMassProperties::New();
>>
>>         massProperty->SetInputConnection(triangle->GetOutputPort());
>>
>>        massProperty->Update();
>>
>> double vol = massProperty->GetVolume();
>>
>>
>> _______________________________________________
>> Powered bywww.kitware.com
>>
>> Visit other Kitware open-source projects athttp://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the VTK FAQ at:http://www.vtk.org/Wiki/VTK_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtkusers
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110124/22be895c/attachment.htm>


More information about the vtkusers mailing list