[vtkusers] middle point
Zhang, Kewu (GE Healthcare, consultant)
kewu.zhang at ge.com
Wed Nov 15 17:14:45 EST 2006
Hi, all
is there any function can be used to calculate the middle point of the
closest approach between lines?
or I have to write my own ?
tks
________________________________
From: vtkusers-bounces+kewu.zhang=ge.com at vtk.org
[mailto:vtkusers-bounces+kewu.zhang=ge.com at vtk.org] On Behalf Of Shari
Rolnick
Sent: Wednesday, November 15, 2006 3:50 PM
To: 'Hoang Hoang'
Cc: vtkusers at vtk.org
Subject: RE: [vtkusers] Build Problem
I tried doing that, and ended up unable to build Mesa at all. I finally
managed to build it successfully by not building most of the demo
programs, and that seemed to work. I had all the necessary libraries.
However, the VTK build still fails in the exact same way. I'm at a loss
here - any other ideas what I may have done wrong?
Thanks!
Shari
________________________________
From: Hoang Hoang [mailto:hp1711 at gmail.com]
Sent: Tuesday, November 14, 2006 11:28 PM
To: Shari Rolnick
Cc: vtkusers at vtk.org
Subject: Re: [vtkusers] Build Problem
It depends on what platform you compiled Mesa. Say, if you use make
linux-x86 to build Mesa, you may also have to edit the configs/linux
with the same option.
good luck.
On 11/15/06, Shari Rolnick <shari at loralee.net> wrote:
I used these compiler flags in configs/default:
# Compiler and flags
CC = cc
CXX = CC
CFLAGS = -DUSE_MGL_NAMESPACE -O
CXXFLAGS = -DUSE_MGL_NAMESPACE -O
GLU_CFLAGS =
Is that right?
Thanks again!
Shari
________________________________
From: vtkusers-bounces+shari= loralee.net at vtk.org [mailto:
vtkusers-bounces+shari=loralee.net at vtk.org
<mailto:vtkusers-bounces+shari=loralee.net at vtk.org> ] On Behalf Of Hoang
Hoang
Sent: Tuesday, November 14, 2006 8:08 PM
To: Shari at loralee.net
Cc: vtkusers at vtk.org
Subject: Re: [vtkusers] Build Problem
did you add -DUSE_MGL_NAMESPACE option when compiled Mesa?
On 11/15/06, Shari Holstege < Shari at loralee.net
<mailto:Shari at loralee.net> > wrote:
Hi,
I'm trying to build VTK 5.0.2 with mangled Mesa support. I have
followed the instructions found at
http://www.vtk.org/Wiki/VTK:How_I_mangled_Mesa, but cannot build VTK.
I have listed the build errors below. Any help would be appreciated.
Thanks,
Shari
Linking CXX executable ../../bin/vtk
/home/shari/VTK/bin/libvtkVolumeRendering.so: undefined reference to
`mglPixelTransferf'
/home/shari/VTK/bin/libvtkRendering.so: undefined reference to
`mglTexCoord2dv'
/home/shari/VTK/bin/libvtkRendering.so: undefined reference to
`mglClearColor'
/home/shari/VTK/bin/libvtkRendering.so: undefined reference to
`mglLightModelfv'
/home/shari/VTK/bin/libvtkRendering.so: undefined reference to
`mglGetIntegerv'
/home/shari/VTK/bin/libvtkRendering.so: undefined reference to
`mglRasterPos2i'
/home/shari/VTK/bin/libvtkRendering.so: undefined reference to
`mglInitNames'
/home/shari/VTK/bin/libvtkRendering.so: undefined reference to
`mglIsTexture'
/home/shari/VTK/bin/libvtkRendering.so: undefined reference to
`mglVertex3dv'
/home/shari/VTK/bin/libvtkRendering.so: undefined reference to
`mglLightf'
/home/shari/VTK/bin/libvtkRendering.so: undefined reference to
`mglPolygonMode'
/home/shari/VTK/bin/libvtkRendering.so: undefined reference to
`mglMultMatrixf'
/home/shari/VTK/bin/libvtkRendering.so: undefined reference to
`mglDepthRange'
/home/shari/VTK/bin/libvtkVolumeRendering.so: undefined reference to
`mglPopMatrix'
/home/shari/VTK/bin/libvtkRendering.so: undefined reference to
`mglCallList'
/home/shari/VTK/bin/libvtkRendering.so: undefined reference to
`mglPixelStorei'
/home/shari/VTK/bin/libvtkRendering.so: undefined reference to
`mglXGetCurrentContext'
/home/shari/VTK/bin/libvtkRendering.so: undefined reference to
`mglDrawBuffer'
/home/shari/VTK/bin/libvtkRendering.so: undefined reference to
`mglNormal3fv'
/home/shari/VTK/bin/libvtkRendering.so: undefined reference to
`mglColor4ub'
/home/shari/VTK/bin/libvtkVolumeRendering.so: undefined reference to
`mglClipPlane'
/home/shari/VTK/bin/libvtkRendering.so: undefined reference to
`mglTexCoord1dv'
/home/shari/VTK/bin/libvtkRendering.so: undefined reference to
`mglClear'
/home/shari/VTK/bin/libvtkRendering.so: undefined reference to
`mglXChooseVisual'
/home/shari/VTK/bin/libvtkRendering.so: undefined reference to
`mglAlphaFunc'
/home/shari/VTK/bin/libvtkVolumeRendering.so: undefined reference to
`mglMultMatrixd'
/home/shari/VTK/bin/libvtkRendering.so: undefined reference to
`mglXQueryServerString'
/home/shari/VTK/bin/libvtkRendering.so: undefined reference to
`mglPushName'
/home/shari/VTK/bin/libvtkRendering.so: undefined reference to
`mglReadPixels'
/home/shari/VTK/bin/libvtkVolumeRendering.so: undefined reference to
`mglGenTextures'
/home/shari/VTK/bin/libvtkRendering.so: undefined reference to
`mglGetError'
/home/shari/VTK/bin/libvtkRendering.so: undefined reference to
`mglLineStipple'
/home/shari/VTK/bin/libvtkRendering.so: undefined reference to
`mglGenLists'
/home/shari/VTK/bin/libvtkRendering.so: undefined reference to
`mglDeleteLists'
/home/shari/VTK/bin/libvtkRendering.so: undefined reference to
`mglOrtho'
/home/shari/VTK/bin/libvtkRendering.so: undefined reference to
`mglVertex3d'
/home/shari/VTK/bin/libvtkRendering.so: undefined reference to
`mglTexCoord1fv'
/home/shari/VTK/bin/libvtkRendering.so: undefined reference to
`mglRasterPos2f'
/home/shari/VTK/bin/libvtkRendering.so: undefined reference to
`mglNormal3dv'
/home/shari/VTK/bin/libvtkRendering.so: undefined reference to
`mglXGetConfig'
/home/shari/VTK/bin/libvtkftgl.so: undefined reference to
`mglPopClientAttrib'
/home/shari/VTK/bin/libvtkRendering.so: undefined reference to
`mglXMakeCurrent'
/home/shari/VTK/bin/libvtkRendering.so: undefined reference to
`mglLighti'
/home/shari/VTK/bin/libvtkRendering.so: undefined reference to
`mglColor4dv'
/home/shari/VTK/bin/libvtkVolumeRendering.so: undefined reference to
`mglFlush'
/home/shari/VTK/bin/libvtkRendering.so: undefined reference to
`mglLoadIdentity'
/home/shari/VTK/bin/libvtkVolumeRendering.so: undefined reference to
`mglVertex3fv'
/home/shari/VTK/bin/libvtkRendering.so: undefined reference to
`mglTexEnvf'
/home/shari/VTK/bin/libvtkVolumeRendering.so: undefined reference to
`mglPushAttrib'
/home/shari/VTK/bin/libvtkRendering.so: undefined reference to
`mglPointSize'
/home/shari/VTK/bin/libvtkRendering.so: undefined reference to
`mglRenderMode'
/home/shari/VTK/bin/libvtkRendering.so: undefined reference to
`mglPolygonOffset'
/home/shari/VTK/bin/libvtkRendering.so: undefined reference to
`mglTexSubImage2D'
/home/shari/VTK/bin/libvtkRendering.so: undefined reference to
`mglXDestroyContext'
/home/shari/VTK/bin/libvtkRendering.so: undefined reference to
`mglClearDepth'
/home/shari/VTK/bin/libvtkRendering.so: undefined reference to
`mglXSwapBuffers'
/home/shari/VTK/bin/libvtkRendering.so: undefined reference to
`mglLoadName'
/home/shari/VTK/bin/libvtkRendering.so: undefined reference to
`mglDrawPixels'
/home/shari/VTK/bin/libvtkVolumeRendering.so: undefined reference to
`mglPushMatrix'
/home/shari/VTK/bin/libvtkVolumeRendering.so: undefined reference to
`mglTexImage2D'
/home/shari/VTK/bin/libvtkRendering.so: undefined reference to
`mglColor3ubv'
/home/shari/VTK/bin/libvtkftgl.so: undefined reference to `mglGetFloatv'
/home/shari/VTK/bin/libvtkRendering.so: undefined reference to
`mglRectf'
/home/shari/VTK/bin/libvtkRendering.so: undefined reference to
`mglLightfv'
/home/shari/VTK/bin/libvtkVolumeRendering.so: undefined reference to
`mglDeleteTextures'
/home/shari/VTK/bin/libvtkRendering.so: undefined reference to
`mglColorMaterial'
/home/shari/VTK/bin/libvtkVolumeRendering.so: undefined reference to
`mglDisable'
/home/shari/VTK/bin/libvtkRendering.so: undefined reference to
`mglLoadMatrixd'
/home/shari/VTK/bin/libvtkVolumeRendering.so: undefined reference to
`mglGetTexLevelParameteriv'
/home/shari/VTK/bin/libvtkRendering.so: undefined reference to
`mglPixelZoom'
/home/shari/VTK/bin/libvtkRendering.so: undefined reference to
`mglMaterialfv'
/home/shari/VTK/bin/libvtkRendering.so: undefined reference to
`mglShadeModel'
/home/shari/VTK/bin/libvtkRendering.so: undefined reference to
`mglXQueryExtension'
/home/shari/VTK/bin/libvtkVolumeRendering.so: undefined reference to
`mglPopAttrib'
/home/shari/VTK/bin/libvtkRendering.so: undefined reference to
`mglRasterPos3f'
/home/shari/VTK/bin/libvtkVolumeRendering.so: undefined reference to
`mglBegin'
/home/shari/VTK/bin/libvtkVolumeRendering.so: undefined reference to
`mglBindTexture'
/home/shari/VTK/bin/libvtkVolumeRendering.so: undefined reference to
`mglTexParameterf'
/home/shari/VTK/bin/libvtkVolumeRendering.so: undefined reference to
`mglBlendFunc'
/home/shari/VTK/bin/libvtkRendering.so: undefined reference to
`mglXGetClientString'
/home/shari/VTK/bin/libvtkftgl.so: undefined reference to
`mglPushClientAttrib'
/home/shari/VTK/bin/libvtkRendering.so: undefined reference to
`mglNewList'
/home/shari/VTK/bin/libvtkRendering.so: undefined reference to
`mglXIsDirect'
/home/shari/VTK/bin/libvtkVolumeRendering.so: undefined reference to
`mglMatrixMode'
/home/shari/VTK/bin/libvtkVolumeRendering.so: undefined reference to
`mglColor3f'
/home/shari/VTK/bin/libvtkRendering.so: undefined reference to
`mglDepthFunc'
/home/shari/VTK/bin/libvtkRendering.so: undefined reference to
`mglLineWidth'
/home/shari/VTK/bin/libvtkRendering.so: undefined reference to
`mglCullFace'
/home/shari/VTK/bin/libvtkRendering.so: undefined reference to
`mglLightModeli'
/home/shari/VTK/bin/libvtkVolumeRendering.so: undefined reference to
`mglDepthMask'
/home/shari/VTK/bin/libvtkRendering.so: undefined reference to
`mglBitmap'
/home/shari/VTK/bin/libvtkRendering.so: undefined reference to
`mglEndList'
/home/shari/VTK/bin/libvtkVolumeRendering.so: undefined reference to
`mglEnable'
/home/shari/VTK/bin/libvtkRendering.so: undefined reference to
`mglXCreateContext'
/home/shari/VTK/bin/libvtkRendering.so: undefined reference to
`mglColor4ubv'
/home/shari/VTK/bin/libvtkRendering.so: undefined reference to
`mglSelectBuffer'
/home/shari/VTK/bin/libvtkVolumeRendering.so: undefined reference to
`mglTexCoord2fv'
/home/shari/VTK/bin/libvtkRendering.so: undefined reference to
`mglScissor'
/home/shari/VTK/bin/libvtkRendering.so: undefined reference to
`mglFinish'
/home/shari/VTK/bin/libvtkVolumeRendering.so: undefined reference to
`mglEnd'
/home/shari/VTK/bin/libvtkRendering.so: undefined reference to
`mglReadBuffer'
/home/shari/VTK/bin/libvtkRendering.so: undefined reference to
`mglViewport'
/home/shari/VTK/bin/libvtkRendering.so: undefined reference to
`mglXQueryExtensionsString'
/home/shari/VTK/bin/libvtkRendering.so: undefined reference to
`mglColor4f'
/home/shari/VTK/bin/libvtkRendering.so: undefined reference to
`mglGetString'
collect2: ld returned 1 exit status
make[2]: *** [bin/vtk] Error 1
make[1]: *** [Wrapping/Tcl/CMakeFiles/vtk.dir/all] Error 2
make: *** [all] Error 2
_______________________________________________
This is the private VTK discussion list.
Please keep messages on-topic. Check the 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/20061115/3ac227a0/attachment.htm>
More information about the vtkusers
mailing list