[vtkusers] VTK compile error: gcc 3.32, Solaris 10

Francois Bertel francois.bertel at kitware.com
Tue Oct 21 10:47:46 EDT 2008


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
>>
>> -----Original Message-----
>> From: vtkusers-bounces at vtk.org [mailto:vtkusers-bounces at vtk.org] On Behalf
>> Of Stephen Hamer
>> Sent: Tuesday, October 21, 2008 8:50 AM
>> To: 'VTK Users'
>> Subject: Re: [vtkusers] VTK compile error: gcc 3.32, Solaris 10
>>
>> I do not get any warnings before that. My CMakeCache.txt is attached. I'm
>> pretty sure the variables are good, but I haven't set it up on a Solaris
> 10
>> machine before, so I am not sure. I tried to grep for *__ GLXextFuncPtr,
> (as
>> "grep -rHn *__ GLXextFuncPtr /usr/")but was unsuccessful. I tried checking
>> the /usr directory, but grep is still running on that. I ran it on the
>> /usr/lib, /usr/local, /usr/include directories on the side, and found
>> nothing. I'm thinking the grep on /usr is on a directory recursion loop,
> it
>> has complained about that on one single occasion.
>>
>> Can you make a suggestion of where specifically I may find this entry in
> my
>> system or any other guesses?
>>
>> Thanks again for your help.
>>
>> -Stephen
>>
>> -----Original Message-----
>> From: vtkusers-bounces at vtk.org [mailto:vtkusers-bounces at vtk.org] On Behalf
>> Of Francois Bertel
>> Sent: Monday, October 20, 2008 12:00 PM
>> To: VTK Users
>> Subject: Re: [vtkusers] VTK compile error: gcc 3.32, Solaris 10
>>
>> Keep the conversation on the list, please.
>>
>> * Do you have any warning before that?
>> * can you attach your CMakeCache.txt (this file is at the root of your
>> VTK build directory)
>> * Can you grep for "*__GLXextFuncPtr" in your system? (from /usr)
>>
>> My guess (just a guess...) is your system defines
>>
>> typedef void (*__GLXextFuncPtr)();
>>
>> instead of
>>
>> typedef void (*__GLXextFuncPtr)(void); (as defined in
>> VTK/Utilities/ParseOGLExt/headers/glxext.h)
>>
>> in C, f() actually means f(int).
>>
>>
>>
>>
>> On Mon, Oct 20, 2008 at 11:06 AM, Stephen Hamer <sthamer at vt.edu> wrote:
>>> I am using VTK 5.2.0.
>>>
>>> -----Original Message-----
>>> From: vtkusers-bounces at vtk.org [mailto:vtkusers-bounces at vtk.org] On
> Behalf
>>> Of Francois Bertel
>>> Sent: Monday, October 20, 2008 10:53 AM
>>> To: vtkusers at vtk.org
>>> Subject: Re: [vtkusers] VTK compile error: gcc 3.32, Solaris 10
>>>
>>> Which version of VTK are use using? A release (4.4, 5.0.x, 5.2.x)? or VTK
>>> CVS ?
>>>
>>> On Mon, Oct 20, 2008 at 10:46 AM, Stephen Hamer <sthamer at vt.edu> wrote:
>>>> Hi vtkusers!
>>>>
>>>>
>>>>
>>>> I am new to this list, and sort of new to VTK. My problem though is
>>> building
>>>> it. I am using gcc 3.3.2, cmake 2.4.8, and make 3.8.1 on a Solaris 10
>>>> machine (not the native packages), and get the following error.
>>>>
>>>>
>>>>
>>>> [ 68%] Building CXX object
>>>>
>>>> Rendering/CMakeFiles/vtkRendering.dir/vtkOpenGLExtensionManager.o
>>>>
>>>> /packages/VTK/Rendering/vtkOpenGLExtensionManager.cxx: In member
> function
>>>> `virtual void (*vtkOpenGLExtensionManager::GetProcAddress(const
>>> char*))()':
>>>>
>>>> /packages/VTK/Rendering/vtkOpenGLExtensionManager.cxx:261: error:
> invalid
>>>> static_cast from type `void (*)(...)' to type `void (*)()'
>>>>
>>>> make[2]: ***
>>>> [Rendering/CMakeFiles/vtkRendering.dir/vtkOpenGLExtensionManager.o]
> Error
>>> 1
>>>>
>>>> make[1]: *** [Rendering/CMakeFiles/vtkRendering.dir/all] Error 2
>>>>
>>>> make: *** [all] Error 2
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> It seems like some sort of incompatibility with my gcc version, but I
>>> really
>>>> am not sure. I get something similar when building FTLK on the same
>>> machine.
>>>> I've searched the internet and this list and come up short for a
>> solution.
>>> I
>>>> was wondering if anyone has seen something like this before and could
>> help
>>>> me out. Thank you very much!
>>>>
>>>>
>>>>
>>>> -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
>>> _______________________________________________
>>> 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
>> _______________________________________________
>> 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
>>
>> _______________________________________________
>> 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
> _______________________________________________
> 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
>
> _______________________________________________
> 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



More information about the vtkusers mailing list