advice reqd. on packaging vtk for linux

Prabhu Ramachandran prabhu at aero.iitm.ernet.in
Sun Apr 30 04:46:51 EDT 2000


hi,

>>>>> "Martin" == Ken Martin <ken.martin at kitware.com> writes:

    Martin> The safe thing to do is use --with-opengl (no mesa) and
    Martin> link it against -lGL as a shared library.  Our use of
    Martin> opengl is a subset of our use of mesagl. So compiling
    Martin> opengl and using a mesa shared library should work
    Martin> fine. If you try to use both on Linux you will run into
    Martin> problems because many accelerated OpenGL libraries use
    Martin> mesa internal functions which would conflict with the
    Martin> normal mesa library (even with mesa's name mangling turned
    Martin> on)

	I tried it out and added a new configure item --with-mesagl in 
configure.in such that 

----
if test "$use_mesagl" = "yes"; then
        GRAPHICS_API_OBJ="\${OGLR_OBJ}"
        GRAPHICS_API_FLAGS="\${MESA_INCLUDE} -DVTK_USE_OGLR"
        GRAPHICS_API_LIBS="\${MESA_LIB}"
fi
---

	I then compiled vtk --with-tcl and linked it with the normal
unaccelerated Mesa libs.  It worked perfectly (I ran some tcl examples
to test).  I also tried with the accelerated libGL (linked libMesaGL
to it) and it worked perfectly with acceleration.

Thanks.

prabhu
--------------------------------------------------------------------
This is the private VTK discussion list. Please keep messages on-topic.
Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
<majordomo at public.kitware.com>. For help, send message body containing
"info vtkusers" to the same address.
--------------------------------------------------------------------



More information about the vtkusers mailing list