[vtkusers] problems with OSMesa

Randy Heiland heiland at ncsa.uiuc.edu
Mon Feb 4 16:25:41 EST 2002


On Feb 4,  5:57pm, Jan Klemencic wrote:
> Subject: [vtkusers] problems with OSMesa
> Hello list!
>
> I wonder if the following compilation error message is familiar to
> somebody:
>
> /opt/vtk3.2/lib/libVTKImaging.so: undefined reference to
> `OSMesaMakeCurrent'
> /opt/vtk3.2/lib/libVTKImaging.so: undefined reference to
> `OSMesaCreateContext'
> /opt/vtk3.2/lib/libVTKImaging.so: undefined reference to
> `OSMesaDestroyContext'
>
> I get this message while compiling some software that relies on vtk. I
> have vtk3.2 installed (--with-mesa), on Mandrake Linux, the recent
> version. The Mesa version is 3.4.2. For a long time, I've been trying to
> solve this problem, and I'm stuck. I searched the past messages on the
> list, and found some people had similar problems, but I didn't find a
> solution that would work for me.
>
> I tried to download and compile Mesa myself, but it didn't help.
>
> Please, can somebody help me with this? I'm really getting desperate.
> Best regards,
> Jan Klemencic

Check your Makefile and verify that  -lOSMesa  is on the link line.  And under
VTK 4.0 anyway, I also had to manually append the path to the OSMesa lib on the
-rpath line, e.g.
 :<fullpathto>/Mesa-4.0/src/OSmesa/.libs

HTH,
--Randy



More information about the vtkusers mailing list