[vtkusers] vtkPNGReader (0x8089a00): Unable to open file ../../../../VTKData/Data/vtk.png

Jorge Alberto Segura Mestas csnmgeek at gmail.com
Mon Aug 6 20:35:32 EDT 2007


Hello
I have compile de ImageViewer example from /VTK/Examples/GUI/Qt/ImageViewer
and this is the output of the compiler:

csnmgeek at csnmgeek-desktop:~/vtk/VTK/Examples/GUI/Qt/ImageViewer$ cmake .
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Check size of void*
-- Check size of void* - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Loading VTK CMake commands
-- Loading VTK CMake commands - done
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - found
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found.
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found.
-- Found Qt-Version 4.2.3
-- Configuring done
-- Generating done
-- Build files have been written to:
/home/csnmgeek/vtk/VTK/Examples/GUI/Qt/ImageViewer
csnmgeek at csnmgeek-desktop:~/vtk/VTK/Examples/GUI/Qt/ImageViewer$ ls
CMakeCache.txt  CMakeFiles  cmake_install.cmake  CMakeLists.txt  main.cxx
Makefile  qtimageviewer
csnmgeek at csnmgeek-desktop:~/vtk/VTK/Examples/GUI/Qt/ImageViewer$ make
Scanning dependencies of target qtimageviewer
[100%] Building CXX object CMakeFiles/qtimageviewer.dir/main.o
Linking CXX executable qtimageviewer
[100%] Built target qtimageviewer


But when I run it, I get this error:

csnmgeek at csnmgeek-desktop:~/vtk/VTK/Examples/GUI/Qt/ImageViewer$
./qtimageviewer
ERROR: In /home/csnmgeek/vtk/VTK/IO/vtkPNGReader.cxx, line 43
vtkPNGReader (0x8089a00): Unable to open file
../../../../VTKData/Data/vtk.png

Is this a bug?
Or
I'm doing something wrong?

regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20070806/7ed2783d/attachment.htm>


More information about the vtkusers mailing list