[vtkusers] Compiling VTK with OpenGL

Pascale Beliveau beliveaup at gmail.com
Wed Aug 20 17:10:11 EDT 2008


Thanks, those messages are gone, but I now have unresolved errors such as:

vtkRendering.lib(vtkOpenGLTexture.obj) : error LNK2001: unresolved external
symbol __imp__glDeleteTextures at 8

am I missing a lib file? Sorry if I may ask basics questions, I am aware I'm
a beginner in this and appreciate your help,
Pascale


On 8/20/08, Francois Bertel <francois.bertel at kitware.com> wrote:

> You just missing #include <windows.h> before #include <GL/gl.h>. A classic.
>
> http://www.opengl.org/resources/faq/technical/gettingstarted.htm#0020
>
> PS: Keep the thread on the list please.
>
> On Wed, Aug 20, 2008 at 4:52 PM, Pascale Beliveau <beliveaup at gmail.com>
> wrote:
> > No, VTK was successfully compiled. This error message is happening when I
> am
> > compiling my own program. This problem appeared when I included #include
> > <GL/gl.h>
> >
> > Thanks for helping,
> > Pascale
> >
> >
> > On 8/20/08, Francois Bertel <francois.bertel at kitware.com> wrote:
> >>
> >> Is it happening when you are compiling VTK?
> >>
> >> On Wed, Aug 20, 2008 at 4:44 PM, Pascale Beliveau <beliveaup at gmail.com>
> >> wrote:
> >> > Hi VTK users,
> >> >
> >> >    I am relatively new with VTK, trying to install it and having
> >> > problems
> >> > with including the OpenGL file that will allow me to use the VTK
> viewer.
> >> > I
> >> > had the following error :
> >> >
> >> > C:\Program Files\Microsoft Visual Studio
> >> > 8\VC\PlatformSDK\include\GL/gl.h(1152) : error C2144: syntax error :
> >> > 'void'
> >> > should be preceded by ';'
> >> > C:\Program Files\Microsoft Visual Studio
> >> > 8\VC\PlatformSDK\include\GL/gl.h(1152) : error C4430: missing type
> >> > specifier
> >> > - int assumed. Note: C++ does not support default-int
> >> >
> >> > occuring on the following line:
> >> > WINGDIAPI void APIENTRY glAccum (GLenum op, GLfloat value);
> >> > of file: gl.h
> >> >
> >> > Does anyone have an idea what I am missing?
> >> >
> >> > Thanks in advance for the help!
> >> > Pascale
> >> > _______________________________________________
> >> > 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20080820/8fee426b/attachment.htm>


More information about the vtkusers mailing list