[vtkusers] VTK compile error: gcc 3.32, Solaris 10
Francois Bertel
francois.bertel at kitware.com
Fri Oct 24 22:14:26 EDT 2008
Hello Stephen,
At line 261 of VTK/Rendering/vtkOpenGLExtensionManager.cxx,
can you replace the first static_cast by a reinterpret_cast, please?
Just replace this line:
return static_cast<vtkOpenGLExtensionManagerFunctionPointer>(glXGetProcAddress(reinterpret_cast<const
GLubyte *>(fname)));
by this line:
return reinterpret_cast<vtkOpenGLExtensionManagerFunctionPointer>(glXGetProcAddress(reinterpret_cast<const
GLubyte *>(fname)));
and tell me if it passes. I need your feedback for fixing VTK-5.2 and VTK CVS.
Regards.
On Tue, Oct 21, 2008 at 11:24 AM, Francois Bertel
<francois.bertel at kitware.com> wrote:
> Ok, this is the faulty line in your system glx.h:
>
> extern void (*glXGetProcAddress(const GLubyte *procname))();
>
> there is () instead of (void). On by default, in C, () means (int).
>
> For example, on Linux, I have /usr/include/GL/glx.h has:
> extern void (*glXGetProcAddressARB(const GLubyte *procName))(void);
>
> I'll see how I can work around this wrong system definition.
>
> On Tue, Oct 21, 2008 at 11:17 AM, <sthamer at vt.edu> wrote:
>> Here you are.
>>
>> Quoting Francois Bertel <francois.bertel at kitware.com>:
>>
>>> Can you attach you glx.h, please?
>>>
>>> On Tue, Oct 21, 2008 at 10:40 AM, Stephen Hamer <sthamer at vt.edu> wrote:
>>> > Getting more interesting... The install of GL/GLU/GLX on this computer is
>>> > the native SUN distribution that came with Solaris. The only instance of
>>> the
>>> > file glxext.h on my computer is in the VTK folder, though. "glxinfo" does
>>> > not exist on my computer, though files such as glx.h do. So, if glxext.h
>>> > only exists in the VTK directory, where could the conflict be coming from?
>>> I
>>> > checked all other GL* files on my computer for the __GLXextFuncPtr string
>>> as
>>> > well, it doesn't appear anywhere in my system than in the VTK directory.
>>> >
>>> >
>>> > -----Original Message-----
>>> > From: vtkusers-bounces at vtk.org [mailto:vtkusers-bounces at vtk.org] On Behalf
>>> > Of Francois Bertel
>>> > Sent: Tuesday, October 21, 2008 9:23 AM
>>> > To: VTK Users
>>> > Subject: Re: [vtkusers] VTK compile error: gcc 3.32, Solaris 10
>>> >
>>> > Hello Stephen,
>>> >
>>> > I think you actually have OpenGL because I found the following lines
>>> > in your CMakeCache.txt:
>>> >
>>> > //Path to a file.
>>> > OPENGL_INCLUDE_DIR:PATH=/usr/include
>>> >
>>> > //Path to a library.
>>> > OPENGL_gl_LIBRARY:FILEPATH=/usr/lib/libGL.so
>>> >
>>> > //Path to a library.
>>> > OPENGL_glu_LIBRARY:FILEPATH=/usr/lib/libGLU.so
>>> >
>>> > To be sure, you can try to see if you have glxinfo.
>>> > $ which glxinfo
>>> > and run it
>>> >
>>> > $ glxinfo
>>> >
>>> > and also find the shared libraries it depends on:
>>> > $ ldd `which glxinfo`
>>> >
>>> > __ GLXextFuncPtr is probably defined in glxext.h. There is one in
>>> > VTK/Utilities/ParseOGLExt/headers/ but in the system it should in
>>> > /usr/include or /usr/X11R6/ .
>>> >
>>> >
>>> >
>>> > On Tue, Oct 21, 2008 at 9:02 AM, Stephen Hamer <sthamer at vt.edu> wrote:
>>> >> Wait, this might be a more accurate question... I just realized that what
>>> >> the machine is complaining about has GL written ALL over it, and I don't
>>> >> have openGL on the machine. What specifically does VTK require as far as
>>> >> libraries and other dependencies? I have searched the site and
>>> > documentation
>>> >> up and down and have found nothing detailing that.
>>> >>
>>> >> -Stephen
>>> >>
>> _______________________________________________
>> 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
>>
>>
>
>
>
> --
> François Bertel, PhD | Kitware Inc. Suite 204
> 1 (518) 371 3971 x113 | 28 Corporate Drive
> | Clifton Park NY 12065, USA
>
--
François Bertel, PhD | Kitware Inc. Suite 204
1 (518) 371 3971 x113 | 28 Corporate Drive
| Clifton Park NY 12065, USA
More information about the vtkusers
mailing list