[vtkusers] VTK on OSX

olivier Fedrigo ofedrigo at iastate.edu
Fri Jun 6 14:54:03 EDT 2003


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 





More information about the vtkusers mailing list