<div>I doubt if you have built and install&nbsp;VTK properly. I have VTK installed in 'C:\Program Files\VTK' because I set the CMAKE_INSTALL_PREFIX in CMake as it. Your VTK will be in the directory you set for CMAKE_INSTALL_PREFIX in CMake.
</div>
<div>&nbsp;</div>
<div>You must build INSTALL to make VTK really installed - just like typing 'make install' if you are using concole, which will create the include and lib directories and all the header files and lib files for you.<br><br>
By the way, I am using VTK 5.0.2 and CMake 2.4.<br><br>And the last hint: Don't criticize others for non-complete solution. These people are trying to help you. Think carefully over your problem and others' answers and try to ask right questions.
<br></div>

<div><br>Good luck.<br>&nbsp;</div>
<div><span class="gmail_quote">On 11/2/06, <b class="gmail_sendername">mam06bhv</b> &lt;<a href="mailto:mam06bhv@studserv.uni-leipzig.de" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">mam06bhv@studserv.uni-leipzig.de
</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;">That's what I mean in some previous mails. Everyone give me hints but<br>bnothing is a complete solution.
<br>
<br>Ning Ye schrieb:<br>&gt; Obada is right, don't give up VTK. It's really a cool stuff.<br>&gt; Actually, you CAN use VTK in VC++ .NET 2005 for your own project<br>&gt; without CMake.<br>&gt; Here's my step in great detail:
<br>&gt; -------- Build and install VTK, CMake is needed here for only once<br>&gt; --------<br>&gt; 1. Extract VTK source code to a directory, say,<br>&gt; D:\Programming\VTK\vtk-5.0.2\src<br>&gt; 2. Make another directory for build, say,
<br>&gt; D:\Programming\VTK\vtk-5.0.2\build<br>&gt; 3. Run CMake and configure it as shown in the picture attached, press OK<br>&gt; 4. Enter the build directory, D:\Programming\VTK\vtk-5.0.2\build, open<br>&gt; the solution file 
VTK.sln<br>&gt; 5. Set the solution configuration to Debug mode, right click<br>&gt; ALL_BUILD, build<br>&gt; 6. Right click INSTALL, build<br>someone told me that is not necessary, but I did it<br>&gt; 7. Enter the install directory, for me, it's C:\Program Files\VTK
<br>whatr have you installed there. I don't have such a directory after all<br>I did<br>&gt; 8. Enter the sub-directory for library, i.e., C:\Program<br>&gt; Files\VTK\lib, for now, all the .lib files here are built under Debug,
<br>&gt; you can use them for Debug in your own project<br>&gt; 9. So, make a new directory here, say, C:\Program Files\VTK\lib\debug,<br>&gt; and move all the .lib files into it<br>&gt; 10. Back to VC++, this time, set your solution configuration to
<br>&gt; Release mode and redo step 5 and 6<br>&gt; 11. Enter C:\Program Files\VTK\lib again, now, all the .lib files are<br>&gt; built under Release, you can use them for Release in your own project<br>&gt; 12. So, make another new directory here, say, C:\Program
<br>&gt; Files\VTK\lib\release, and move all the .lib files into it<br>&gt; 13. Installation part is done.<br>&gt; --------Configuration for your own project--------<br>&gt; 1. Configure VC++ INCLUDE path: Tools-&gt;Options-&gt;Projects and
<br>&gt; Solutions-&gt;VC++ Directories-&gt;Include files, add the VTK include<br>&gt; directory into the list, for me, it's C:\Program Files\VTK\include<br>whre do you get the include directory from? I have (if I have count all)
<br>5 include directories<br>&gt; 2. Configure your project property:<br>&gt; Debug mode:<br>&gt; - set Configuration Properties-&gt;Linker-&gt;General-&gt;Additional Library<br>&gt; Directories as C:\Program Files\VTK\lib\debug
<br>&gt; - set Configuration Properties-&gt;Linker-&gt;Input-&gt;Additional Dependencies<br>&gt; as all the .lib files you need, well, you can just include all the<br>&gt; library files here to make it work for sure<br>&gt; Release mode:
<br>&gt; - set Configuration Properties-&gt;Linker-&gt;General-&gt;Additional Library<br>&gt; Directories as C:\Program Files\VTK\lib\release<br>&gt; - set Configuration Properties-&gt;Linker-&gt;Input-&gt;Additional Dependencies
<br>&gt; as all the .lib files you need, again, you can just include all the<br>&gt; library files here to make it work for sure<br>&gt; 3. Done.<br>&gt;<br>&gt; Compile and build your projects as you want.<br>&gt; Happy programming!
<br>&gt;<br>&gt;<br>&gt; On 11/2/06, *<a href="mailto:mam06bhv@studserv.uni-leipzig.de" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">mam06bhv@studserv.uni-leipzig.de</a><br>&gt; &lt;mailto:<a href="mailto:mam06bhv@studserv.uni-leipzig.de" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
mam06bhv@studserv.uni-leipzig.de
</a>&gt;*<br>&gt; &lt;<a href="mailto:mam06bhv@studserv.uni-leipzig.de" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">mam06bhv@studserv.uni-leipzig.de</a><br>&gt; &lt;mailto:<a href="mailto:mam06bhv@studserv.uni-leipzig.de" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
mam06bhv@studserv.uni-leipzig.de</a>&gt;&gt; wrote:
<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Obada Mahdi schrieb:<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; Hi Markus!<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; On 11/1/06, mam06bhv &lt;<a href="mailto:mam06bhv@studserv.uni-leipzig.de" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
mam06bhv@studserv.uni-leipzig.de</a><br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;mailto:
<a href="mailto:mam06bhv@studserv.uni-leipzig.de" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">mam06bhv@studserv.uni-leipzig.de</a>&gt;&gt; wrote:<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;&gt; I've solved the problem but now I got these errors in the
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; VTK-window<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; Just for the record, what was the solution?&nbsp;&nbsp;It might be helpful to<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; others who search the mailing list and find themselves having a<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; similar problem.<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;&gt; ERROR: In ..\..\VTK\Rendering\vtkWin32OpenGLRenderWindow.cxx,
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; line 824<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;&gt; vtkWin32OpenGLRenderWindow (01970FD0): wglCreateContext failed in<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;&gt; CreateAWindow(), error: 1114<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;&gt; ERROR: In ..\..\VTK\Rendering\vtkWin32OpenGLRenderWindow.cxx,
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; line 824<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;&gt; vtkWin32OpenGLRenderWindow (01970FD0): wglCreateContext failed in<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;&gt; CreateAWindow(), error: 0<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;&gt; ERROR: In ..\..\VTK\Rendering\vtkWin32OpenGLRenderWindow.cxx,
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; line 824<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;&gt; vtkWin32OpenGLRenderWindow (01970FD0): wglCreateContext failed in<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;&gt; CreateAWindow(), error: 6<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; I did a quick search in the mailing list archives for similar error
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; messages and found a reply from Mathieu Malaterre:<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://public.kitware.com/pipermail/vtkusers/2004-January/071401.html" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://public.kitware.com/pipermail/vtkusers/2004-January/071401.html
</a><br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; Some other postings did not have replies or solutions, but it seems<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; that the problem is related to OpenGL drivers/libraries rather than<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; VTK.&nbsp;&nbsp;One suggestion for narrowing down the problem is to run other
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; OpenGL applications and see if they work.&nbsp;&nbsp;For example, start by<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; building VTK with &quot;BUILD_EXAMPLES&quot; set to &quot;ON&quot; and run one of the<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; examples, like &quot;Cone&quot;.&nbsp;&nbsp;If it does not work, try other, non-VTK
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; programs that use OpenGL, and if they do not work either, it is very<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; likely a problem with your graphics card/OpenGL driver.<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; I also agree with Prename that you should consider using CMake for
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; creating your VisualStudio project.&nbsp;&nbsp;After seeing the same problems<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; reportet on the mailing like multiple times, I do not think that<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; this<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; will make a difference--but the important point is that it is much
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; easier to understand the steps involved in building your project and<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; to eliminate some possibilities that might be a result of an<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; unconventional build setup.<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; Here is a sample &quot;CMakeLists.txt&quot; file that should be sufficient for<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; creating a VS8 Solution for your sample program (I called it<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; &quot;markus-test.cc &quot;) using CMake:
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; [this is actually a stripped-down version of<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; &quot;Examples/Medical/Cxx/CMakeLists.txt&quot;]<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; ----BEGIN----<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; PROJECT (markus-test)<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; FIND_PACKAGE(VTK REQUIRED)<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; IF(NOT VTK_USE_RENDERING)<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;&nbsp;&nbsp;MESSAGE(FATAL_ERROR &quot;Example ${PROJECT_NAME} requires<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; VTK_USE_RENDERING.&quot;)<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; ENDIF(NOT VTK_USE_RENDERING)
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; INCLUDE(${VTK_USE_FILE})<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; ADD_EXECUTABLE(markus-test markus-test.cc)<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; TARGET_LINK_LIBRARIES(markus-test vtkRendering)<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; ----END----
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; Just put this and &quot;markus-test.cc&quot; into the same directory, create a<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; build directory somewhere and use CMakeSetup.exe to create a VS8<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; Solution file.&nbsp;&nbsp;In the interactive configuratio process, you
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; will need<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; to specify the location of the directory &quot;.../lib/vtk-&lt;version&gt;&quot;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; from<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; your VTK installation.<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; Regards
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; Obada<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Sorry guys<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; I'm tired to run it again and again. Is somewhere a tutorial or<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; something else<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; where I can go through step by step (downloading what installing
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; where what to<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; build wehre to copy and everything in detail) and not only telling<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; me the half.<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; in the last 3 days I've installed Cmake and VTK deinstalled<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; everything.
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; installed again and so one and nothing helped.<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Why should I use CMAKE to complie when I have Visual Studio where<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; I create my<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; projects? If I can use vtk only with Cmake I know why I've never
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; heard before<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; of it.<br>&gt;<br>&gt;<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; ----------------------------------------------------------------<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; This message was sent using IMP, the Internet Messaging Program.
<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; _______________________________________________<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; This is the private VTK discussion list.<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Please keep messages on-topic. Check the FAQ at:<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">

http://www.vtk.org/Wiki/VTK_FAQ</a> &lt;<a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.vtk.org/Wiki/VTK_FAQ</a>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Follow this link to subscribe/unsubscribe:
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://www.vtk.org/mailman/listinfo/vtkusers</a><br>&gt;<br>&gt;<br>&gt;<br>&gt; ------------------------------------------------------------------------<br>&gt;<br><br></blockquote></div><br>