[vtkusers] Problems with VS 2005 and VTK (vtkrendering.lib)
mam06bhv
mam06bhv at studserv.uni-leipzig.de
Wed Nov 1 11:10:15 EST 2006
Hi
I've solved the problem but now I got these errors in the VTK-window
ERROR: In ..\..\VTK\Rendering\vtkWin32OpenGLRenderWindow.cxx, line 824
vtkWin32OpenGLRenderWindow (01970FD0): wglCreateContext failed in
CreateAWindow(), error: 1114
ERROR: In ..\..\VTK\Rendering\vtkWin32OpenGLRenderWindow.cxx, line 824
vtkWin32OpenGLRenderWindow (01970FD0): wglCreateContext failed in
CreateAWindow(), error: 0
ERROR: In ..\..\VTK\Rendering\vtkWin32OpenGLRenderWindow.cxx, line 824
vtkWin32OpenGLRenderWindow (01970FD0): wglCreateContext failed in
CreateAWindow(), error: 6
thanks for help
Prename Surname schrieb:
> Hello
> You probably did not use CMAKE to create your VS2005 project.
> You have to make a CMakeLists.txt that creates a vs2005 project, and
> sets up path for libs you are going to use.
> It is very important to do this....otherwise using VTK will be impossible.
>
> So, read up on CMAKE and understand how to build a CMakeLists file for
> your project. It is really very easy once you get the hang of it.
>
> Hope it was helpful
> Regards
>
>
> 2006/10/31, mam06bhv at studserv.uni-leipzig.de
> <mailto:mam06bhv at studserv.uni-leipzig.de>
> <mam06bhv at studserv.uni-leipzig.de
> <mailto:mam06bhv at studserv.uni-leipzig.de> >:
>
> Hello,
>
> I would Like to use VTK with VS2005. I installed "Cmake" an
> compiled the
> ALLBUILD and INSTALL in VS2005. Now if I write this line
> vtkRenderer * ren = vtkRenderer::New();
> in my cpp file I got 136 errors which results of the vtkrendering.lib.
> This is the the whole cpp file content:
>
> #include "stdafx.h"
> #include "vtkRenderer.h "
> #include "vtkRenderWindow.h"
> #include "vtkConeSource.h"
> #include "vtkPolyDataMapper.h"
> #include "vtkActor.h"
> #include "vtkRenderWindowInteractor.h"
> #include "vtkProperty.h"
>
> using namespace System;
>
> int _tmain()
> {
> vtkRenderer * ren = vtkRenderer::New();
> return 0;
> }
> if I comment the line out I got no errors.
> Could someone help me?
>
>
>
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
>
> _______________________________________________
> 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
>
>
More information about the vtkusers
mailing list