[vtkusers] VTK compile error: gcc 3.32, Solaris 10
sthamer at vt.edu
Mon Nov 3 12:18:06 EST 2008
That fixed the problem. Thank you very much. However, I have run across
another problem compiling a different library. Make stopped at 93% :(
The problem is stemming from "TestInstantiator," just after TestCxxFeatures
Linking CXX executable ../../../bin/TestInstantiator
Undefined first referenced
symbol in file
ld: fatal: Symbol referencing errors. No output written to
collect2: ld returned 1 exit status
make: *** [bin/TestInstantiator] Error 1
make: *** [Common/Testing/Cxx/CMakeFiles/TestInstantiator.dir/all] Error
make: *** [all] Error 2
The vtkCommon target DID build correctly, and vtkSocket.o built and linked
into the library. You have done very much to get me started here, and I
really appreciate the time you've taken to help me. Hopefully this one last
problem will be something simple that I just am not realizing. I've searched
around on the mail list again trying to find something to help me out here,
but I have not found anything.
I had make continue (make -k) and found no other errors. This is the last
problem with my build. It just seems to be a cryptic message.
From: vtkusers-bounces at vtk.org [mailto:vtkusers-bounces at vtk.org] On Behalf
Of Francois Bertel
Sent: Friday, October 24, 2008 10:14 PM
To: VTK Users
Subject: Re: [vtkusers] VTK compile error: gcc 3.32, Solaris 10
At line 261 of VTK/Rendering/vtkOpenGLExtensionManager.cxx,
can you replace the first static_cast by a reinterpret_cast, please?
Just replace this line:
by this line:
and tell me if it passes. I need your feedback for fixing VTK-5.2 and VTK
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
>>> > the native SUN distribution that came with Solaris. The only instance
>>> > file glxext.h on my computer is in the VTK folder, though. "glxinfo"
>>> > not exist on my computer, though files such as glx.h do. So, if
>>> > only exists in the VTK directory, where could the conflict be coming
>>> > checked all other GL* files on my computer for the __GLXextFuncPtr
>>> > well, it doesn't appear anywhere in my system than in the VTK
>>> > -----Original Message-----
>>> > From: vtkusers-bounces at vtk.org [mailto:vtkusers-bounces at vtk.org] On
>>> > 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
>>> >> the machine is complaining about has GL written ALL over it, and I
>>> >> have openGL on the machine. What specifically does VTK require as far
>>> >> 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:
>> Follow this link to subscribe/unsubscribe:
> 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
This is the private VTK discussion list.
Please keep messages on-topic. Check the FAQ at:
Follow this link to subscribe/unsubscribe:
More information about the vtkusers