[vtkusers] error message after running
David Doria
daviddoria at gmail.com
Thu Sep 8 14:42:05 EDT 2011
On Thu, Sep 8, 2011 at 2:32 PM, David Doria <daviddoria at gmail.com> wrote:
> On Thu, Sep 8, 2011 at 2:28 PM, Ming Huang <minghuangvtk at yahoo.com> wrote:
>> I got the following error message after trying to run vtk and compiling
>> successfully.
>> "firstprogram.exe-Unable to Locate Component
>> This application has failed to start because vtkRendering.dll was not
>> found. Re-installing the application
>> may fix this problem"
>
> Can you show us the CMakeLists.txt for firstprogram?
>
> David
>
Please post related information to the same message thread.
cmake_minimum_required( VERSION 2.6 )
PROJECT(firstprogram)
FIND_PACKAGE ( VTK)
IF ( VTK_FOUND)
INCLUDE( ${USE_VTK_FILE} )
ENDIF( VTK_FOUND)
INCLUDE_DIRECTORIES( ${Medical5_SOURCE_DIR} )
ADD_EXECUTABLE( firstprogram 1.cxx)
TARGET_LINK_LIBRARIES ( firstprogram
vtkRendering vtkGraphics vtkHybrid
vtkImaging vtkIO vtkFiltering vtkCommon
)
I bet this is the problem - did you follow this step?
http://www.itk.org/Wiki/VTK/Building/Windows#Step_6_-_Build_the_project
David
More information about the vtkusers
mailing list