[vtkusers] VTK on OSX

Robb Brown brownr at ucalgary.ca
Mon Jun 9 12:53:45 EDT 2003


These symbols are from Apple's OpenGL library.  You may have to add 
"-framework AGL" to your gcc command.


On Friday, June 6, 2003, at 12:54 PM, olivier Fedrigo wrote:

> Thanks Chris,
>
> that was so helpful!!!!
> now it is building but I have a new error message and I cannot figure 
> out how to fix tit!
> It fails with errors:
>
> ld: undefined symbols:
>
> -aglChoosePixelFormat
> -aglCreatecontext
> -aglDescribeRenderer
> etc...
>
> It is very frustrating to deal with this kind of bugs one after the 
> other.
>
> thanks for your help.
>
> Olivier
>
> At 07:51 AM 6/6/03 -0500, you wrote:
>> At 1:06 PM -0500 06/05/2003, olivier Fedrigo wrote:
>> >I tried the sample code given on VTK web page (the drawing of the 
>> sphere) and I obtained the following errors:
>> >
>> >"invalid use of undefined type 'struct vtkProperty'"
>> >"forward declaration of 'struct vtkProperty'"
>> >
>> >any ideas?
>>
>> VTK uses a lot of forward declarations. It's a trade-off that makes 
>> compilation complete more quickly. Sometimes values are returned 
>> without their classes fully included. The consequence is that you may 
>> have to add a few more headers to your source code using VTK.
>>
>> In this case, you just need to add #include "vtkProperty.h" to your 
>> list of includes. Errors of the same type can usually be solved by 
>> including the appropriate header file. I have found vtkProperty and 
>> vtkImageData to be common offenders.
>>
>> Chris
>> --
>> Chris Scharver
>> Electronic Visualization Laboratory
>> The University of Illinois at Chicago
>> Ph: 312-996-3002   FAX: 312-413-7585
>> <http://www.evl.uic.edu/scharver/>
>
> Olivier Fédrigo
> 240 Science II
> Department of Zoology and Genetics
> Iowa State University
> Ames, IA 50011
> Lab:  (515) 294-4257  *  Office:  (515) 294-5080  * FAX:   (515) 
> 294-8457
> http://www.mbb.iastate.edu/~gnaylor/Olivier.html
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: 
> <http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>
>
_____________________________
Robb Brown
Seaman Family MR Center
Calgary, AB




More information about the vtkusers mailing list