<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">the simple, but not really the best way, to use cmake is to "cd" into the top level of one of the sample app directories. When in there type "cmake ." This will run cmake on the current directory and configure everything for you. If you want something a bit more interactive type "ccmake ." instead. Fill in any missing paths. Type "c" to configure (while running ccmake) and then "g" to generate (again while running ccmake) and if everything works ccmake should exit. Now just type "make" and the app should compile.<DIV><BR class="khtml-block-placeholder"></DIV><DIV>Now with that said, cmake REALLY would like you to do an "out of source" build instead. This insulates the source tree from the build tree and turns out to be _really_ handy. So to do this try the following:</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV> Change Directory into the parent directory of one of the Example Programs:</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>[mjackson@Thor:~]$ cd /VTK-5.0.2/Examples/Tutorial/Step1/</DIV><DIV>[mjackson@Thor:~]$ mkdir Cxx-Build</DIV><DIV>[mjackson@Thor:~]$ cd Cxx-Build</DIV><DIV>[mjackson@Thor:~]$ ccmake ../Cxx </DIV><DIV>   Type "c" to configure and then "g" to generate make files</DIV><DIV>[mjackson@Thor:~]$ make</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>That should be all there is to it. If everything is "installed" correctly, cmake and vtk, then this should just work. Let us know if it does not.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Cheers</DIV><DIV><BR><DIV> <SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Bitstream Vera Sans; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">-- </DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Mike Jackson   Senior Research Engineer</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Innovative Management &amp; Technology Services</DIV><BR class="Apple-interchange-newline"></SPAN> </DIV><BR><DIV><DIV>On Feb 28, 2007, at 3:39 PM, Tim Reynolds wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite">Hello,<BR><BR>I am trying to develop some applications in c++ in Linux using VTK. However, I can not get cmake/ccmake to compile anything and I can not just find a simple makefile or example of the command I would use with g++ to link my source to the vtk libraries. <BR><BR>I am using VTK 5 in Ubuntu linux. I have tried all day to get anything to work in Windows but have only had failure. <BR clear="all">VTK is install in <BR>/usr/lib/vtk-5.0<BR><BR>When I try to use ccmake after running cmake -i on the sample programs it throws a number of different errors including failure to load CMakeCache.txt from /usr/lib/vtk-5.0/CMakeCache.txt despite my telling it to load the one in the example directory, to not having VTK_USE_RENDERING set. <BR><BR>I really dislike cmake, so if I could get some help that would be great. Really, I just need a makefile or something. Thank you. <BR><BR><BR>-- <BR>Tim Reynolds<BR>-- Self Proclaimed King Of Nerds<DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">_______________________________________________</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">This is the private VTK discussion list.<SPAN class="Apple-converted-space"> </SPAN></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Please keep messages on-topic. Check the FAQ at: <A href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</A></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Follow this link to subscribe/unsubscribe:</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</A></DIV> </BLOCKQUOTE></DIV><BR></DIV></BODY></HTML>