[vtkusers] QT,Eclipse,VTK and c++

Jose David Pfuturi Huisa daviddarkzero at hotmail.com
Sun Dec 2 00:10:52 EST 2007


 Hello all. I use Eclipse ,c++ and QT under WindowXP. I have installed Eclipse, mingw32 with QT4 successfully but  i can only run c++ code, i want to add vtk code therefore i changed the file *.pro as follows:
TEMPLATE = app
TARGET = QTvtkConsole
QT += core \
gui \
opengl
HEADERS += 
SOURCES += Cone.cc
FORMS += 
RESOURCES += 
INCLUDEPATH += C:/vtk5.0-32b/include/vtk-5.0
LIBS += C:\vtk5.0-32b\lib\vtk-5.0
but i got this result:
 
mingw32-make debug 
mingw32-make -f Makefile.Debug
mingw32-make[1]: Entering directory `F:/MisProyectosEclipse3.2/QTvtkConsole'
g++ -mthreads -Wl,-enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -Wl,-subsystem,windows -o "debug\QTvtkConsole.exe" debug\Cone.o -L"c:\Qt\4.1.4\lib" -lopengl32 -lglu32 -lgdi32 -luser32 -lmingw32 -lqtmaind C:\vtk5.0-32b\lib\vtk-5.0 -lQtOpenGLd4 -lQtGuid4 -lQtCored4
C:\MinGW\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\mingw32\bin\ld.exe: C:\vtk5.0-32b\lib\vtk-5.0: No such file: Permission denied
collect2: ld returned 1 exit status
mingw32-make[1]: *** [debug\QTvtkConsole.exe] Error 1
mingw32-make[1]: Leaving directory `F:/MisProyectosEclipse3.2/QTvtkConsole'
mingw32-make: *** [debug] Error 2
 
But when i removed LIBS  i had:
 
mingw32-make debug 
mingw32-make -f Makefile.Debug
mingw32-make[1]: Entering directory `F:/MisProyectosEclipse3.2/QTvtkConsole'
g++ -mthreads -Wl,-enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -Wl,-subsystem,windows -o "debug\QTvtkConsole.exe" debug\Cone.o -L"c:\Qt\4.1.4\lib" -lopengl32 -lglu32 -lgdi32 -luser32 -lmingw32 -lqtmaind -lQtOpenGLd4 -lQtGuid4 -lQtCored4
debug\Cone.o(.text+0x107): In function `Z5qMainiPPc':
F:/MisProyectosEclipse3.2/QTvtkConsole/Cone.cc:12: undefined reference to `_imp___ZN11vtkRenderer3NewEv'
debug\Cone.o(.text+0x111):F:/MisProyectosEclipse3.2/QTvtkConsole/Cone.cc:14: undefined reference to `_imp___ZN15vtkRenderWindow3NewEv'
debug\Cone.o(.text+0x15c):F:/MisProyectosEclipse3.2/QTvtkConsole/Cone.cc:19: undefined reference to `_imp___ZN13vtkConeSource3NewEv'
debug\Cone.o(.text+0x183):F:/MisProyectosEclipse3.2/QTvtkConsole/Cone.cc:21: undefined reference to `_imp___ZN17vtkPolyDataMapper3NewEv'
debug\Cone.o(.text+0x193):F:/MisProyectosEclipse3.2/QTvtkConsole/Cone.cc:22: undefined reference to `_imp___ZN20vtkPolyDataAlgorithm9GetOutputEv'
debug\Cone.o(.text+0x1a4):F:/MisProyectosEclipse3.2/QTvtkConsole/Cone.cc:22: undefined reference to `_imp___ZN17vtkPolyDataMapper8SetInputEP11vtkPolyData'
debug\Cone.o(.text+0x1ab):F:/MisProyectosEclipse3.2/QTvtkConsole/Cone.cc:23: undefined reference to `_imp___ZN8vtkActor3NewEv'
debug\Cone.o(.text+0x1de):F:/MisProyectosEclipse3.2/QTvtkConsole/Cone.cc:27: undefined reference to `_imp___ZN11vtkRenderer8AddActorEP7vtkProp'
collect2: ld returned 1 exit status
mingw32-make[1]: *** [debug\QTvtkConsole.exe] Error 1
mingw32-make[1]: Leaving directory `F:/MisProyectosEclipse3.2/QTvtkConsole'
mingw32-make: *** [debug] Error 2
 
 
Could someone tell me why i get the message No such file: Permission denied and how i can run VTK ??
 
thanks in advance, a lot
José
 
 
 
 
_________________________________________________________________
Tecnología, moda, motor, viajes,…suscríbete a nuestros boletines para estar a la última
http://newsletters.msn.com/hm/maintenanceeses.asp?L=ES&C=ES&P=WCMaintenance&Brand=WL&RU=http%3a%2f%2fmail.live.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20071202/a73b39cf/attachment.htm>


More information about the vtkusers mailing list