Thank you very much, Amy. It works properly now.<br><br>Dzung.<br><br><b><i>Amy Squillacote <amy.squillacote@kitware.com></i></b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> Hi Dzung,<br><br>Did you run ccmake before you tried to build the Cone.cxx example? If <br>not, do that. One of the CMake variables that will be listed is VTK_DIR. <br>Set that variable to the path to VTKConfig.cmake.<br><br>Once you have had ccmake generate the necessary makefiles, then run make <br>to build the example.<br><br>- Amy<br><br>Dzung Manh Chu wrote:<br>> Hello.<br>><br>> I'm using Fedora and just installed VTK 4.4. I'm running the Cone.cxx <br>> example with the following CMakeLists.txt file:<br>><br>> PROJECT (Step1)<br>><br>> INCLUDE (${CMAKE_ROOT}/Modules/FindVTK.cmake)<br>> IF (USE_VTK_FILE)<br>> INCLUDE(${USE_VTK_FILE})<br>> ENDIF (USE_VTK_FILE)<br>><br>>
LINK_LIBRARIES(<br>> vtkRendering<br>> vtkGraphics<br>> vtkImaging<br>> vtkFiltering<br>> vtkCommon<br>> )<br>><br>> ADD_EXECUTABLE(Cone Cone.cxx)<br>> TARGET_LINK_LIBRARIES(Cone vtkRendering)<br>><br>> It should have run correctly, but I got this error:<br>> CMake Error: VTK not found. Set the VTK_DIR cmake cache entry to the <br>> directory containing VTKConfig.cmake. This is either the root of the <br>> build tree, or PREFIX/lib/vtk for an installation. For VTK 4.0, this <br>> is the location of UseVTK.cmake. This is either the root of the build <br>> tree or PREFIX/include/vtk for an installation.<br>><br>> Did any of you also get this problem before? I'v located where <br>> VTKConfig.cmake is. But I donot know where "VTK_DIR cmake cache entry" <br>> is. Any comment would be highly appreciated.<br>><br>> Dzung.<br>><br>>
------------------------------------------------------------------------<br>> Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user <br>> panel <br>> <http: //us.rd.yahoo.com/evt="48516/*http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7%20"> <br>> and lay it on us.<br>> ------------------------------------------------------------------------<br>><br>> _______________________________________________<br>> This is the private VTK discussion list. <br>> Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ<br>> Follow this link to subscribe/unsubscribe:<br>> http://www.vtk.org/mailman/listinfo/vtkusers<br>> <br><br>-- <br>Amy Squillacote<br>Kitware, Inc.<br>28 Corporate Drive<br>Clifton Park, NY 12065<br>Phone: (518) 371-3971 x106<br><br></http:></blockquote><br><p> 
<hr size=1>Got a little couch potato? <br>
Check out fun <a href="http://us.rd.yahoo.com/evt=48248/*http://search.yahoo.com/search?fr=oni_on_mail&p=summer+activities+for+kids&cs=bz">summer activities for kids.</a>